So I've had a look at similar answers but they're not working for me. Basically I have a lot of related charts of monthly data, and I'm wanting to plot them on a chart that only shows up the current year's data and shows some "target" points for data that's for the rest of the months of the year.
I've used formulas to create running totals of my data, which is what I need to compare to the targets, but I want to be able to show the whole year on the chart, but just have no visible data points for months that we haven't recorded data for.
I've created a pivot table which uses the running totals I've calculated elsewhere (if I use the pivot table running total option, it fills in blanks with the total from the previous month, e.g. prev month running total+0, which gives me a data point on the chart which I don't want, but if you've got a solution that tackles this issue, please let me know!), plus the 2 target columns of data. But, I need a way to return a truly blank value in that field in my pivot table, even though there's a formula in the field I'm calling on (the formula needs to stay, because I need it to calculate the value and update the chart once the data is entered for the month).
I've tried using an IF function to return:
- 0 (which is treated like a zero by the pivot table and therefore the pivot chart and plots a zero)
- "" (which is treated like text by the pivot table, and therefore it won't return the sum of the column value because it can't run that operation on a text data type)
- NA() (also treated like text)
Would love any and all ideas on how to get it to see my data in the way I need it to.
p.s. I'm using a pivot table rather than a normal table because I want to be able to switch between years on the chart easily, using the filters.