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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Rudd_ThreeTrees
Frequent Visitor

Choose the bigger value if more than one are in data when doing summarize()

Hello everyone

Following problem:

table with Orders:

MaterialQuantityUnitBaseUnits
110OP100
115OP300
21OP10

Out of this table i want to create a calculated table with the the Material-ID and the meaning of the Unit for example:

MaterialMeaning OP
1HERE IS THE PROBLEM
210

 

So as you can see the data for material 1 is not correct or did change over the time i have the data... The OP can mean 10 or 20.
So if this occurs, i want to choose allways the biggest value.

The lookup table is calculate with the summarize() function.

Thanks you very much for every hint or help.

Cheers


 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

pls try this

Table 2 = ADDCOLUMNS(SUMMARIZE('Table','Table'[Material]),"Meaning OP",CALCULATE(MAX('Table'[BaseUnits])))

Screenshot_1.png

View solution in original post

1 REPLY 1
Ahmedx
Super User
Super User

pls try this

Table 2 = ADDCOLUMNS(SUMMARIZE('Table','Table'[Material]),"Meaning OP",CALCULATE(MAX('Table'[BaseUnits])))

Screenshot_1.png

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.

Top Solution Authors