To implement this recipe, do the following:
- Create a measure using the following formula:
R08_Duration =
VAR __Duration = SUM('R08_Table'[Milliseconds])
VAR __Hours = INT ( __Duration / 3600000)
VAR __HoursRemainder = __Duration - __Hours * 3600000
VAR __Minutes =
INT (
MOD(
__HoursRemainder,
3600000
) / 60000
)
VAR __Seconds =
INT (
MOD (
MOD(
__HoursRemainder - (__Minutes * 60000)
,60000
),
60000
) / 1000
)
VAR __Milliseconds =
ROUNDUP(
MOD(
MOD (
MOD(
__HoursRemainder,
3600000
),
60000
),
1000
),
0
)
RETURN
__Hours * 10000000 + __Minutes * 100000 + __Seconds * 1000 + __Milliseconds
- Create a Clustered column chart visualization and place the ID column in the Axis field and the R08_Duration measure in the Value field for the visualization.
- Create a second Clustered column chart visualization and place the Group column in the Axis field and the R08_Duration measure in the Value field for the visualization.
- For both visualizations, turn on Data labels and set the Display units to None.
- Switch the Model view and click on the R08_Duration measure.
- In the Properties pane, expand the Formatting section, set the Format to Custom, and enter 00:00:00 as the Custom format.