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,
I have an issue with my DAX calculation.
My visual input table is like that :
| Year | ID | [calculated %] DAX measure |
| 2020 | a | 41% |
| 2020 | b | 35% |
| 2021 | a | 42% |
| 2021 | b | 43% |
| 2022 | b | 12% |
| 2022 | c | 34% |
I am trying to distinct count the number of IDs that have a calculated % higher than a parameter [user %] (slicer that users can choose themself).
So my visual output table would be : (if parameter [user %] = 40%)
| Year | Distinct count IDs |
| 2020 | 1 |
| 2021 | 2 |
| 2022 | 0 |
What I tried to do is :
Distinct count IDs =
Solved! Go to Solution.
Hi, @Rinn
You can try the following methods.
Measure = CALCULATE(DISTINCTCOUNT('Table'[ID]), FILTER(ALLEXCEPT('Table','Table'[Year]), [calculated %] > SELECTEDVALUE(Parameter[Parameter])))+0
Is this the result you expected?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Rinn
You can try the following methods.
Measure = CALCULATE(DISTINCTCOUNT('Table'[ID]), FILTER(ALLEXCEPT('Table','Table'[Year]), [calculated %] > SELECTEDVALUE(Parameter[Parameter])))+0
Is this the result you expected?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous , thanks for your reply.
Actually, for your example, I tried with my real DAX measure [calculated %] (sorry for not posting it earlier) which is :
The response of @Anonymous is a good solution.
For my particular problem, I separated calculated % into 3 measures :
Try to create a query new blank query and type = MYPARAMETER,
Than you can reference in columns/dax measures
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |