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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis in chart

I need to have a set analysis function based on the dimension of the chart. I tried this and does not seem to work.

QV - set analysis.png

first column - CC is my dimension.

I have added 3 expression columns to make my question clear.

On row for CC 269, i was expcting column 4 to have 6457.182.

Please help!

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Set analysis expressions are evaluated per chart, not per row. So you can't use CC both as dimension in your chart and in your set analysis expression. You'll have to use hardcoded values or if statements. See here for more information.


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try using this with Aggr().  try this expression

=Sum(Aggr(If(CCSPONSOR1 = [CC], Sum(ACTUALMANWEEKS), 0), CCSPONSOR1))

Hope this helps you.

Regards,

Jagan.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Set analysis expressions are evaluated per chart, not per row. So you can't use CC both as dimension in your chart and in your set analysis expression. You'll have to use hardcoded values or if statements. See here for more information.


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Jagan,

No, that did not work. It gave exact same result as

 

=sum({1<CCSPONSOR1=CC>} ACTUALMANWEEKS)

Thanks

Not applicable
Author

Thanks!