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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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