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
Anonymous
Not applicable

Counting unique values by condition

Hello together, 

 

I have a table like this 

 

PlannerSupplier
1Siemens
1Müller
1Siemens
2Müller
3Siemens
3Müller
3Müller
3Müller
4Siemens
4Koch

 

I have different Planners and they have used different suppliers. I want to count the unique Suppliers depending on the Planner. My Target is to get the following Output: 

 

Planner Different Supplier used
12
21
32
4

2

 

So I need to count unique suppliers by Planner. 

 

Thanks for your help.

 

1 REPLY 1
barritown
Super User
Super User

Hi @Anonymous,

You can do it without any code.

1. Add a table visual.

2. Add both columns to its "Values" field.

3. Choose "Don't summarize" for Planner.

barritown_0-1681890256561.png

4. Choose "Count (Distinct)" for Supplier.

barritown_1-1681890318668.png

 

The output should be like this:

barritown_2-1681890359633.png

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

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.