Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello everyone!
I need to put the last value of "Média Móvel" measure in another measure called "Forecast". I got it but i wont't like to see this valuye "78.116,71" in past months. I'd like to see only in the forecast months(since 2022-novembro).
Measure
-----
Can someone help me?
Solved! Go to Solution.
Hi @luizahenriques ,
Try to change your metric to:
Forecast =
VAR ultimoDiaComValor =
CALCULATE (
MAX ( 'fDados Gerais dos Contratos SAMC'[Data Fim] ),
ALL ( 'fDados Gerais dos Contratos SAMC' )
)
RETURN
IF (
MAX ( 'dCalendário'[Date] ) > EOMONTH ( ultimoDiaComValor, 0 ),
CALCULATE (
Medidas[Média Móvel],
FILTER (
ALLSELECTED ( 'dCalendário'[Date] ),
'dCalendário'[Date] = ultimoDiaComValor
)
)
)
This will compare the maximum date on that specific line with the value of the end of month your last contratos if it's higher then it will retun the value if not it will be blank.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @luizahenriques ,
Try to change your metric to:
Forecast =
VAR ultimoDiaComValor =
CALCULATE (
MAX ( 'fDados Gerais dos Contratos SAMC'[Data Fim] ),
ALL ( 'fDados Gerais dos Contratos SAMC' )
)
RETURN
IF (
MAX ( 'dCalendário'[Date] ) > EOMONTH ( ultimoDiaComValor, 0 ),
CALCULATE (
Medidas[Média Móvel],
FILTER (
ALLSELECTED ( 'dCalendário'[Date] ),
'dCalendário'[Date] = ultimoDiaComValor
)
)
)
This will compare the maximum date on that specific line with the value of the end of month your last contratos if it's higher then it will retun the value if not it will be blank.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsUser | Count |
---|---|
65 | |
60 | |
47 | |
33 | |
32 |
User | Count |
---|---|
85 | |
75 | |
56 | |
50 | |
45 |