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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
i need your help to build Dax using below Tableau Lod
% Doc count = [count Doc] / TOTAL([count Doc])
where "Count Doc" is distinct count of "docno"
Thanks in advance.
Hi @Anonymous ,
It would help us to give answer more specifically if you could share some sample data with required output.
You can try below code:-
% Doc count =
VAR distinct_count =
CALCULATE ( DISTINCTCOUNT ( [count Doc] ) )
VAR total_count =
CALCULATE ( COUNT ( [count Doc] ) )
RETURN
DIVIDE ( distinct_count, total_count )
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
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 |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |