Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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] ) )
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.