Forum Discussion
kdunaev
6 years agoRegular Visitor
Help with aggregation
Hello! I am new on here - first post!! I have a measure calculated as: Missed Meal Hrs = count('Final Data'[Employee ID])*.5 I am trying to create another measure that would take a min value of the...
amitchandak
6 years agoSuper User
kdunaev ,Can you share sample data and sample output.
kdunaev
6 years agoRegular Visitor
For some reason, I'm having a hard time with copying a table into the body of the comment and don't see how to attach a file. Hopefully this link works:
https://www.dropbox.com/s/atwxz9wezhz1tna/Book1.xlsx?dl=0
- kdunaev6 years agoRegular Visitor
Division
Employee ID Missed Meal Hrs OT Hours Missed Meal OT hours AA 12345 2.5 0 0 AA 12346 2.5 0 0 AA 12347 2.5 0.22 0.22 AA 12348 2.5 9.92 2.5 AA 12349 2.5 2.18 2.18 AA 12350 2.5 0.05 0.05 BB 12351 2.5 2.93 2.5 BB 12352 2.5 0 0 BB 12353 2.5 0.6 0.6 BB 12354 2.5 3.75 2.5 BB 12355 2.5 4.82 2.5 BB 12356 2.5 0.15 0.15 Desired output Missed Meal Hrs OT Hours Missed Meal OT hours AA total 15.00 12.37 4.95 BB Total 15.00 12.25 8.25 What I am getting: Missed Meal Hrs OT Hours Missed Meal OT hours AA total 15.00 12.37 12.37 BB Total 15.00 12.25 12.25 - Anonymous6 years agoNot applicable
Hi kdunaev ,
You can use the below measures.
Missed Meal OT Hr = CALCULATE(SUM(Table5[Missed Meal OT hours]), ALLEXCEPT(Table5,Table5[Division]))Missed Meal = CALCULATE(SUM(Table5[Missed Meal Hrs]), ALLEXCEPT(Table5,Table5[Division]))OT Hourss = CALCULATE(SUM(Table5[OT Hours]), ALLEXCEPT(Table5,Table5[Division]))Regrards,Harsh NathaniDid I answer your question? Mark my post as a solution! Appreciate with a Kudos!! - amitchandak6 years agoSuper User
kdunaev , I think somehow I am not getting what you were getting
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-accessibility-keyboard-shortcuts