Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello.
How can i convert the following expression to set analysis.
if(FORMAT='FRANC' ,SUM(TRIG_QTY),sum(SALES_QTY))
thank you in advance
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.
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
Hi Gou,
You can try this:
SUM({<FORMAT = {'FRANC}>}TRIG_QTY) OR SUM({<FORMAT-={'FRANC'}>}SALES_QTY)
Best regards,
Andrés
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.
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) )
Hello Andrew.
It is correct and the speed is better than the if formula.
Thank you
Hi Gou,
Glad it worked and great to know that the speed's improved.