Forum Discussion
Anonymous
3 years agoNot applicable
Table.ReplaceValue custom step not working
I have the following custom replace value step. However it doesn't work. Original value of [Woendag]= 8 Value it should replace to = 0 Value it shows instead = 8 Expression: ...
- 3 years ago
Hi Anonymous ,
The issue comes from having null values in [StartDateZZZ] and [EndDateZZZ] as this
[Date] >= [StartDateZZZ] and [Date] <= [EndDateZZZ]
is evaluated before
PercentageDisablement] > 0
Try substituting null dates by with a dummy date like 01-01-1900 and it should work like expected.
Payeras_BI
3 years agoSolution Sage
Hi,
Actually "if either or both operands are null, the result is the null value" according to this:
M Language Operators - PowerQuery M | Microsoft Learn
I understand it generates an error that propagates till the end of the calculation chain.