Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Above is the data I am working with on a Matrix Power BI Visualization. I want to add the distict count of the End User Trade Name as another column . So my New column will have the values 1,1,1,5 for the 4 distinct Corporate Account CSN and Corporate Account Name.
When I am using Values part of the Matrix visualization then I am getting subtotals all around and it is becoming messy. Can you please help me with the DAX that calculates the distinct count of the End User Trade Name group by Corporate Account CSN and Corporate Account Name.
Solved! Go to Solution.
Hi abhishekpati86,
To count the row numbers based on group Corporate Account CSN and Corporate Account Name, please use the following DAX query to create a measure:
CountRow = CALCULATE(DISTINCTCOUNT(Sheet3[End User Trade Name]), ALLEXCEPT(Sheet3,Sheet3[Corporate Account Name],Sheet3[Corporate Account CSN]))
If you have any question, please feel free to ask.
Best regards,
Yuliana Gu
Hi abhishekpati86,
To count the row numbers based on group Corporate Account CSN and Corporate Account Name, please use the following DAX query to create a measure:
CountRow = CALCULATE(DISTINCTCOUNT(Sheet3[End User Trade Name]), ALLEXCEPT(Sheet3,Sheet3[Corporate Account Name],Sheet3[Corporate Account CSN]))
If you have any question, please feel free to ask.
Best regards,
Yuliana Gu
@abhishekpati86 Why don't you use End User Trade Name column for the Values section of matrix -> click on dropdown icon and select Count(Distinct).
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
88 | |
86 | |
84 | |
68 | |
49 |
User | Count |
---|---|
138 | |
111 | |
103 | |
64 | |
60 |