March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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....
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |