Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Friends,
As I am trying to write a expression using set analysis but I am not getting any reslut.
The thing is I have two calculated fields from the script and trying to find a a sales.
eg:
=Sum({$<Disc={'Discount'}, MoreDisc={'ExtraDiscount'}>}[Sales])
and tryed like using If contion
=Sum(if(Disc='Discount',[Sales])) + Sum(If(MoreDisc='ExtraDiscount',[Sales]))
Thanks in advnce for your help
Regards
Chriss.
using aggr function like
aggr(rangesum({$(<Disc ='Discount'{${MoreDisc='ExtraDiscount'}>}},Sales)))
hope it helps you
Hi,
Please try below expression
=Sum({<Disc={'Discount'} > + <MoreDisc={'ExtraDiscount'}>} [Sales])
Hope it helps you.
Regards,
Jagan.
Hello Jegan and Mohit,
Thanks for your solutions,
Mohit: still your expression is not working for me, its showing error in as highlighted
aggr(rangesum({$(<Disc ='Discount'{${MoreDisc='ExtraDiscount'}>}},Sales)))
Regards
Chriss
Try this
aggr(rangesum({$(<Disc ={'Discount'} + MoreDisc={'ExtraDiscount'}>},Sales)))
Hope it helps,