Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
tomb0
Frequent Visitor

measure time average for line and clustered chart

im trying to make a line and clustered chart
that shows Date to average lead time.

tomb0_0-1630054935551.png

lead time pid = CALCULATE(FORMAT(AVERAGE(PID[Leadtime]),"HH:MM:SS"),
PID[Reason Description]="Unplanned Physical Inventory"||PID[Reason Description]="Putaway Physical Inventory")
 
the Calculate formula i can do in the filter of the chart to. but then it also not work.
the only place i can put the measure is in the Tooltips

many thank in advance
Tom,
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @tomb0,

Format function will convert the target value to text with specific text formats.
AFAIk, text value can't be aggregated with common math modes(e.g. sum, average, max, min...), so power bi will forced use 'count' mode to summary these type of values if you use them on the chart value field which only allows the aggregated values.

BTW, current power bi data model tables do not support duration type and you can't do aggregate on the date or time values, I'd like to suggest you convert them to 'total second' values then you can simply do aggregate on them.

Aggregating Duration/Time - Microsoft Power BI Community

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @tomb0,

Format function will convert the target value to text with specific text formats.
AFAIk, text value can't be aggregated with common math modes(e.g. sum, average, max, min...), so power bi will forced use 'count' mode to summary these type of values if you use them on the chart value field which only allows the aggregated values.

BTW, current power bi data model tables do not support duration type and you can't do aggregate on the date or time values, I'd like to suggest you convert them to 'total second' values then you can simply do aggregate on them.

Aggregating Duration/Time - Microsoft Power BI Community

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors