Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello, I need to group by and show a distinct value count.
For the field "Cust_Subsegment" i would want as a result something like this
I've grouped by the distinct row count aggregate, but it looks like its just giving me the total row count for each distinct row. I need a count on the distinct values instead. thanks
Solved! Go to Solution.
@Anonymous , i probably didn't ask the question very well. I need to return all non-duplicate values. So from above I would need to return only 10199-MEM and 10199-NAS. I came up with a solution that appears to work. I first removed duplicates from the Merged field, which still returns one record for 1000269-TUL. I then duplicated the field, split by delimiter to get the number from the string. After that i just kept the duplicates on the number value.
@Anonymous , i probably didn't ask the question very well. I need to return all non-duplicate values. So from above I would need to return only 10199-MEM and 10199-NAS. I came up with a solution that appears to work. I first removed duplicates from the Merged field, which still returns one record for 1000269-TUL. I then duplicated the field, split by delimiter to get the number from the string. After that i just kept the duplicates on the number value.
are you trying to count the number of times Customer Segment appears? if so you could do something like this
distinctcount(name) then you would pull out the segment to the rows and add the distinct count to the values on a matrix viz
otherwise are you trying to count the uniqe combination of accountnum, name and segment?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
71 | |
70 | |
43 | |
31 | |
26 |
User | Count |
---|---|
89 | |
49 | |
44 | |
38 | |
37 |