Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Alicia_Anderson
Resolver I
Resolver I

Consolidate two tables by filling in values from 2nd table into 1st table that = 0

I have 2 tables: 1st provides the saved amount, 2nd provides the current calculated amount and is a calculated table.    

 

I want to create a new table that takes the saved amount from the 1st table and then uses the value from the 2nd table to fill in the values that are 0 in the 1st table.  

Alicia_Anderson_1-1658333956099.png

 

The result should look like this:

Alicia_Anderson_0-1658333935563.png

 

1 ACCEPTED SOLUTION

I was able to get this to work by pivoting the table.   Thanks for the info.  

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@Alicia_Anderson based on your info,

 

Use below dax to get the desired output as a Calcualted table.

 

 

 

Pan-Saved = 

SELECTCOLUMNS(SAVED,
"Team",SAVED[Team],
"C1",SAVED[C1],
"C2",IF(SAVED[C2] = BLANK() ,LOOKUPVALUE(Plan[Plan],Plan[Team],SAVED[Team]),SAVED[C2]),

"C3",IF(SAVED[C3] = BLANK() ,LOOKUPVALUE(Plan[Plan],Plan[Team],SAVED[Team]),SAVED[C3]))

 

 

 

Mohan1029_0-1658335878946.png

Let me know if that works for you.

 

Thanks,

Mohan V.

I was able to get this to work by pivoting the table.   Thanks for the info.  

Thanks for the quick response.   I am getting the following error: 

Alicia_Anderson_0-1658345895796.png

 

Current Plan-Saved is in this format: 

Alicia_Anderson_1-1658345962937.png

 

Anonymous
Not applicable

@Alicia_Anderson check the datatype's of the columns that you are referring to.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.