Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I have read several answered questions in the the forums and can't seem to find exactly what I am looking for. I am fairly new to Power BI so I am still in the learning phase. I am trying to display a simple stacked bar chart using the following data:
Code Duration
H0036 20
H0036 17
H2019 15
H0036 45
H2019 30
My data (from an excel spreadsheet) is over 20k rows of similar data. I was able to create a bar chart (see below) that groups it by the "Code" column and "Duration" column, however it displays the sum of the total number of the duration column per code. What I need to show on the X axis is the this total number divided by 60 (the duration stands for minutes, so I would like to display this as total hours and not total minutes). I have tried measures and calculated formulas and I either I'm not understanding the syntax or how this is supposed to work.
In summary, I basically need to customize the X axis to show this number in total hours.
Any advice would be greatly appreciated. Thanks!
Solved! Go to Solution.
HI @karnzo
It sounds like a calculated measure should work, if I understand your post.
Something like
Hours = SUM('table1'[Duration] ) / 60and then drag this measure to the values area of your chart in place of the field.
HI @karnzo
It sounds like a calculated measure should work, if I understand your post.
Something like
Hours = SUM('table1'[Duration] ) / 60and then drag this measure to the values area of your chart in place of the field.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 29 | |
| 28 | |
| 26 | |
| 25 | |
| 18 |
| User | Count |
|---|---|
| 54 | |
| 47 | |
| 39 | |
| 28 | |
| 21 |