Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I have a column which reports time worked in hours (per id/row). This I can report on monthly and I can calculate monthly average. However I am converting the hours using DAX to display Days & Hours
| Hours worked | Days & Hours | |
| Jan | 12 | 0 days 12 hours |
| Jan | 22 | 0 days 22 hours |
| Jan | 10 | 0 days 10 hours |
| Ave hours worked | Days & Hours | |
| Jan | 48 | 2 days 0 hours |
| Feb | 55 | 2 days 7 hours |
| Mar | 50 | 2 days 2 hours |
Any help would be much appreciated
HI @KimNixon ,
You can try to use the following measure formula to calculate the average of work hour based on month and convert them to time duration string:
Measure =
VAR _avg =
CALCULATE ( AVERAGE ( 'Table'[Hour] ), VALUES ( 'Table'[Date].[MonthNo] ) )
VAR _rand =
ROUNDDOWN ( _avg, 0 )
RETURN
IF (
_avg >= 24,
INT ( _rand / 24 ) & " day"
& MOD ( _rand, 24 ) & " hours",
_rand & " hours"
)
Regards,
Xiaoxin Sheng
create an hourly measure. Create an avg of the sum.
Refer - this is the sum of Avg
https://community.powerbi.com/t5/Desktop/SUM-of-AVERAGE/td-p/197013
Then format this column to show final result in day format
Thank you for the steer, I am getting a circular reference error, I must be going wrong somewhere
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 122 | |
| 110 | |
| 83 | |
| 69 | |
| 68 |