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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Power BI is displaying time values as text "HH:mm:ss" text instead of the actual value

I'm having a strange issue in Power BI Desktop.

I have data in my source (Azure Analysis Services) where I'm calculating the average time for chat answering and formatted as "HH:mm:ss" (last column in screenshot below).

Power BI is now displaying "HH:mm:ss" instead of the actual value.

Below is the same table in Excel and the average time is being displayed correctly.

 

I can also add that field in a graph over a few days and the graph is changing so Power BI is still getting some values, it just doesn't display them.

 

Power BI vs Excel.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Just in case someone else comes across this issue. I think this might be a case where Excel simply is more lenient whereas Power BI has higher expectations on the incoming data.

 

I updated my formulas in the data warehouse from AVERAGE(x) to TIMEVALUE(FORMAT(AVERAGE(x),"HH:mm:ss")) which now displayes the times correctly in Power BI and Excel still is fine too.

 

I'm just still puzzled that Power BI would display the text "HH:mm:ss"...

View solution in original post

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

Hi @Anonymous,

 

I can't reproduce this on my side, 'HH:mm:ss' parameter works well on my side. Can you please share a pbix file for test?


Regards,

Xiaoxin Sheng

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

Hi Xiaoxin,

 

The data is coming from a corporate Azure Data warehouse that I can't give you access to. So sending you the pbix isn't going to be any help.

 

The source data field is called Answered time and it is simply raw duration (in seconds) / 86400 and then formatted as time field.

Power BI has no problem displaying it correctly formatted as data element.

 

http://tinypic.com/r/2mrb2if/9

 

Average Speed of Answer is a measure that is simply AVERAGE([Answered Time]), again formatted as time.

 

I have tried adding a new measure within Power BI that is using the same formula. Again it works when displaying the result as decimal but isn't working when I format the result as time in Power BI (last two columns).

 

http://tinypic.com/r/b6aasz/9

 

I also tried the same with an unformatted field in the data source but the behavior in Power BI is the same, displaying decimals iw fine but time format is only showing the format string and not the value.

 

Anonymous
Not applicable

Just in case someone else comes across this issue. I think this might be a case where Excel simply is more lenient whereas Power BI has higher expectations on the incoming data.

 

I updated my formulas in the data warehouse from AVERAGE(x) to TIMEVALUE(FORMAT(AVERAGE(x),"HH:mm:ss")) which now displayes the times correctly in Power BI and Excel still is fine too.

 

I'm just still puzzled that Power BI would display the text "HH:mm:ss"...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.