Forum Discussion
andre1981
6 years agoNew Member
Compare value by highest selected month
Hi I need to compare the monthly value with the value of the highest month selected, I'm using the measurements: MaiorMesSelecionado = CALCULATE( MAX(VENDAS[MES]), ALLSELECTED(VENDAS) ) Valor...
- 6 years ago
I found the error
Previous measure (wrong): MaiorMes = CALCULATE(MAX(producao[MESREFERENCIA]);ALLSELECTED(producao[MESREFERENCIA]))
Correct Measure: MaiorMes = CALCULATE(MAX(producao[MESREFERENCIA]);ALLSELECTED(producao))in the function ALLSELECTED, I added the table field, and I should have just added the table
andre1981
6 years agoNew Member
I found the error
Previous measure (wrong): MaiorMes = CALCULATE(MAX(producao[MESREFERENCIA]);ALLSELECTED(producao[MESREFERENCIA]))
Correct Measure: MaiorMes = CALCULATE(MAX(producao[MESREFERENCIA]);ALLSELECTED(producao))
in the function ALLSELECTED, I added the table field, and I should have just added the table