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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Sum of Minimum for value of a grouped column

I'm trying to sum only one (or I guess the minimum would work) value for each repeating value in another column.

 

I have a column that duplicates the minimum hours required and then repeats in the table with a different attribute for savings % and the amount of savings across several rows.  I'm trying to calculate the initial minimum hours to see the sum of minimum hours just once for each process step ID, since it's the same value but repeated over multiple rows.

 

so group process step ID, identify the min value (which in this case is all the same), and then do a sum of all the one Min Process Tiime Hours column.

 

i.e. 

 

group 198 and only show the .25 Min Process Time Hours once, group 199 and only show the .25 min process time hours once, and do a sum of all those minimums.

 

How would I do this?? 

 

process step ID.JPGsavings cal.JPG

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Anonymous - Are all of those columns in the same table? Sorry, it's odd how it is posted so wasn't quite sure. If so, the technique should be:

 

Column =
  MINX(
    FILTER('Table',[Process Step ID] = EARLIER([Process Step ID])),
    [Min Process Time Hours]
  )

Measure =
  VAR __ProcessStepID = MAX([Process Step ID])
  MINX(
    FILTER(ALL('Table'),[Process Step ID] = __ProcessStepID),
    [Min Process Time Hours]
  )


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@Anonymous - Are all of those columns in the same table? Sorry, it's odd how it is posted so wasn't quite sure. If so, the technique should be:

 

Column =
  MINX(
    FILTER('Table',[Process Step ID] = EARLIER([Process Step ID])),
    [Min Process Time Hours]
  )

Measure =
  VAR __ProcessStepID = MAX([Process Step ID])
  MINX(
    FILTER(ALL('Table'),[Process Step ID] = __ProcessStepID),
    [Min Process Time Hours]
  )


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks for the formula! I ended up with a different work around but I do appreciate the help 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.