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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Need a help with avoiding repeating values in DAX-New user

 
Hello, I am a new user of PowerBi. I  need a sum of Maximum bid values of an Item.  Please suggest how should I do it. Thanks!

 

Itemid Bid($)BidderID
A101
A122
A143
A164
A185
B103
B155
B154
B158
 
 
 
1 ACCEPTED SOLUTION

@Anonymous ,

Here is the formula:

Sum max values =
var MaxPerItem =
ADDCOLUMNS(
     SUMMARIZE('Table','Table'[Itemid ]),
     "Max Value",
     CALCULATE(MAX('Table'[Bid($)])
)
)
RETURN
SUMX(MaxPerItem,[Max Value])

sum max per item.PNG

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

[Sum Of Max] =
SUMX(
    VALUES( T[ItemID] ),
    CALCULATE( MAX( T[Bid] ) )
)
Anonymous
Not applicable

I need it in measure. Thanks!

Anonymous
Not applicable

"I need a sum of Maximum bid values of an Item."

An item can have just one maximum bid by definition, so there's nothing to sum.

@Anonymous ,

Here is the formula:

Sum max values =
var MaxPerItem =
ADDCOLUMNS(
     SUMMARIZE('Table','Table'[Itemid ]),
     "Max Value",
     CALCULATE(MAX('Table'[Bid($)])
)
)
RETURN
SUMX(MaxPerItem,[Max Value])

sum max per item.PNG

Hi @Anonymous ,

 

Not very clear.

 

What will be the expected output 18 and 15 ?

 

Regards,

Harsh Nathani

Anonymous
Not applicable

I  needed total of maximum values. Thanks!

Hi @Anonymous ,

 

Solution provided above.

 

But sharing since I worked on it too

 

Sum of Max Bids = 
var Maxvalue =
     SUMMARIZE('Table','Table'[Itemid ],
     "Max Value",
     CALCULATE(MAX('Table'[Bid($)])
)
)
RETURN
SUMX(MaxValue,[Max Value])

 

 

1.jpgRegards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors