Apr 15 2023 02:56 PM - edited Apr 16 2023 03:55 PM
Hello,
This is my first post in this forum. I am using MS365 latest on Windows 10.
I have created a Pivot Table and Pivot chart from a sample data set.
All the data in the sheet is dynamic except Strike and date column.
Currently I am struggling to add spot value (which is dynamic as well and changes with time) as a vertical line on the Pivot chart.
Please find the sample data below:
Any help to resolve this will be greatly appreciated. Stuck on it for weeks.
Apr 15 2023 11:54 PM
Apr 16 2023 01:59 AM
To add a vertical line to a pivot chart in Excel that represents a dynamic value (that's how I understood it, from the text), you can use a combination chart.
Here’s how:
Now your pivot chart should include a vertical line representing the dynamic value.
As the value changes in your pivot table, the line will update automatically in the chart.
I hope this helps!
Here is a link with information on how you can get a quick and precise solution proposal.
Welcome to your Excel discussion space!
I know I don't know anything (Socrates)
Apr 16 2023 03:44 PM
@JosWoolley Thanks for your response.
The horizontal axis will be the strikes against which vertical line will be drawn.
The Spot price(PT_PC!H4) will be dynamic as well. I have updated sheet with the to-be chart as well so that it explains what i want to achieve.
Apr 16 2023 03:47 PM
Apr 16 2023 11:44 PM
If I understood correctly...
You have followed the instructions to create a combination chart and change the chart type of the dynamic value data series to “Scatter with Straight Lines” but you are unable to find this option in the “Change Chart Type” dialog box.
It seems that you are unable to find the “Scatter with Straight Lines” option when trying to change the chart type of the dynamic value data series in a pivot chart. I also don't know if this is possible as desired, there are other specialists in this forum who know a lot better.
The only thing I can offer here…
One possible workaround is to insert an XY Scatter chart in a blank cell a few rows or columns away from the pivot table.
Right-click on the chart and choose “Edit Data”.
Add a new series and select the ranges with the series name, X values, and Y values.
This chart should update automatically if the pivot table data is refreshed.