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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.