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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Ade1991
Helper I
Helper I

Percentage of selected row

Hi

 

What is the formula to know the dynamic percentage of selected row in a table ?

Imagine I have a table with 10 rows.

When i don't select anything, my measure is 100%.

When I select something (concerning for exemple 2 rows), I want to have 20% as result measure.

 

I'm trying with Countrow/CountA but it is not dynamic, and always display 100 %.

 

Thanks,

 

Alex

 

 

Thanks by advance,

 

Alex

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Ade1991 ,

 

You can try to create measure like DAX below.

 

Measure1= DIVIDE(COUNTROWS(ALLSELECTED(table1)),COUNTROWS(ALL(table1)))

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi  @Ade1991 ,

 

Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

v-xicai
Community Support
Community Support

Hi @Ade1991 ,

 

You can try to create measure like DAX below.

 

Measure1= DIVIDE(COUNTROWS(ALLSELECTED(table1)),COUNTROWS(ALL(table1)))

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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