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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.