The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
User | Count |
---|---|
25 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
32 | |
12 | |
10 | |
10 | |
9 |