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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
notem
Frequent Visitor

Time Intelligence function 4x times slower than Filter

Simple model:

notem_2-1623579840720.png

Query with FILTER:

notem_6-1623581805587.png

Server Timings:

notem_5-1623581594687.png

Query with Time Intelligence function:

notem_8-1623581958600.png

Server Timings:

notem_7-1623581926062.png

Can anybody explain this behaviour and give the links to articles with explanation?

 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@notem , One of the reasons which I can think of is that time intelligence will return all dates and create an in clause for that.

The best way to check is to enable performance analyzer and then get the DAX query from there and check

@amitchandak, dax query from Performance Analyzer:

notem_0-1623884570841.png

Let see on images from DaxStudio in my first message. There above 300 pseudo-sql queries for Time Intelligence like following:

 

... ORDER_ITEM LEFT OUT JOIN DATES ... WHERE DATES[ISO_DATE] IN ...

 

I think that situation occurs because of generality of the Time Intelligence functions. So Formula Engine can't  parse a query for good execution plan.
But I never seen info that Time Intelligence might be slower than filter.

 

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.