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
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
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.