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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.