cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Bennasy23
New Member

Calculate sum time per categores

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 ?

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
selimovd
Super User
Super User

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.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

 

yes i need help. Could u help me ?

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors