Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello in data table i have column "Time spent" column format is "Time (hh:mm:ss).
When i add "Time spent" in chart, in value, i cant sum, average and so on...
It is possible sum time in POWER BI ?
Solved! Go to Solution.
Hi @Bennasy23,
AFAIK, common charts will display the summarized values based on the current category(axis, legend). (For date/time type values, they can't able to be aggregated.)
Perhaps you can try to convert your duration to total second format then you can simply use them on chart value fields.
Aggregating Duration/Time - Microsoft Power BI Community
Regards,
Xiaoxin Sheng
I've registed specifically to answer this, as i've found a very simple answer:
if you don't mind that the displayed value will be a decimal number (i.e. 1.25 instead of 1:15:00) - you should just do as follow:
1. in the query - change the "Time spent" field from "time" to "decimal number".
2. still in the query - select the column, go to Transform > Standard (Number column) > Multiply > and enter 24 as the multiplied number.
that's it!
now you can sum your data in the field and recive the amount of hours you used for that task. you just have to remember that values will be decimal so if you see 1.5 it means 1 and a half hours (and NOT 1 hour and 50 minutes).
Enjoy 😉
Hi @Bennasy23,
AFAIK, common charts will display the summarized values based on the current category(axis, legend). (For date/time type values, they can't able to be aggregated.)
Perhaps you can try to convert your duration to total second format then you can simply use them on chart value fields.
Aggregating Duration/Time - Microsoft Power BI Community
Regards,
Xiaoxin Sheng
Hey @Bennasy23 ,
in general you can't sum values with the format time directly.
You have to do a workaround. For example to calculate everything in seconds, then you can sum them up. Then you have to change the display in hh:mm:ss with a DAX measure.
yes i need help. Could u help me ?
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 64 | |
| 39 | |
| 33 | |
| 23 |