Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
3 years ago

Get average cumulative amount.

Hello.

Pordrian support me. At present I want to average the accumulated amounts according to the selection of the months in my monthly segmenter. In the image you can see that I have selected 3 months and the amount I want to get on my card is the sum of the amounts of the 3 months that would be: 6,723,015.03, instead I am getting the amount of the last month selected, They could support me to modify the measure to achieve my goal.

The measure I am using is as follows:

ALTERNATIVE 1:

***************************************************************************

Cumulative = CALCULATE(SUM('Working capital'[Working capital]),
WINDOW(1, ABS, 0, REL, ALLSELECTED(Tabla_calendario[Date])
), 'Working capital'[account_id] IN {12123}
)
ALTERNATIVE 2:
*****************************************************************************
where SFC = CALCULATE(SUM('Working capital', or [working capital]),
FILTER( ALL(Tabla_calendario),
Tabla_calendario[Date]<=.MAX(Tabla_calendario[Date])
), 'Working capital'[account_id] IN {12123}
)
I show you the visual of the results I get.

1 Reply