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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Unusual Behavior for Dates

I have unsual behavior involving dates. I have made a slicer based on date, it's working perfectly fine in Power BI Desktop:

 

PBIDesktop.JPG

 

But once I uploaded it on the Power BI Service, The dates are ruined

 

PBIService.JPG

 

It came to a point that I accedentally visitied the year 1899 and I can no longer get out of it as the slicer is disabled:PBIService-1899.JPG

 

I have a SAP HANA data source in direct query in which it gets data from for those dates.

6 REPLIES 6
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

I am unable to reproduce your scenario, whether or not this issue always happens for other data resource? You create a simple date table by "Enter Data" under Power BI desktop home page, then publish it to service for test.

Thanks,
Angelia

Anonymous
Not applicable

 

Hello Angelia!

 

Thanks a lot for taking a look into this, I was unable to replicate this to other data source. Curiously, I don't have problems when I am using the Import option from SAP HANA. This happens when I am using DirectQuery on SAP HANA with SQL Statement and I was using some date functions being used in the SQL query to convert the data (initially it's not in date format, in whole number but I need to convert it to date) :

 

 Everything is working fine in Desktop.

PBIService-1899-fromscratch.JPG

Sample: select to_timestamp(to_timestamp(<column with whole number data type>), 'YYYY-MM-DD HH24:MI:SS.FF7') from <view>

 

In Power BI Service, it's not working anymore:

 

PBIDesktop-fromscratch.JPG

 

 

Hi @Anonymous,

Please right click the "Query Edit", and see if there is "Canged Type".


1.PNG

In addition, connect directly to the SAP HAHA data source using DirectQuery, which may caused the error.

Thanks,
Angelia

Anonymous
Not applicable

Hello Angelia!

 

There is no Changed Type found. Also, I am already using Direct Query using SQL Statement 

Hi @Anonymous,

In Power Query Editor navigator, you try to change it to date type like the following screenshot.

2.PNG

Best Regards,
Angelia

Anonymous
Not applicable

Hello Angelia!

 

I have done that also but the issue is still the same. I was thinking if there is a support that I could raise this issue for a demo? just to iron out all the possibilities...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.