subtraction error in data model

jvantassel

New Member
Joined
Apr 28, 2021
Messages
13
Office Version
  1. 2016
Platform
  1. Windows
I created a full outer join query in power query and loaded it to the data model. I have two columns of values that I need to subtract to get the month to data value for the month.
In the data grid I named the column, and selected the first column and added the minus sign, and then clicked on the second column to get the following formula

Data Act July:=ftbl_GL_Hist_Summary_by_GLAN_full_outer_Data_Act[ftbl_Data_Act.202107]-ftbl_GL_Hist_Summary_by_GLAN_full_outer_Data_Act[ftbl__Data_Act.202106]

The result is "#ERROR" No other information is provided. I thought it was due to nulls, so I replaced the nulls with 0 in Power Query, still no change. HELP!
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I realize that I didn't sum the two columns before subtracting. This is what works.

GL Hist full outer Data Act - July:=SUM(ftbl_GL_Hist_Summary_by_GLAN_full_outer_Data_Act[ftbl_Data_Act.202107])-SUM(ftbl_GL_Hist_Summary_by_GLAN_full_outer_Data_Act[ftbl_Data_Act.202106])
 
Upvote 0

Forum statistics

Threads
1,223,694
Messages
6,173,879
Members
452,536
Latest member
Chiz511

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top