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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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