Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a simple straight table with 3 values, Name, Vendor and # of Purchases. I want to exclude from the result set the # of Purchases that equal 1. How can I do that?
May be like this:
If(Sum(Purchases) > 1, Sum(Purchases))
Hi Cliff,
Not sure is this what you need
if(Sum(# of Purchases)>1,Sum(# of Purchases))
if not please explain bit more.
Sunny answered it correctly. However, when I add an extra field in for Date, I see null values in the # of Purchases field. How can I remove those?
You mean extra expression?
No, it is just another Dimension.
I don't think that should happen. Would you be able to share a screenshot to show the issue?
Actually, that does not appear to be the issue. When I just did a Sum on the # of Purchases, the data looks fine. So, it is something with this expression:
If(Sum(Purchases) > 1, Sum(Purchases))
What does not appear to be an issue? I am not sure I follow, can you elaborate?
Right now I have added Date to my existing fields and that is not causing any values to be blank. The root cause of the blank values issue seems to be the expression for # of Purchases.
If(Sum(Purchases) > 1, Sum(Purchases)) Label: [# of Purchases]
When I just do a basic Sum, the data looks fine. I still need a way to remove the results where # of Purchases = 1.