March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have got problem to make a pivot table that summerize maximum hours from a day schedule (I have copied only piece of it):
START DATE | END DATE | NAME | TRAINING | TYPE | HOURS | INSTRUCTOR | RESULT |
21/01/2019 | 23/01/2019 | NAME1 | 22.00 | MW | PASS | ||
21/01/2019 | 21/01/2019 | NAME2 | 6.00 | NB | PASS | ||
21/01/2019 | 22/01/2019 | NAME3 | 6.00 | NB | PASS | ||
23/01/2019 | 23/01/2019 | NAME4 | 4.50 | NB | PASS |
I want to make a pivot table that summarize hours by instructor but i dont know how to make a measure in a DAX.
My pivot table looks like this:
Sum of HOURS | Column Labels | ||
Row Labels | MW | NB | Grand Total |
2019 | 157 | 233.5 | 391 |
Qtr1 | 157 | 233.5 | 391 |
Grand Total | 157 | 233.5 | 391 |
I want to sum only max value from 21/01/2019 of instructor NB. Is there any measure that I could use?
Thank You,
Solved! Go to Solution.
You should be able to do something like:
Measure 6 = VAR __date = MAX([START DATE]) VAR __instructor = MAX([INSTRUCTOR]) VAR __table = SUMMARIZE('Table8',[START DATE],[INSTRUCTOR],"__hours",MAX([HOURS])) RETURN MAXX(__table,[START DATE]=__date && [INSTRUCTOR]=__instructor)
You should be able to do something like:
Measure 6 = VAR __date = MAX([START DATE]) VAR __instructor = MAX([INSTRUCTOR]) VAR __table = SUMMARIZE('Table8',[START DATE],[INSTRUCTOR],"__hours",MAX([HOURS])) RETURN MAXX(__table,[START DATE]=__date && [INSTRUCTOR]=__instructor)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
81 | |
63 | |
54 | |
42 |
User | Count |
---|---|
194 | |
106 | |
90 | |
63 | |
51 |