May 23 2021 11:39 PM
May 23 2021 11:39 PM
I recently reached out to all of you as I needed some help getting things going with rolling graphs in my report. Mr. @Hans Vogelaar helped me set things up a little but I just can't get it to work so I am once again turning to the community for help.
Attached is a report with anonymous data. I have six tabs currently, and for two I need rolling graphs of the last 30 days. What I need is the following;
- Last30A: This tab is linked to tab DataA and shows 4 graphs. These 4 graphs would need to be rolling graphs for the last 30 days. The first one is good, Graph A, but the remaining three are not. Here's the rundown;
Graph A = good, this works like it should and shows exactly what I am looking for in the other graphs
Graph B = DataA Column D
Graph C = DataA Column C
Graph D = DataA Column E/F/G (combined graph of three columns)
- Last30B: This tab shows a similar setup but with different data. I need all four graphs to be setup as rolling graphs if possible. Here's the rundown:
Graph A = DataB Column B
Graph B = DataB Column D
Graph C = DataB Column C
Graph D = DataB Column E/F/G (combined graph of three columns)
The WeeklyA and WeeklyB tabs are all good, no need for changes there. The DataA and DataB tabs contain some formulas so please do not change them.
I'm pretty sure it's an easy fix but somehow I just couldn't figure out how to get it done. A little step by step guide is welcome too so I can learn how to fix this myself. Other sources haven't been helpfull so far. Much appreciated yet again! I am working on a laptop running Windows 10, version 20H2 with Office 365.
All the best, RNNL21
May 24 2021 02:23 AM
Chart B: you have set a fixed range for the y-values, instead of the dynamic range that you have created correctly:
You should use =DataA!DValues
For chart C, you have set neither the x-values nor the y-values to a dynamic range.
The problems with chart D are similar.
For Last30B, you need to set up a series of defined names that refer to DataB. I have named them XValues2, AValues2, etc. Also add a name GValues2, needed for chart D.
Since row 3 is blank, the ranges need to start one row lower down.
See the attached version.
Then use these in the source of the charts.