Forum Discussion

vgarciasouza's avatar
vgarciasouza
Frequent Visitor
2 years ago
Solved

Help with accumulated values

i have the following dax formula to count accumulated: I also have a related table to "escritorio ajustado" and a related table to "Regional" =CALCULATE( COUNTROWS(franqueados); franqueados[Papel ...
  • vgarciasouza's avatar
    vgarciasouza
    2 years ago

    I got it. the issue was that I wal filtering on the "franqueados" table, while I should be filtering on the "calendar" table.. Here is the measure that generates the expected running total:

     

    =CALCULATE(
       COUNTROWS(franqueados);
       franqueados[Papel na rede] =  "Franquia";
       FILTER(
          ALLSELECTED('Calendar'[Date]);
          ISONORAFTER('Calendar'[Date]; MAX('Calendar'[Date]); DESC
          )
       )
    )

     

    Thank you very much Anonymous and NickDanger for participating on this thread and helping figuring it out!

     

    Best regards,

     

    Victor Hugo.