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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Displaying Time from an Azure Analysis Services Model

I have a report which is direct connection to an Azure Analysis Services tabular model. Two of the fields are for displaying the start and end time of a particular event. The underlying data is in SQL Server with a data type of TIME(0) and my Tabular model has the Data Type set to DateTime with a format of hh:mm AMPM.

 

When I return this data in Power BI, it's showing it as a date, not a time:

PBITime.png

 

If a query the same dataset using the Analyze Excel function in Power BI, it displays as I would expect it:

 

ExcelTime.png

Anyone have any clues as to how get this to display properly in PBI?

 

The fields are both used in a DAX calculation which evalulates whether a delivery occurs within it's timeslot, so fudging the field to display the time as text won't work as it breaks the DAX calc. I need it remain as datetime data type.

 

My last ditch soltution is to create a second set of columns, with a formatted time in them using text, so users can drag these on to the report and display the right value, whilst the DAX can use hidden columns that retain the datetime data type columns for calculation purposes.

 

However, in the interests of keeping my data model lean, I'd prefer to avoid adding extra columns. I'd prefer if this would "Just work".

 

 
4 REPLIES 4
taistep
New Member

Hi, have you solved the problem? I have the same issue, and I haven't found a valid help in others' issues...

v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

After my tests, I couldn't reproduce this issue. You could try to change Data Type to other type in your tabular model.

1-1.PNG

If this issue still exists, you could create a support ticket here.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

Have you set the fields in PowerBI to type Time?

Anonymous
Not applicable

It's a direct connection to an Analysis Service Cube, so you can't alter the the data formats. It just inherits whatever is under the hood on SSAS

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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