Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
9 | |
9 | |
6 | |
5 |
User | Count |
---|---|
19 | |
18 | |
9 | |
9 | |
8 |