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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors