Forum Discussion
Date slicer
the date column in SQL is of format date and not nvarchar.
Hi asbains8,
It may be a date format issue. Please set the the SQL Server same as system date format and check if it is fine. And verify the date in database are valid. There are similar issues in this link. Please use T-SQL the following in SQL Server database and verify if still has the problem. If it is, it should be SQL Server data problem, please post the issue to SQL Server formula for professional support.
Select * from Table A where A.HireDate>'2011-12-31'
Best Regards,
Angelia
- potsi9 years agoRegular Visitor
Run into same problem & error message when tried to filter a view based on a date column. Data was fetched from Azure SQL DB using direct query. Data type of matching SQL DB column was date, format in English US (yyyy-MM-dd).
In our case it helped when we changed regional settings on PC to match format in SQL DB: Control Panel > Clock, Language, and Region > Region, Change date, time or number formats:
- Region format changed to English US (was Finland)
- Short date format changed to 'yyyy-MM-dd', matching Azure SQL DB format (was dd.MM.yyyy)
After these changes, launched PowerBI and re-connected to Azure SQL DB via direct query. Now filtering based on date column works as expected.
Br. Matti