Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
srikanthphilips
Contributor
Contributor

calculating last five weeks data

Hi All,

Need help in the below scenario.

 Manual InvoicesTotal InvoicesAvg of B/C
Week 5210200.5
Week 5120300.666666667
Week 5030400.75
Week 4940500.8
Week 4850600.833333333
Total1502000.75

 

Average of Week 52 to Week 48 is 0.75 will be one bar in my bar chart.

I need to put it in graph chart. 

So 4 weeks of avg data i am showing in the above.

The second bar should be from Week 49, Week 50, Week 51, Week 52 and week 1. 

I have mentioned Week 1 because this is january 2019 and we are in 1st week. 

please help.

 

Labels (1)
1 Reply
chrismarlow
Specialist II
Specialist II

Hi,

If you want to show a rolling average and its constituent parts in a bar chart (which might be what you are getting at …), if there are not many bars you can just use different expressions for each piece, similar to the below (I've stopped at the 3 bars as just an example);

20190116_2.png

There are things that can be done to improve the display (e.g. change bar colours, get text on the axis). The set analysis used to get the dates should also be dynamic, but getting into that really depends on your data model & if this is even what you are trying to do.

Cheers,

Chris.