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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
| 101 | M |
| 102 | F |
| 103 | M |
| 104 | F |
| 105 | F |
| 106 | F |
| 107 | M |
| 108 | M |
| 109 | M |
| 110 | M |
| 115 | F |
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
Solved! Go to Solution.
Try this Measure
Measure =
DIVIDE(
DISTINCTCOUNT( 'Table'[ID] ),
CALCULATE(
DISTINCTCOUNT( 'Table'[ID] ),
ALLSELECTED()
)
)
Try this Measure
Measure =
DIVIDE(
DISTINCTCOUNT( 'Table'[ID] ),
CALCULATE(
DISTINCTCOUNT( 'Table'[ID] ),
ALLSELECTED()
)
)
This helped a lot. Thank you!
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 |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |