Forum Discussion
Constant Average & Cumulative Average
I want to calculate a constant average for weeks from 29 to 41.
This works correctly but when added to the table it gives me an incorrect value when added as a card it populates the correct value. I want from Week 29 to Week 41 value as -3283.
In addition to this, I want to calculate the cumulative average from Week 42 and so on.
amitchandak
Ahmedx
Ashish_Mathur
parry2k
Thanks
6 Replies
- kgollapinniFrequent Visitor
My Sample Data:
FiscalYearWeek Test Avg Measure Before Period Test Avg Measure After Period Total Sales Group M Vs Group N Var 2023- W29 ($2,843) ($2,843) 2023- W30 ($3,804) ($3,804) 2023- W31 ($2,676) ($2,676) 2023- W32 ($1,881) ($1,881) 2023- W33 ($3,315) ($3,315) 2023- W34 ($5,482) ($5,482) 2023- W36 ($3,915) ($3,915) 2023- W37 ($3,675) ($3,675) 2023- W38 ($2,908) ($2,908) 2023- W39 ($2,842) ($2,842) 2023- W40 ($3,422) ($3,422) 2023- W41 ($2,630) ($2,630) 2023- W42 ($3,362) ($3,362) 2023- W43 ($1,455) ($2,909) 2023- W44 ($1,582) ($4,746) 2023- W45 ($1,070) ($4,280) 2023- W46 ($1,006) ($5,028) - Ashish_MathurSuper User
Hi,
So in each row of the "Test avg measure before period" you want to see -3283? Am i correct?
- kgollapinniFrequent Visitor
Hi Ashish_Mathur ,
Yes, I want to see -3283 for each row of the "Test avg measure before period". I tried using All but if I use all it is going way back till 2019 data. I only want to show for the mentioned weeks -3283 for FY23 W29 to FY23 W41. The table data should start only from FY23 W29. The reason I want this is that I want to add it to a bar chart and show it as W41 which would have -3283 for it and W42 onwards Test Avg Measure After Period logic follows.
- Ashish_MathurSuper User
Hi,
Would you be OK with a calculated column formula (instead of a measure)?