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
common763
Helper III
Helper III

MAX VALUE/MEASURE ISSUE

I currently have a dataset that has rows similar to the below.

1/1/2020     5

1/1/2020     5

1/2/2020     8

1/2/2020     10

 

My matrix table sums those values together as displayed below:

1/1/2020     10

1/2/2020     18

 

I have to calculate the range for what is in the matrix not the dataset.  From what I am gathering I cannot successfully tell PowerBI to find the MAX or MIN of a measure.  I need something to find the MAX and MIN within the matrix not the dataset.  If I use the below formula it will return a value of 5 not 10.  Can anyone help with this?

 

This formula will give me the first number pulling the Highest value in the actual dataset.  Is there anyway to tweak this to get the 10 that I need?

 

Measure = calculate(MAX(NUMBER),ALL(TABLE))
1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @common763 ,

 

Please create a measure like this.

__Max_value = 
VAR __table = SUMMARIZE( Sheet4, Sheet4[Date], "__Value", SUM(Sheet4[Value]) )
RETURN 
MAXX(
    __table,
    [__Value]
)

v-lionel-msft_0-1599212071757.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @common763 ,

 

Please create a measure like this.

__Max_value = 
VAR __table = SUMMARIZE( Sheet4, Sheet4[Date], "__Value", SUM(Sheet4[Value]) )
RETURN 
MAXX(
    __table,
    [__Value]
)

v-lionel-msft_0-1599212071757.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

This works.  Accepting as a solution.  Thanks for your help!!!

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.