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 Suppliers depending on the Planner Counting with DAX

Hello, I have a table like this: 

 

Table 1 

 

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:

 

Tabelle2

 

I need to count unique suppliers by Planner. I am doing this in DAX

 

Thanks in advance. 

 

Table 1 

Planner             Supplier

1                       Müller

1                       Siemens

1                       Siemens 

2                       Müller

3                       Siemens

3                       Müller 

3                        Müller

3                        Müller 

4                        Siemens

4                         Koch 

 

 

Table 2 

 

planner         Diffrent Supplier used

1                    2

2                    1

3                    2

4                    2

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Anonymous ,

 

Here are the steps you can follow:

1. Create calculated table.

Table 2 =
SUMMARIZE(
    'Table',
    'Table'[Planner],
    "Dirrent Supplier used",
    CALCULATE(
        DISTINCTCOUNT('Table'[Supplier])))

2. Result:

vyangliumsft_0-1681969656855.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @Anonymous ,

 

Here are the steps you can follow:

1. Create calculated table.

Table 2 =
SUMMARIZE(
    'Table',
    'Table'[Planner],
    "Dirrent Supplier used",
    CALCULATE(
        DISTINCTCOUNT('Table'[Supplier])))

2. Result:

vyangliumsft_0-1681969656855.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

tamerj1
Super User
Super User

Hi @Anonymous 

Have you tried DISTINCTCOUNT ( 'Table'[Supplier] )?

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.