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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
geogou1973
Creator
Creator

set analysis

Hello.

How can i convert the following expression to set analysis.

if(FORMAT='FRANC' ,SUM(TRIG_QTY),sum(SALES_QTY))

thank you in advance

1 Solution

Accepted Solutions
effinty2112
Master
Master

Hi Geo,

I don't know why you want a set analysis expression but you can try this:

SUM({$<FORMAT={'FRANC'}>}TRIG_QTY) + SUM({$<FORMAT-={'FRANC'}>}SALES_QTY)

If it works for you let us know if speed of calculation is improved.

View solution in original post

8 Replies
PradeepReddy
Specialist II
Specialist II

Hope, this would not be possible.... You are doing simple aggregations based on condition.

for more things check the basics of Set analysis from Hekp

andrespa
Specialist
Specialist

Hi Gou,

You can try this:

SUM({<FORMAT = {'FRANC}>}TRIG_QTY) OR SUM({<FORMAT-={'FRANC'}>}SALES_QTY)

Best regards,

Andrés

effinty2112
Master
Master

Hi Geo,

I don't know why you want a set analysis expression but you can try this:

SUM({$<FORMAT={'FRANC'}>}TRIG_QTY) + SUM({$<FORMAT-={'FRANC'}>}SALES_QTY)

If it works for you let us know if speed of calculation is improved.

swuehl
MVP
MVP

Is FORMAT depending on the dimensional value? Or is it depending on the record value?

You may only consider replacing (if you in fact need a recod based evaluation)

SUM( IF(FORMAT='FRANC' , TRIG_QTY,SALES_QTY))


With something like


RANGESUM( SUM( {< FORMAT= {'FRANC'} >} TRIG_QTY), SUM( {<FORMAT -= {'FRANC'} >}  SALES_QTY) )

Not applicable

Hi ,

Try this ,

It is more useful for u

Set Analysis Wizard for QlikView | qlikblog.at

geogou1973
Creator
Creator
Author

Hello Andrew.

It is correct and the speed is better than the if formula.

Thank you

effinty2112
Master
Master

Hi Gou,

Glad it worked and great to know that the speed's improved.