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
Anonymous
Not applicable

Summarized tables and column fills

Hi

I am trying to summarize two tables into one ,basically trying to join the 2 tables . The problem is that Table 1 has date-time intervals of 15 minutes whereas Table 2 has 1 date-time per day. So I get nulls of the 15 minute intervals. I would like the 15 minute intervals for that day (Table1) to be filled by the Plant Ratio per day (Table 2).

Table 1

Table 1Table 1

 

Table 2

Table 2Table 2Table 3 (Result from Summary)Table 3 (Result from Summary)Table 3 (Result from summarizing table 1 and 2)

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You can create a new column in Table one to bring ratio from table 2 like this

 

Plant Ratio = minx(filter(Table2, table1[intervalEnd].date=table2[Date] && Table1[plantId] = table2[measure_id]),Table2[Plant_Ratio])

 

You can add the conditions as per need

 

If table1[intervalEnd].date does not work, create a date from the intervalEnd

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , You can create a new column in Table one to bring ratio from table 2 like this

 

Plant Ratio = minx(filter(Table2, table1[intervalEnd].date=table2[Date] && Table1[plantId] = table2[measure_id]),Table2[Plant_Ratio])

 

You can add the conditions as per need

 

If table1[intervalEnd].date does not work, create a date from the intervalEnd

Anonymous
Not applicable

@amitchandak Thank you, the solution works.

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.