Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Olá comunidade!
Preciso realizar essas duas medidas para um projeto:
1) Valor vendas vencidas (vendas total – desconto)
[quando data de vencimento <= dia de análise]
2) Valor inadimplência total (vendas total – desconto)
[quando data de vencimento <= dia de análise e [quando não houver data de pagamento]
Como consigo resolvê-las em DAX?
Segue em anexo o arquivo pbix.
Obrigada!
https://drive.google.com/file/d/1WUPgL834dXHxZD5Ri0au7ybPuYuI43eo/view?usp=sharing
Solved! Go to Solution.
Hi, @Flavia_helena ;
Try it.
VALOR VENDAS VENCIDAS =
CALCULATE (
[VALOR TOTAL VENDAS] - [VALOR TOTAL DE DESCONTO],
FILTER ( fVENDAS, fVENDAS[Data Vencimento] <= MAX(dCALENDARIO[Date] ) )
)
Valor inadimplência total = CALCULATE([VALOR VENDAS VENCIDAS],FILTER('fVENDAS',[Data Pagamento]=BLANK()))
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Flavia_helena ;
Try it.
VALOR VENDAS VENCIDAS =
CALCULATE (
[VALOR TOTAL VENDAS] - [VALOR TOTAL DE DESCONTO],
FILTER ( fVENDAS, fVENDAS[Data Vencimento] <= MAX(dCALENDARIO[Date] ) )
)
Valor inadimplência total = CALCULATE([VALOR VENDAS VENCIDAS],FILTER('fVENDAS',[Data Pagamento]=BLANK()))
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
67 |