Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
hi all, I am new to power bi, hope someone can advice on the following:
I have a worksheet of transactions made by members & non members, and sales amount.
member has a ID no. and nonmembers are indicated by NIL
How can i write a formula for sales made by members & non members?
Solved! Go to Solution.
Hi,
In a simple Table visual, drag ID column and write the following measure
=SUM(Data[Amount])
Hope this helps.
Hi,
In a simple Table visual, drag ID column and write the following measure
=SUM(Data[Amount])
Hope this helps.
One way would be:
Sales of members = CALCULATE (SUM(TableName[Sales], TableName[ID] <> BLANK())
Sales of non-members = CALCULATE(SUM(TableName[Sales], TableName[ID] = BLANK())
User | Count |
---|---|
128 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |