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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Null values in Append Table

I have 2 tables from an API call with different endpoints (ODBC), The tables have identical columns as they are from the same API source. There is only an identifier change in the URL, the query parameters are identical. I need to create a calculation based on one column [Ex] from Table 1 and subtracting it from [E] from Table 2. I have tried creating a measure instead of appending the tables but it will only give me the sum of each column - the sum of the other. 

 

If I append the two tables, it only gives me values in one half of he apended table, the 2nd half all values show as null. I have been stuck with this for 3 days now, any help would be very much appreciated.

 

Thanks

 

James

 

 

2 REPLIES 2
Anonymous
Not applicable

Does this code accomplish what you are describing?

 

let
Source = Table.FromColumns(Table.ToColumns(Table1) & Table.ToColumns(Table2),{"T1","T2"}),
#"Added Custom" = Table.AddColumn(Source, "Total", each List.Sum({[T1], [T2]}))
in
#"Added Custom"

Anonymous
Not applicable

@Anonymous I have tried putting the formula in but it seemed to return an error, this may just be my inputting it wrong, I have pasted the images of the tables below to show what my issue is and hopefully it should be clearer as my last description was a bit convoluted. Any advice would be much appreciated.

 

Main2.PNGSPV1.PNGI am looking to calculate Column 3 [ExSPV] in table 2 - Column 2 [E] , I have tried to append the table but when I do the table I try to append to the current table always comes out with 'nul'l for each row as in the image below.appended.PNG

 

I have tried a union, I have tried to merge the tables but it got confusing and I got in a mess. I created a new measure which worked, but gave me a sum of the two columns rather than a complete column with all of the rows visible.

 

The issue is when I connect my data source to an excel file and perform the calculations in there and then connect to PowerBi as a static connection, it works, but this would mean manually updating the excel file every 15 minutes in order to have the PowerBi data available on a push refresh setup.

 

Any help would be so much appreciated.

 

James

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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