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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

measure that displays only the amount of the largest suppliers for each client

Good afternoon, dear friends, I need to calculate a measure that displays only the amount of the largest suppliers for each client.

1. first group the sales table by customers of its suppliers and the sales amounts for each customer.
2. from the table of paragraph 1, select the largest amounts of sales for each supplier and the supplier itself
3. make a measure that when creating a list of suppliers showed the amount by which it is large for each supplier

 

 

sample to forum power bi picture 1.jpg

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

Assuming that the second table is your data sample ang the third table is your expected, then you could create the two measures below to achieve your desired output.

 

 

Measure =
CALCULATE (
    MAX ( 'Table2'[Amount] ),
    ALLEXCEPT ( Table2, 'Table2'[Supplier], 'Table2'[Customer] )
)

 

Supp = LOOKUPVALUE('Table2'[Supplier],'Table2'[Amount],[Measure])

Here is the output.

 

Capture.PNG

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
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
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

Assuming that the second table is your data sample ang the third table is your expected, then you could create the two measures below to achieve your desired output.

 

 

Measure =
CALCULATE (
    MAX ( 'Table2'[Amount] ),
    ALLEXCEPT ( Table2, 'Table2'[Supplier], 'Table2'[Customer] )
)

 

Supp = LOOKUPVALUE('Table2'[Supplier],'Table2'[Amount],[Measure])

Here is the output.

 

Capture.PNG

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hello v-piga-msft !!!

and how to immediately make measures from the first table, without grouping the totals in the table two, while the amount of sales was all for the period?

 

sample to forum power bi picture 2.jpg


I tried to do through summarize and then through MAXX, but the result is wrong?

I do not want to use a physical table in the model because I need a dynamic measure ...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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