Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Medida para trazer o valor do dia anterior, porem respeitando os filtros
Medida que fiz:
Anterior =
CALCULATE (
[Receita];
FILTER (
_dCalendario;
_dCalendario[Data].[Dia] < MAX ( _dCalendario[Data].[Dia] )
)
)
Preciso chegar ao resultado abaixo
O arquivo pbix aqui
Solved! Go to Solution.
Tente essa medida...
Valor anterior =
CALCULATE(
MAX(Divergencia[Qtd]),
TOPN(1,
FILTER(
ALLSELECTED(Divergencia),
Divergencia[DataVenda] < MAX(Divergencia[DataVenda] )
),
Divergencia[DataVenda],
DESC
)
)
Fala Vilmar.
Se você quiser um valor continuo atraves do tempo, coloque a medida abaixo..
Acumulado Continuo =
CALCULATE (
SUM ( Divergencia[Qtd]),
FILTER (
ALL (_dCalendario ),
_dCalendario[Data] <= MAX ( _dCalendario[Data] )
)
)
Mas se vc quiser a partição por período de filtro construa a medida assim
Acumulado com filtros =
CALCULATE (
SUM( Divergencia[Qtd]),
FILTER (
ALLSELECTED ( _dCalendario ),
_dCalendario[Data] <= MAX ( _dCalendario[Data] )
)
)
Flw !!
@Portrekobrigado pela resposta, mas o que preciso não é o acumulado e sim o valor que tinha no dia anterior.
Veja que no dia 7 a receita é 3. Preciso que nesta linha traga o valor do dia 5 que é 14
Tente essa medida...
Valor anterior =
CALCULATE(
MAX(Divergencia[Qtd]),
TOPN(1,
FILTER(
ALLSELECTED(Divergencia),
Divergencia[DataVenda] < MAX(Divergencia[DataVenda] )
),
Divergencia[DataVenda],
DESC
)
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |