Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Theo_Westseit
Contributor III
Contributor III

Use set analysis in Dimension

Hello Guys,

thanks to Mr. Cronström, i was able to got this set analysis working:

Sum({$<Month={'$(=Num(Month(Today()-35),'00'))'}>} SALES_40 )

 

Now i want to use it in a dimension. How do i need to change it?
On the particular Dimension i always want to display the Sales of the month minus 35days

Labels (2)
1 Reply
hic
Former Employee
Former Employee

You can use a set expression in a dimension using the Aggr() function:

=Aggr(Only({setExpression} Field),Field)

but this is VERY rarely what you want to do. Also, the Aggr() function is slow.

No, I suggest using the set expression in your measure. If you do, and uncheck "Include null values", the dimension will automatically show the values corresponding to the set expression.

Henric_Cronstrm_0-1644402643319.png