Have to remove one particular option in field

Hi,

i have written a query filter which is working fine and displayed that in interface.

Now i need to download Excel which is also working fine but i need not have to include option: best

Suppose i have a drop down field which contains values: Good, better, best. But when i download Excel i should not see best option in Excel(instead it should be blank ) ..but the value in complete row should be downloaded. 

applyWhen: {rule!AAP_isNotEmpty(ri!Status),remove(ri!Status,wherecontains("best",touniformstring(ri!Status)))}

Can someone help with what change i should do in code

  Discussion posts and replies are publicly visible