Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
i am sitting with a requirement to write:
the sum of Revenue where Customer ID is equal to Distinct
but have no idea how to tackle this one, any help would be accepted.
Thanks.
Would you be able to share some data to see what you are trying to accomplish?
What you actually want. Can you elaborate more?
may be like this:
if (count(Customer ID)=1,sum(Revenue ))
if this doesn't give the desired result , then you need check the count in the SQL i.e in the script level and set a flag for the same. Finally based on the flag value you can calculate the sum
May be like:
Sum({<[Customer ID={"=Count([Customer ID])=1"}]>}Revenue)
hi
maybe:
sum(aggr(sum(DISTINCT Revenue), Customer ID))
Hi All,
im trying to implement most Solutions you guys are giving me,
one more thing that i want is: Distinct CustID and Number of Revenues made each distinct CustID Made.
Thanks.
Alternative to this could be:
=Sum(Aggr(Only(Revenue), CustID)) or
=Sum(Aggr(Avg(Revenue), CustID))
yes, count(Customer ID)=1 will give you you the Distinct custID....once this condition is satisfied..for the distinct Custid you will get the sum
Try:
Straight table:
Dim: [Customer ID]
Exp: Sum({<[Customer ID={"=Count([Customer ID])=1"}]>}Revenue)