Forum Discussion
Summing a calculated column using Naturalinnerjoin not working
- 5 years ago
All the +0 does is take care of blanks. Using COALESCE(expression, 0) does the same.
That doesn't fix data lineage. Data Lineage is a pretty deep topic. Good intro to it here.
You can try this for your last variable though:MeasureName = SUMX( NATURALINNERJOIN( GrossClaimsReserve, Reinsurance ), [Gross Claims Reserve] - [Gross Reinsurance USD] )I don't see the need for that last ADDCOLUMNS. I'm not saying my suggestion will fix it, but it won't destroy any data lineage to this point. Without data though, it is really hard to say. I am not so good at DAX as to be able to visualized all of the tables you are creating in memory and how they flow through.
All the +0 does is take care of blanks. Using COALESCE(expression, 0) does the same.
That doesn't fix data lineage. Data Lineage is a pretty deep topic. Good intro to it here.
You can try this for your last variable though:
MeasureName =
SUMX(
NATURALINNERJOIN(
GrossClaimsReserve,
Reinsurance
),
[Gross Claims Reserve] - [Gross Reinsurance USD]
)
I don't see the need for that last ADDCOLUMNS. I'm not saying my suggestion will fix it, but it won't destroy any data lineage to this point. Without data though, it is really hard to say. I am not so good at DAX as to be able to visualized all of the tables you are creating in memory and how they flow through.
- scabral5 years agoHelper IV
Yes, that sumx worked when removing ADDCOLUMNS.