Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
rhhlee
Contributor II
Contributor II

Using AGGR() on Filter Pane only shows one selection. How to show multiple selections?

Hello,

Currently, I am applying a filter to a dimension - so that only Contracts with a Saving > 0 will display on the filter.

=AGGR(IF(Sum(Savings)>0,[Contract_Table.Contract],null()),[Contract_Table.Contract])

Currently, this is working correctly - in that the Filter Pane is showing only the Contracts where Savings is over 0.

rhhlee_2-1707369187041.png

However, the moment I select one entry in the Filter Pane, all other options disappear:

rhhlee_1-1707369092795.png

Is there a way by which I can still show the other options in a Filter Pane (greyed out) but a user can have the option of selecting multiple contracts?

Labels (4)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

As Below

 

=aggr({<[Contract_Table.Contract]=>}only({<[Contract_Table.Contract]={"=sum(Savings)>0"}>} [Contract_Table.Contract]), [Contract_Table.Contract])

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

2 Replies
qv_testing
Specialist II
Specialist II

I think if we are using AGGR then when user selects something all the attribute will not appear.

My suggestion, if all fields are in same table, you can aggregate at script level

LOAD * where Savings>0;
LOAD [Contract_Table.Contract] as Filter,
           Sum(Savings) as Savings
Resident TableName
group by [Contract_Table.Contract];

vinieme12
Champion III
Champion III

As Below

 

=aggr({<[Contract_Table.Contract]=>}only({<[Contract_Table.Contract]={"=sum(Savings)>0"}>} [Contract_Table.Contract]), [Contract_Table.Contract])

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.