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

Can't display visual, when using date filter in Direct Query

Hi, 

 

I'm trying to set up some basic tables and visuals in Power BI Desktop, connecting to a SQL Server (2016) database using Direct Query. I have no issues accessing the data, setting up the data model, and updating etc., but whenever I try to add date filters to the calendar dimension I get the error posted below. When I switch to Import Mode it works fine, so I guess it has something to do with how PBI queries the data from the source. 

 

Does anyone know how to resolve this issue?

 
 
 
 

pbi error.PNG

5 REPLIES 5
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Has your problem been solved? Was my reply helpful to you? If the problem is resolved, you could accept the reply you like.

 

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

Hi @v-eachen-msft 

 

Unfortunately not. 

amitchandak
Super User
Super User

Check the Data type of the column on both sides of the join. Or is the data type of a date is changed in power bi . Make sure it is date

Data Format New Rib.pngData Format.png

Anonymous
Not applicable

Hi, thanks for your reply. 

 

The data type is already set to date. I'm querying both dimensions and facts. I'm trying to filter a fact table, using a date dimension if that's of any help. 

Hi @Anonymous ,

 

You could refer to this resolved case which is similar to yours.

https://community.powerbi.com/t5/Service/the-conversion-of-a-marcher-data-type-to-a-dateline-data-type/m-p/178721

 

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

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.