Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have the following expression
=sum(if((IDEFAC='L'),MFAC))
It's works fine, now I want to add for value IDEFAC 'L' and 'N' and 'S' and 'F'
I try this expression
=sum(if((IDEFAC='L' and IDEFAC='N' and IDEFAC='S' and IDEFAC='F'),MFAC)) but it's not works
Someone have an idea?
But if you insist using IF
=sum(if((IDEFAC='L' OR IDEFAC='N' OR IDEFAC='S' OR IDEFAC='F'),MFAC))
Maybe using Set Analysis makes things easier
=sum({<IDEFAC={'L','N','S','F'>}MFAC))
But if you insist using IF
=sum(if((IDEFAC='L' OR IDEFAC='N' OR IDEFAC='S' OR IDEFAC='F'),MFAC))
SUM({<Customer_Name = {'A','B','C','D'}>}QTY)
Hi
Try like this
=sum({<IDEFAC={'L','N','S','F'>} MFAC) // or function
or
=sum({<IDEFAC={'L'}> * <IDEFAC={'N'}> * <IDEFAC={'S'}> * <IDEFAC={'F'}>} MFAC) // And Function
Thank you Clever,
Expression under works fine
=sum(if((IDEFAC='L' OR IDEFAC='N' OR IDEFAC='S' OR IDEFAC='F'),MFAC))
FYI .... IF is much slower compare to SET ANALYSIS.