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
michal089
Frequent Visitor

DirectQuery Calendar bug. Can't do many-to-one relationship.

Hi!

 

Recently I've found certain bug in PowerBI Desktop. Firstly I'm getting data from SQL Database via DirectQuery. The table has date value (e.g CreateDate ). Secondly, I have that DAX table that serves as Calendar. The thing is: I can't make a many-to-one relationship between the table from database and DAX table by date. I've tried creating calendar using M but that didnt work aswell.

 

On the other hand, using Import (instead of DirectQuery) I am able to make such a relationship using both DAX and M as my Calendar.

 

DAX formula for creating Calendar table:

Calendar = CALENDAR(min('Table1'[CreateDate]),TODAY())

 

Any ideas? Any help would be much appreciated.

 

Michal

2 REPLIES 2
SteveCampbell
Memorable Member
Memorable Member

This is a limitation of direct query:

 

Calculated tables are not supported: The ability to define a calculated table using a DAX expression is not supported in DirectQuery mode.

 

Please see: https://docs.microsoft.com/en-us/power-bi/desktop-directquery-about



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



I am using Composite Mode which , theoretically should be capable of doing both DirectQuery and Calculated Tables. Am I wrong?

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.