Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
nbuscemi
Contributor III
Contributor III

Remove item from filter

Hi,

Please see the attachment. I need to remove the "cost avoidance" item from the filter. Is there a way? Maybe writing some code?

 

Thanks, 

Noemi

1 Solution

Accepted Solutions
sunny_talwar

Then try this

Aggr(
    Only({1<CATEGORY_EXPENSE = e({1<CATEGORY_EXPENSE = {'COST AVOIDANCE'}>})>} CATEGORY_EXPENSE)
, CATEGORY_EXPENSE)

View solution in original post

8 Replies
sunny_talwar

May be this

Aggr(
    Only({1<[Expense Category] = e({1<[Expense Category] = {'COST AVOIDANCE'}>})>} [Expense Category])
, [Expense Category])
nbuscemi
Contributor III
Contributor III
Author

In this way, all the items are not shown. See the attachment please. 

 

I just want the "cost avoidance" item not being shown.

sunny_talwar

What is the field called? Is it called Expense Category or is it a name you use on the front end?

ramasaisaksoft

write the expression in your Dim

 

=if(FieldName<>'Cost Avoidance',FieldName)

nbuscemi
Contributor III
Contributor III
Author

The field is CATEGORY_EXPENSE.

I use "Expense Category" in the frontend.

sunny_talwar

Then try this

Aggr(
    Only({1<CATEGORY_EXPENSE = e({1<CATEGORY_EXPENSE = {'COST AVOIDANCE'}>})>} CATEGORY_EXPENSE)
, CATEGORY_EXPENSE)
nbuscemi
Contributor III
Contributor III
Author

GREAT!!! It worked! 

 

Thank you so much!

RioH
Partner - Contributor
Partner - Contributor

This worked - Thanks