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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors