Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I am trying to show SUM of total hours for each activity
Hours & Minutes column can't be set as TIME so unsure how to show visual with aggregate SUM
TimeHours & MinutesMinutesMinjutes as ValuesTime Spent
0:05:32 | 00:05 | 05 | 5 | Over 40 |
1:00:18 | 01:00 | 60 | 60 | Over 40 |
0:25:42 | 00:25 | 25 | 61 | Over 40 |
1:00:12 | 01:00 | 60 | 62 | Over 40 |
0:51:05 | 00:51 | 51 | 63 | Over 40 |
0:22:50 | 00:22 | 22 | 64 | Over 40 |
I can make it work using Minutes column but I want to see visual in Hours & Minutes
Solved! Go to Solution.
Yes. Multiply the duration by 24, that will give you the hours with fractions.
Depends on how you get the original duration. Remember that you cannot create columns from measures.
Please see this article for how to handle durations. It shows how to keep them stored as decimals (for aggregations, visuals, etc.) but display as you want with FORMAT as needed (e.g., in a tooltip).
Calculate and Format Durations in DAX – Hoosier BI
Pat
but I want to see visual in Hours & Minutes
How would that scale look like? Hours and fractions, or hours and quarters? You won't be able to show a mixed scale on the Y axis of a Column chart.
Would it be possible to show as decimals? Eg: 6 and a half hours is 6.5
Yes. Multiply the duration by 24, that will give you the hours with fractions.
@lbendlin Thanks - I feel I am close but not quite.
Do I do this by adding a new column with 24 then create a Measure to multiply by Duration by the New Column?
Depends on how you get the original duration. Remember that you cannot create columns from measures.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
87 | |
84 | |
82 | |
67 | |
49 |
User | Count |
---|---|
135 | |
111 | |
100 | |
65 | |
62 |