frankee_gee
Board Regular
- Joined
- Mar 3, 2008
- Messages
- 144
- Office Version
- 365
- 2016
- Platform
- Windows
Hello Everyone, Needed some help with this error
MdxScript(Model) (6,54) Calculation error in measure 't_Track'[Spend/ErectLegFT]. A division by zero has been encountered.
This is the formula:
Was working well in 2015Q3. But now during 2015Q4, is is no longer working
I would prefer to find the errors and correct them, because all it means is that data is missing and I would need to fill in at some point thru a manual reconcile process.
How can I capture where this error is occurring?
If it's not possible to capture where the error is occurring, I found this possible solution after some research, it was suggested to use Divide function because it ignores ZERO's
Not sure how to use the filter for the last part of the original Calculate function: lu_ActivityType[ActivityDesc]="Erect"
it would look something like this :
where or how do I add the following filter :
Many thanks for your help in advance.
Frank.
MdxScript(Model) (6,54) Calculation error in measure 't_Track'[Spend/ErectLegFT]. A division by zero has been encountered.
This is the formula:
Code:
Spend/ErectLegFT:=CALCULATE([LaborSpend]/[ErectLegFT],lu_ActivityType[ActivityDesc]="Erect")
Was working well in 2015Q3. But now during 2015Q4, is is no longer working
I would prefer to find the errors and correct them, because all it means is that data is missing and I would need to fill in at some point thru a manual reconcile process.
How can I capture where this error is occurring?
If it's not possible to capture where the error is occurring, I found this possible solution after some research, it was suggested to use Divide function because it ignores ZERO's
Not sure how to use the filter for the last part of the original Calculate function: lu_ActivityType[ActivityDesc]="Erect"
it would look something like this :
Code:
Spend/ErectLegFT:=DIVIDE([LaborSpend],[ErectLegFT])
Code:
lu_ActivityType[ActivityDesc]="Erect"
Many thanks for your help in advance.
Frank.