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

Filter MAX date is not working in Directquery mode

Hi everyone : 

My report needs to present the latest value, so I try below formula :

LatestTurbidity = CALCULATE(MAX(MsgJamhamTest1[Value]), FILTER(MsgJamhamTest1,[Type]="Turbidity"&&[UpdateTime]=MAX([UpdateTime])))

But it's not working, always return blank value in Directquery mode. In import mode, this formula is working!  What's the problem?

I have click Allow unrestricted measure in Directquery mode

4 REPLIES 4
abhi9255
Helper II
Helper II

What I think is time intelligrence functions will not work in the direct query mode. It is one of the limitations while using the direct query. Please look at the below link

 

 

https://docs.microsoft.com/en-us/power-bi/desktop-use-directquery#limitations-of-directquery

Thank your response!
But If I group by UpdateTime to 1min, and use this column(MinutesTime), it's working. But sometimes also returned blank! I think this Formula is working in Directquery mode.  It's an issue in Power-BI ?

LatestTurbidity = CALCULATE(MAX(MsgJamhamTest1[Value]), FILTER(MsgJamhamTest1,[Type]="Turbidity"&&[MinutesTime]=MAX([MinutesTime])))

 

HI @bboy81905,

 

I think it may related refresh interval, maybe you can try to increase your filter range to get more records.(direct query live connect but I think it still has update interval)

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thank your response.  Now my solution is using SQL languages to select latest data.

I think Power-BI is not efficient in using DAX "CALCULATE" if your database is huge, not to mention Directquerry mode.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.