Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Calculate distinct count of the column based on the other values in the column

$
0
0

Capture.JPG

 

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. 


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>