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

Update values in other collumn-table based in other table-collumn

Hey guys,

 

I have two tables in my PBI project.

 

I want to use the second table just for update the values in one collumn on "Table 1"

 

Example

 

Table 1:

Nº IDDataStatus
12210/10/2022Open
232211/10/2022Closed
233312/10/2022Open
454413/10/2022Pending
2312314/10/2022Open
555415/10/2022Open
334316/10/2022Open
908816/10/2022Pending
8989116/10/2022Pending
8787216/10/2022Pending
8686316/10/2022Pending
6654316/10/2022Pending

 

Table 2

Nº IDDataStatus Related
12210/10/2022Closed
232211/10/2022Closed
233312/10/2022Closed
454413/10/2022Closed
2312314/10/2022Closed
555415/10/2022Closed
334316/10/2022Closed
908816/10/2022Closed
8989116/10/2022Closed
8787216/10/2022Closed
8686316/10/2022Open
6654316/10/2022Open

 

The values on my table 2 will updated 2x per day in excell online synced with powerbi with schedule refresh.

 

When i update the values in Table 2 on collumn "Status Related" i want it to automatically update the status in table 1 on Collumn "Status" but if the value on collumn "Nº ID" on Table 2 be equal to  "Nº ID"  on "Table 1"

 

I tried to create relationship between two tables and I created a related collumn in Table 1 , but I just wanted to update the "Status" column on Table 1 and not create another column

 

Any simple way to do this status update in table 1, only if the NºID  is the same in two columns?

 

Thank you for all help.

1 ACCEPTED SOLUTION
v-yadongf-msft
Community Support
Community Support

Hi @Jan845 ,

 

This is my test table1:

vyadongfmsft_0-1667531522081.png

 

Test table2:

vyadongfmsft_2-1667531679295.png

 

Create a new column in table1:

Status Related = LOOKUPVALUE('Table2'[Status Related],'Table2'[Nº ID],'Table1'[Nº ID])

 

If I modify data in excel and save data:

vyadongfmsft_3-1667531745464.png

 

Refresh data in Power BI, both tables are refreshed.

 

Table2:

vyadongfmsft_4-1667531860122.png

 

Table1:

vyadongfmsft_5-1667531884506.png

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

2 REPLIES 2
Jan845
Helper I
Helper I

Thank you @v-yadongf-msft  you help me a lot! 

 

 

v-yadongf-msft
Community Support
Community Support

Hi @Jan845 ,

 

This is my test table1:

vyadongfmsft_0-1667531522081.png

 

Test table2:

vyadongfmsft_2-1667531679295.png

 

Create a new column in table1:

Status Related = LOOKUPVALUE('Table2'[Status Related],'Table2'[Nº ID],'Table1'[Nº ID])

 

If I modify data in excel and save data:

vyadongfmsft_3-1667531745464.png

 

Refresh data in Power BI, both tables are refreshed.

 

Table2:

vyadongfmsft_4-1667531860122.png

 

Table1:

vyadongfmsft_5-1667531884506.png

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.