Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I'd like to create a measure which dynamically changes whenever an item in a slicer is selected. The measure value should be mulitplied by the number of the selected items.
For example:
Measure: Points = SUM('Table'[points])
Current value of Points = 20
Field in Slicer: Username
Username contains 5 names (A, B, C, D, E)
When one name is selected, Points remain 20. When 2 names are selected, then 20 * 2 = 40.
3 names > 20 * 3 = 60 etc.
How can this measure be created?
Thank you.
Solved! Go to Solution.
Hi @thhmez7
You can use the following measure :
Points = COUNTDISTINCT([Username])*20
I hope it helped you
Countdistinct does not exist as DAX expression.
Distinctcount also does not work in this case.
Hi @thhmez7
You can use the following measure :
Points = COUNTDISTINCT([Username])*20
I hope it helped you
Countdistinct does not exist as DAX expression.
Distinctcount also does not work in this case.
Hi @thhmez7
Indeed it is dinstinctcount and not countdistinct. Can you provide a screenshot of your table (I do not understand why it is not working) ?
Thanks, I had to adjust the measure, it works fine now.
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 |
|---|---|
| 97 | |
| 76 | |
| 52 | |
| 51 | |
| 46 |