Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
Qlik Connect 2025! Where innovative solutions turn your data visions into reality: REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
user467341
Creator II
Creator II

Problem using set expression during filtering

Hi all,

I have a set expression:

=IF(ISNULL(Aggr(Only({<[DIM_WS.Desc]-={"*REMOVAL*"}>} DIM_WS.Desc), DIM_WS.Desc)), DIM_SM.SM_Desc, Aggr(Only({<[DIM_WS.Desc]-={"*REMOVAL*"}>} DIM_WS.Desc), DIM_WS.Desc))

When I clicked on my dimension column to filter, which is the "Desc" in my pivot table, the return result is two filters, one coming from DIM_WS table and the other DIM_SM table.

user467341_0-1678334161897.png

My set expression idea is to omit the data with REMOVAL in DIM_WS table, and get the data out. If DIM_WS.Desc column is NULL, then it will get the data from DIM_SM.

Because of this two filtering, my table is not getting properly filtered.

Is it possible to modify my set expression so that it only return one filter selection from either tables?

 

Labels (3)
2 Replies
vinieme12
Champion III
Champion III

Filtering on Calculated Dimension will ALWAYS filter on ACTUAL Dimensions used in AGGR()

I would suggest creating an actual field during data load

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

Join the two table and then apply this logic.

Thanks & Regards,
Please Accepts as Solution if it solves your query.