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
Tlotly
Resolver II
Resolver II

24 hours changing to 12 hours after publishing to the report server

Good day

 

Please assist.

I have a time visual which shows 24 hours on the x axis. It works fine on desktop as well as when publishing to the report server. But after a scheduled refresh, it shows 12 hours instead of 24 hours.

 

Desktop

Tlotly_0-1670313357452.png

 

After server refresh

Tlotly_0-1670407376574.png

 

 

Dax used to create the hour column:

Hours1 = FORMAT([TimeStart - hours - Copy.2],"HH AM/PM")
 

I formatted the date used to create the hour column to datetimezone.

Date column:
Tlotly_2-1670313426048.png

 

I also checked the format on my machine as well as on the server, it's using the timezone below:
Tlotly_3-1670313425887.png

 

How do I fix this?

Thank you in advance

 

 

2 REPLIES 2
Tlotly
Resolver II
Resolver II

Hi @v-yiruan-msft 

 

Thank you for the response. I managed to get sorted this morning. 

Firstly, I changed the format of my date column ( [TimeStart]) on Power Query to datetime. I then created a custom column using my date column i.e. DateTime.ToText([TimeStart],"dd-MM-yyyy HH:mm:ss"). Lastly, I used the custom column to create the Hours column, and it works perfectly.

 

This is how it's showing now after scheduled refresh on Report Server:

Tlotly_1-1670408469017.png

 

But back to your questions:

1. I've attached the correct second screenshot on the original post.

2. I used Hours for the x axis. Dax used to create it: Hours1 = FORMAT([TimeStart - hours - Copy.2],"HH AM/PM")

Tlotly_0-1670407930452.png

3. And yes the data type is Time

 

Thank you

v-yiruan-msft
Community Support
Community Support

Hi @Tlotly ,

As checked the screenshots which you shared(the first and second one), it seems that they are same. Could you please confirm that? Which field be applied on X axis of column chart? What's the data type of that field? Is it Time type?

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.