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
Vanessa250919
Helper V
Helper V

Sum maxx

Hello,

 

I try to have a measure to have a sum for the value for one column .

 

I need in my graph the max value and not a variation value, it's possible ?

 

Thanks in adv.

 

Vanessa250919_0-1678687131299.png

 

11 REPLIES 11
tamerj1
Super User
Super User

HI @Vanessa250919 
Please provide more information

POSTAL_CODE               NBR_PAR
1000                              2
2000                              4

3000                              2

In my graph in need the sum 8 and not the maxx 4 .

@Vanessa250919 
Is [NBR_PAR] a column in the sorce table or a measure? 

What are you slicing by in the graph? Aea, city, date, month?

is an column .
city in graph .

@Vanessa250919 
It should work. Double check the data type of the 'Table'[NBR_PAR] column. It has to be a number not a text. 
You may also create a measure

NBR_PAR_Measure = SUM ( 'Table'[NBR_PAR] )

 

Ok, it's work, but I need to used the max of this measure in my graph to have a steady bar

@Vanessa250919 
Max Postal Code for each city? or Max City among all cities? The later would be

NBR_PAR_Max =
MAXX ( ALLSELECTED ( 'Table'[City] ), CALCULATE ( SUM ( 'Table'[NBR_PAR] ) ) )

Max for all cities, in this case I have max for one city

Vanessa250919_0-1678697248991.png

 

@Vanessa250919 

NBR_PAR_Max =
MAXX ( VALUES ( 'Table'[Postal Code] ), CALCULATE ( SUM ( 'Table'[NBR_PAR] ) ) )

I try this measure and I have the same result

 

Vanessa250919_0-1678697872075.png

 

@Vanessa250919 
Please provide some sample data along with the expected result.

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.