Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Experts, I need your help to fix the DAX formula. The below measure should sum up all the values as denominator in the measure. Actually, I am not able to sum those values as Link ID column datatype in text. Below is the measure written with hardcoded value, but I would like to see that in dynamically should sum up in denominator.
Thanks,
Bala
Solved! Go to Solution.
@Anonymous , Try a measure like
% Link ID = divide( DISTINCTCOUNT('Query 1'[Link ID]), calculate( DISTINCTCOUNT('Query 1'[Link ID]), allselected())
https://learn.microsoft.com/en-us/dax/allselected-function-dax
Hi @Anonymous,
I'd like to suggest you add a variable with summarize function to aggregate these ID at first, then you can simply summary these results to calculate with current id:
% Link ID =
VAR summary =
SUMMARIZE (
ALLSELECTED ( 'Query 1' ),
[Category],
"DC LID", DISTINCTCOUNT ( 'Query 1'[Link ID] )
)
RETURN
DISTINCTCOUNT ( 'Query 1'[Link ID] ) / SUMX ( summary, [DC LID] )
Regards,
Xiaoxin Sheng
Hi @Anonymous,
I'd like to suggest you add a variable with summarize function to aggregate these ID at first, then you can simply summary these results to calculate with current id:
% Link ID =
VAR summary =
SUMMARIZE (
ALLSELECTED ( 'Query 1' ),
[Category],
"DC LID", DISTINCTCOUNT ( 'Query 1'[Link ID] )
)
RETURN
DISTINCTCOUNT ( 'Query 1'[Link ID] ) / SUMX ( summary, [DC LID] )
Regards,
Xiaoxin Sheng
@Anonymous , Try a measure like
% Link ID = divide( DISTINCTCOUNT('Query 1'[Link ID]), calculate( DISTINCTCOUNT('Query 1'[Link ID]), allselected())
https://learn.microsoft.com/en-us/dax/allselected-function-dax
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |