Forum Discussion
Time and Duration Help
- Anonymous6 years ago
What if you generate these columns:
DAYS = TRUNC([Business Duration]/86400)
HRS = TRUNC(MOD([Business duration]/86400,1)*24)MIN = TRUNC(MOD(MOD([Business duration]/86400,1)*24,1)*60)SEC = TRUNC(MOD(MOD(MOD([Business duration]/86400,1)*24,1)*60,1)*60)FORMATTED = 'Page 1'[DAYS]&":"&'Page 1'[HRS]&":"&'Page 1'[MIN]&":"&'Page 1'[SEC]Does that help?
I had this issue and I found out that Power BI doesn't support showing Y Axis duration data as time in that DD:HH:MM:SS format. I had a data set that calculates an average duration in minutes, and I made a line graph to show that average duration vs day. I created measures:
Line chart attached showing tooltip.
- mariner846 years agoAdvocate I
Anonymous
Thank you for responding and providing some insight into your data. It's too bad it cannot graph the data as required.
I'm in need to graph the average duration (once converted to dd:hh:mm:ss) monthly to show the trend that is occurring.
Have you had to do similar reporting over that time instead of looking at it vs day?
- Anonymous6 years agoNot applicable
What if you generate these columns:
DAYS = TRUNC([Business Duration]/86400)
HRS = TRUNC(MOD([Business duration]/86400,1)*24)MIN = TRUNC(MOD(MOD([Business duration]/86400,1)*24,1)*60)SEC = TRUNC(MOD(MOD(MOD([Business duration]/86400,1)*24,1)*60,1)*60)FORMATTED = 'Page 1'[DAYS]&":"&'Page 1'[HRS]&":"&'Page 1'[MIN]&":"&'Page 1'[SEC]Does that help?- mariner846 years agoAdvocate I
Anonymous
This is great, I'll be able to work with this. Appreciate you helping me out!