Forum Discussion
gorankocinski
8 years agoNew Member
New column sum formula help
hi, I have one document with 2 tables in it. In the first table there are 2 columns A with unic ID of some business and B with given funds by state. for example Table name - GivenFunds ID,...
- 8 years ago
Hi Greg_Deckler,
In your scenario, have you created any relationship between the two tables? If not, please create one. Then you can try following calculated column:
Column = CALCULATE ( SUM ( SecondTable[Cost] ), FILTER ( FirstTable, FirstTable[ID] = EARLIER ( FirstTable[ID] ) ) )And once you create the relationship Greg_Deckler's solution should not return errors.
Thanks,
Xi Jin.
v-xjiin-msft
8 years agoSolution Sage
Hi Greg_Deckler,
In your scenario, have you created any relationship between the two tables? If not, please create one. Then you can try following calculated column:
Column =
CALCULATE (
SUM ( SecondTable[Cost] ),
FILTER ( FirstTable, FirstTable[ID] = EARLIER ( FirstTable[ID] ) )
)
And once you create the relationship Greg_Deckler's solution should not return errors.
Thanks,
Xi Jin.
- gorankocinski8 years agoNew Member
Tnx a lot.
I have had relationships, but i was writing bad punctations. I was typing , instead of ;