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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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!
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
30 | |
19 | |
12 | |
7 | |
5 |