Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I would like to have a measure that can tell me how many cusotmer have not sold a single unit in total.
The measure ( I think) should do the sum of the sales by customer and then count those who have sales=0.
Any idea?
in the below case it should be =1.
Customer | Model | Sales |
A | X | 1 |
A | Y | 0 |
A | Z | 1 |
B | X | 1 |
B | Y | 1 |
B | Z | 1 |
C | Y | 1 |
D | X | 0 |
thanks
Solved! Go to Solution.
I didn't try this... but it sounds kinda nice...? 🙂
Total Sales = SUM(MyTable[Sales])
Losers = CALCULATE(DISTINCTCOUNT(MyTable[Customer]), FILTER(VALUES(MyTable[Customer]), [Total Sales] = 0))
I didn't try this... but it sounds kinda nice...? 🙂
Total Sales = SUM(MyTable[Sales])
Losers = CALCULATE(DISTINCTCOUNT(MyTable[Customer]), FILTER(VALUES(MyTable[Customer]), [Total Sales] = 0))
Thanks! Completely solved my problem!
Brilliant! Works like a charm and JUST what I was looking for....
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
80 | |
63 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |