Forum Discussion
Problem with IF(VALUES(Calendar[MONTHCODE])) What is happening?
- 9 years ago
While it is hard to say without being very familiar with your info, it looks to me like the issue is in the LCP_ForecastVariation measure. I would look at how the [LCP_FixedValue] and [Month Production] measures are calculated - does adding the Calendario[Ano] column to their filter context alter their values?
And also from what i can see in the LCP_RealVariation measure, the line : FILTER(Calendario; Calendario[MONTHCODE]<=[mesReal] is going to be in contrast to the LCP_VarExMp_Test3 second IF statement causing a blank result.
My first ideas...
While it is hard to say without being very familiar with your info, it looks to me like the issue is in the LCP_ForecastVariation measure. I would look at how the [LCP_FixedValue] and [Month Production] measures are calculated - does adding the Calendario[Ano] column to their filter context alter their values?
And also from what i can see in the LCP_RealVariation measure, the line : FILTER(Calendario; Calendario[MONTHCODE]<=[mesReal] is going to be in contrast to the LCP_VarExMp_Test3 second IF statement causing a blank result.
My first ideas...