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
ThiagoDuarte
Helper I
Helper I

Get value filtering another table for the closest date

Hi,

 

I need a calculated column to get a value with the closest date in another table (Temperature column in items table):

 

ThiagoDuarte_1-1683226383369.png

 

There is no relationship between the tables

I tried this:

Temperature =

var dateitem = Items[Date]

var datetemp=
calculate(MAX(Temperature[Date]),filter(Temperature,Temperature[Date]<=dateitem))

return

calculate(max(Temperature[Temperature]),filter(Temperature,Temperature[Date] = datetemp))

 

It doesn't work. I get an "insuficient memory" error

Items table has around 25k rows and Temperature table has around 80k rows

 

Could someone help me?

 

Thanks,

Thiago

1 REPLY 1
Kannan_n
Helper I
Helper I

Hi @ThiagoDuarte

 

Use the performance analyzer to check which data taking more space. 

If the data can sharable please share with me I will check and let you know. 

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-performance-analyzer

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.