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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Get largest value from a SUMMARIZE table by id

Hi everyone, 

 

I'm a newbie when it comes to DAX, I'm using PowerPivot in Excel 2013,  I have a table Bugs that have all the historical data for bugs opened in our company (component, status, updated_date, rev, etc) for every change done to the bug it is recorded with a consecutive revision # 1...n.

 

I've been struggling trying to the get the largest rev value from a given table that I'm getting using the SUMMARIZE function as in a measure as follows so I can later SUM/SUMX the Is_Open column,  therefore, HOW can I get the largest value from the Summarize_Rev column for every id based on a date selected by the user means by a slicer in GUI?   

 

ie for id 2204835797  it would be 4.

 

NOTE: DATE(2018,08,03)   is actually dinamic based in a measure I built Date_Selected:=MIN(dtDates[DateToSelect])

 

 

 SUMMARIZE 
 (
            FILTER (Bugs,Bugs[updated_date]< DATE(2018,08,03))
            ,Bugs[id]
            ,Bugs[Is_Open]  
            ,"Summarized_Rev",MAX ( Bugs[rev] )
  ) 

 

idIs_OpenSummarize_Rev
12010001801021
12010001354025
1201000122609
1201000120506
1201000115113
12010001151010
220483579703
220483579714
220473220219
2204732202012

 

 

Please let me know if you need further details.

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

If you want to calculate the Max Summarize_Rev per id, you could try with the formula below.

 

Measure =
CALCULATE (
    MAX ( 'Table1'[Summarize_Rev] ),
    ALLEXCEPT ( Table1, 'Table1'[id] )
)

Here is the result output.

 

max rev.PNG

 

If you still need help, please share your data sample and your desired output so that we could help further on it.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
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-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

If you want to calculate the Max Summarize_Rev per id, you could try with the formula below.

 

Measure =
CALCULATE (
    MAX ( 'Table1'[Summarize_Rev] ),
    ALLEXCEPT ( Table1, 'Table1'[id] )
)

Here is the result output.

 

max rev.PNG

 

If you still need help, please share your data sample and your desired output so that we could help further on it.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks Cherry! 

It was not exactly what I needed surely because I wasn't clear enough :), however I was able to handle the final result I needed.

 

Again,  BIG thanks! 

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.