Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a measure that gives status for the customer based on the sales history.
I would like to visualize it with a bar chart where I have status as Axis and number of customers in values.
How can I do it?
Please help, I can’t solve this for several weeks!
I also managed to build a calculated table where every customer got its status, but have no idea how to turn it in a wat to get counted customers per status.
Measure:
Var CustomerStatus = if ( and( SalesLastMonth = 0, Sales3MonthAgo = 0),
"No Sales In Relevant Period"
if ( SalesLastMonth = 0,
"Lost all volume",
if (LossIndicator = 0,
"No loss",
"Lost some art types")
)
)
Solved! Go to Solution.
@Olga_S , if you want, measure as dimension, create a table with these four values (Say Status)
Then create a measure like
countx(filter(values(Table[Customer]), [Measure] = max(Status[Status])),[Customer])
Refer my video : https://youtu.be/CuczXPj0N-k
Works perfect! Thank you so much!
finally i bult 3 measures:
@Olga_S , if you want, measure as dimension, create a table with these four values (Say Status)
Then create a measure like
countx(filter(values(Table[Customer]), [Measure] = max(Status[Status])),[Customer])
Refer my video : https://youtu.be/CuczXPj0N-k
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 38 | |
| 36 | |
| 29 | |
| 28 |
| User | Count |
|---|---|
| 127 | |
| 88 | |
| 78 | |
| 66 | |
| 64 |