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 Guys,
I'm trying to measure and show all my clients who made costs in a selected period.
The thing i've got now, is that it only shows me the grand total over my selected period, instead of the differences in months.
Measures i've made:
Sum of cost =
CALCULATE(
SUM('Fact.VoorzieningZINBesteding'[Kosten ZIN]),
FILTER(
ALLSELECTED('Fact.VoorzieningZINBesteding'),
'Fact.VoorzieningZINBesteding'[BSN Gepseudonimiseerd] = SELECTEDVALUE('Fact.VoorzieningZINBesteding'[BSN Gepseudonimiseerd])))
Cliënten met kosten = CALCULATE(DISTINCTCOUNT('Fact.VoorzieningZINBesteding'[BSN Gepseudonimiseerd]), filter (ALLSELECTED('Fact.VoorzieningZINBesteding'), 'Fact.VoorzieningZINBesteding'[Sum of cost] > 0 ))
Result:
What I expect (this is other example, not the measure as shown before)
Got any ideas on how to achieve this? Thx in advance
Solved! Go to Solution.
@miltenburger , As per me the measure should be
divide(SUM('Fact.VoorzieningZINBesteding'[Kosten ZIN]),DISTINCTCOUNT('Fact.VoorzieningZINBesteding'[BSN Gepseudonimiseerd]))
You need handle the selected value if tables are not joined or not from same table
you can use allselected in denominator if you want all users
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
@miltenburger , As per me the measure should be
divide(SUM('Fact.VoorzieningZINBesteding'[Kosten ZIN]),DISTINCTCOUNT('Fact.VoorzieningZINBesteding'[BSN Gepseudonimiseerd]))
You need handle the selected value if tables are not joined or not from same table
you can use allselected in denominator if you want all users
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |