Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
thhmez7
Helper III
Helper III

Measure value multiply numbers of selected column items

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.

 

 

2 ACCEPTED SOLUTIONS
AntoineTRICHET
Resolver III
Resolver III

Hi @thhmez7 

You can use the following measure :
Points = COUNTDISTINCT([Username])*20

I hope it helped you

View solution in original post

Hi @AntoineTRICHET 

Countdistinct does not exist as DAX expression. 

Distinctcount also does not work in this case.

View solution in original post

4 REPLIES 4
AntoineTRICHET
Resolver III
Resolver III

Hi @thhmez7 

You can use the following measure :
Points = COUNTDISTINCT([Username])*20

I hope it helped you

Hi @AntoineTRICHET 

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.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors