Forum Discussion
felipesaw
3 years agoFrequent Visitor
Switch or if using var dax
Hi friends, i has several databases that change over time. I has one measure : Media nova = var mediaanterior = calculate(AVERAGE(BasesHistoricas[ValorLinearizado]),ALL(BasesHistoricas[Con...
v-yadongf-msft
Community Support
3 years agoHi felipesaw ,
I'm a little confused about result your want. In order to better understanding your demands and give the right solution, could you please tell me what's your expected output?
Thanks for your efforts & time in advance.
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
felipesaw
3 years agoFrequent Visitor
Hi friend, Output:
FILTER 01/03/2022
| CONTRATO | MEDIA CONTRATO |
| 1 | 1550 |
FILTER 01/04/2022
| CONTRATO | MEDIA CONTRATO |
| 1 | 1566,67 |
FILTER 01/05/2022 (as there was no change in value or months between the tables of 01/04/2022 and 01/05/2022 the value of their average should be equal)
| CONTRATO | MEDIA CONTRATO |
| 1 | 1566,67 |