Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join 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.

Reply
TepStep
New Member

Distinct count duplicated by legend - filter value prioritization

Hello,
I have a below table:

 

Transaction IDCustomer IDCustomer TypeCreated OnAlerted?
11CUSTOMER01.01.2022Not Alerted
21CUSTOMER01.02.2022Not Alerted
31VENDOR01.03.2022Alerted
41BANK01.04.2022Not Alerted
51VENDOR01.05.2022Alerted
62VENDOR01.01.2022Not Alerted
72VENDOR01.02.2022Not Alerted
82BANK01.03.2022Not Alerted
92BANK01.04.2022Not Alerted
102BANK01.05.2022Alerted
112BANK01.06.2022Not Alerted
122BANK01.07.2022Not Alerted
132CUSTOMER01.08.2022Not Alerted
142CUSTOMER01.09.2022Not Alerted
152CUSTOMER01.10.2022Not Alerted
162CUSTOMER01.11.2022Not Alerted
172CUSTOMER01.12.2022Not Alerted
183CUSTOMER01.01.2022Not Alerted
193CUSTOMER01.02.2022Not Alerted
203CUSTOMER01.03.2022Not Alerted
213CUSTOMER01.04.2022Not Alerted
223VENDOR01.05.2022Not Alerted
233CUSTOMER01.01.2022Not Alerted
243CUSTOMER01.02.2022Not Alerted
253CUSTOMER01.03.2022Not Alerted
263CUSTOMER01.04.2022Not Alerted
273BANK01.05.2022Alerted
283VENDOR01.06.2022Not Alerted
293VENDOR01.07.2022Not Alerted
303VENDOR01.08.2022Not Alerted
313VENDOR01.09.2022Not Alerted
323VENDOR01.10.2022Not Alerted
333VENDOR01.11.2022Not Alerted
343VENDOR01.12.2022Not Alerted

 

It contains unique [Transaction ID], but the Business Partner ([Customer ID]) can appear multiple times - also each Business Partner can have many roles: customer, vendor or bank.
Each Transaction is validated and can receive an Alert (column: [Alerted?]).
Creating visual with transactions status (Alerted vs. Not Alerted) was easy, but I can't figure out how to show on pie chart business partners with their status. Each Business Partner should be able to be filtered by [Customer Type] and [Created On] date.
Without the specific measure the visual shows duplicated distinct count (as each Business Partner is Alerted for some transactions, but also has status 'Not Alerted' for other transactions.

Do you know what measure could solve this issue? If the Business Partner for selected slicers would have 'Alerted' status - it should only appear as 'Alerted' and not as 'Not Alerted'. Currently the visual shows duplicates (which is a standard behavior for distinct count with applied legend.

TepStep_2-1664574271137.png

 

I'd be very grateful if you'll help me with solving that.

Cheers,
Anna

1 ACCEPTED SOLUTION

see attached for a proposal using two complementary measures.

 

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

Thank you for the message. I've replaced the screenshot of table with actual table copied from spreadsheet.

Kind Regards,
Anna

see attached for a proposal using two complementary measures.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.