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
supergallager34
Frequent Visitor

Percentage of count

Hello, 

I am trying to figure out how to calculate percentage of rows because I need it for another calculation. I  have a sample table that looks like this, 
IDGender

101M
102F
103M
104F
105F
106F
107M
108M
109M
110M
115F


I am trying to figure out how this is calculated my actual table has a lot of duplicates and I would the denominator to be dynamic and taking in the distinct count of the IDS. Please let me know what the possible solution would be. Thank you
Capture.JPG

 

 

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @supergallager34 

 

Try this Measure

Measure = 
DIVIDE(
    DISTINCTCOUNT( 'Table'[ID] ),
    CALCULATE(
        DISTINCTCOUNT( 'Table'[ID] ),
        ALLSELECTED()
    )
)

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

2 REPLIES 2
Mariusz
Community Champion
Community Champion

Hi @supergallager34 

 

Try this Measure

Measure = 
DIVIDE(
    DISTINCTCOUNT( 'Table'[ID] ),
    CALCULATE(
        DISTINCTCOUNT( 'Table'[ID] ),
        ALLSELECTED()
    )
)

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

This helped a lot. Thank you!

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.