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
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
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.