cancel
Showing results for 
Search instead for 
Did you mean: 
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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.