Forum Discussion

joannasokolowsk's avatar
5 years ago
Solved

MAX/MIN measure

Hi all,

I need a help with MAX/MIN measure which will be checking the max/min sum of number of hours per person (by category). 

For example, based on below datasat the max sum number of hours per person for soft skills category should be displayed as 27.5 and min sum number of hour per person for technical category should be 21.  Also there will be few slicers on the page (like grade, country etc), so the min/max number should change accordingly to filters applied. 

 

Please help me with creating this min/max measure measure. 

 

namecategorycountrygradetraining titlelength in hours
ASoft skillPolandDirectorCommunciation skills5
ASoft skillPolandDirectorNegotiation skills6
ASoft skillPolandDirectorWriting7
ASoft skillPolandDirectorPresentation skills9.5
ATechnicalPolandDirectorExcel10
ATechnicalPolandDirectorWord11
ATechnicalPolandDirectorPower Point0.5
BSoft skillItalyAssociateCommunciation skills5
BSoft skillItalyAssociateNegotiation skills6
BTechnicalItalyAssociateExcel10
BTechnicalItalyAssociateWord11
  • amitchandak's avatar
    amitchandak
    5 years ago

    joannasokolowsk , Try one of the two

     

    minx(values(Table[name]), calculate(sum(Table[length in hours])))

    or
    minx(Summarize(Table,Table[category],Table[name]"_1", calculate(sum(Table[length in hours]))),[_1])

5 Replies