Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I have a question regarding the following requirement.
First of all data is like below
Day | Duty | Task | DutyStarts | DutyEnds | DutyDurationHrs |
1 | D1 | T1 | 9:00 | 11:00 | 2 |
1 | D1 | T2 | 9:00 | 11:00 | 2 |
2 | D1 | T1 | 14:00 | 19:00 | 5 |
2 | D1 | T2 | 14:00 | 19:00 | 5 |
2 | D1 | T3 | 14:00 | 19:00 | 5 |
3 | D1 | T1 | 9:00 | 11:00 | 2 |
3 | D1 | T2 | 9:00 | 11:00 | 2 |
In a visual table there will be the column Duty and then i want to display a measure which will show sum of DutyDurationHrs for all Days that this Duty exists.
Regarding above dataset i would like to show
Duty DutyDurationHours
D1 9
I mean that for each Day that this Duty exists, i want to extract the value of DutyDurationHrs only once and finally to sum all of them (for example in Day1 -> D1 duration was 2 Hrs, in Day2 -> D1 duration was 5 Hrs, in Day3 -> D1 duration was 2 Hrs,
Solved! Go to Solution.
Try this MEASURE
Measure = SUMX ( VALUES ( TableName[Day] ), CALCULATE ( AVERAGE ( TableName[DutyDurationHrs] ) ) )
Try this MEASURE
Measure = SUMX ( VALUES ( TableName[Day] ), CALCULATE ( AVERAGE ( TableName[DutyDurationHrs] ) ) )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |