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
Hi,
This might be an easy question but I'm struggling to find a solustion:
Basically I'm trying to calculate the distinct count of the customers who have revenue of less than £5000 (at customer level).
My original formula is shown below this but it counts all the below 5k transaction at 'Job Number' level, not customer level. i.e. it returns with a distinct count of 5 instead of 3.
Solved! Go to Solution.
Try this:
Count of Customer < £5k =
VAR CustomerRevenue =
FILTER (
SUMMARIZECOLUMNS (
Revenue[Customer],
"Revenue[Total Revenue]", CALCULATE ( SUM (Revenue[Revenue] ) )
),
Revenue[Total Revenue] < 5000
)
RETURN COUNTROWS ( CustomerRevenue )
Hi @xjianguk,
Please use following measure -
[Replace 'Customer Table' with the name of your table]
Hi @xjianguk,
Please use following measure -
[Replace 'Customer Table' with the name of your table]
Many thanks for your help!
COUNTAX(Table(customer),revenue>5k)
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
Try this:
Count of Customer < £5k =
VAR CustomerRevenue =
FILTER (
SUMMARIZECOLUMNS (
Revenue[Customer],
"Revenue[Total Revenue]", CALCULATE ( SUM (Revenue[Revenue] ) )
),
Revenue[Total Revenue] < 5000
)
RETURN COUNTROWS ( CustomerRevenue )
Many thanks for your help!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 40 | |
| 21 | |
| 18 |