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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Unable to Sum a Calculated value in a different table

Hello,

I'm new to Power Bi so apologies if this is obvious but I cannot figure out why my DAX isn't working! Any help is appreciated.

 

I have Table "FTE" which has columns brought through from a JSON query from a database containing several thousand rows of data. I have extended this table with an additional column called "FTE_Calc_August" which uses DAX code to generate it's output values. This works correctly.

 

I also have Table B, related to Table FTE with a 1:many relationship. This contains 10 rows of data, 1 row per business site location. This needs to show summarised data per site.

AP23_1-1695132344317.png

 

Within Table A, I have created a new column called "Variance_Aug" in which I want sum all the "FTE_Calc_August" values within Table FTE filtered by SiteID. I have tried using the following:

Variance_Aug = CALCULATE (SUM ( FTE[FTE_Calc_August] ), 'FTE'[data.siteID] = 17) but each time i hit enter to run the query, the DAX code resets itself to the last successful code command.
 
I have tested using a column in the FTE table called "tuesday" which is a static value pulled in via the JSON file (therefore no DAX involved) and it works, therefore I know the syntax is correct.  
Variance_Aug = CALCULATE (SUM ( FTE[data.tuesday] ), 'FTE'[data.siteID] = 17 )
 
It seems that my use of a DAX coded column is the issue. Does anyone know why this is the case and, more importantly, how I get around the problem?!
 
Many thanks in advance.
1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@Anonymous Any chance you can provide sample data or the PBIX?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors