Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

In my Expression, sum( {1 < Flag = {1}> }AMT*FREQ), I want to add one more condition, Where Sales Id is distinct. How to add this condition in my expression...

In my Expression, sum( {1 < Flag = {1}> }AMT*FREQ), I want to add one more condition, Where Sales Id is distinct. How to add this condition in my expression...

Thanks in Advance

Siddharth

2 Replies
jyothish8807
Master II
Master II

Hi Sidd,

Try like this:

aggr(distinct sum( {1 < Flag = {1}> } AMT*FREQ),Sales ID)

Regards

KC

Best Regards,
KC
sunny_talwar

Not sure what you are looking for, but may be this:

Sum({1<Flag = {1}, [Sales Id] = {"=Count([Sales Id]) = 1"}>} AMT*FREQ)