Forum Discussion
How to sum max values in table?
Hi!
I've the following issue:
I have table with such data as: training name, trainer name, traing staring date, length (hours) --> where length is shown as max value (I don't want to sum up per row). However I'd like to calculate the total of max values per trainer, per training name while filtering data. At this moment - when I filter data per trainer name - I can only see the max value in total row 😕
I'd appreciate your help!
Thank you!
Kasia
kasiak put this instead of the lengh column you used in the visual:
Length Measure = SUMX( SUMMARIZE( 'Table'[Training Title], 'Table'[Training Name], 'Table'[Training Start Date] ), CALCULATE(MAX('Table'[Length (hours)] )'Table' is the name of your table and 'Table'[Length (hours)] is the name of the column with hours.
3 Replies
- SpartaBICommunity Champion
kasiak put this instead of the lengh column you used in the visual:
Length Measure = SUMX( SUMMARIZE( 'Table'[Training Title], 'Table'[Training Name], 'Table'[Training Start Date] ), CALCULATE(MAX('Table'[Length (hours)] )'Table' is the name of your table and 'Table'[Length (hours)] is the name of the column with hours.
- SpartaBICommunity Champion
kasiak my pleasure 🙂
Hey, check out my showcase report:
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up if you liked it 🙂