Forum Discussion
Entering chart titles for chrats created using pivot tables.
- May 09, 2017
HI Aditya,
Sorry, i didn't catch how you structure your data (merged columns in main table, is one ID = one Title or not, why not separate table if so, etc) and why do we spaeak about two slicer = i found only one slicer fo ID here.
Anyway, back to titling - there are two main approach to pickup slicer value. Use cube formulas and use helper pivot table. More details for example here http://chandoo.org/wp/2015/06/24/introduction-to-slicers/
Since you don't load your pivot to data model, we may use helper pivot.
In attached file i added one more pivot table with value of min dates (my guess your dates are linked to ID:s, but you may use any other vakue here);
linked your ID slicer to that table through slicer connections;
formatted value in new pivot table;
linked chart title to first row of new pivot table as link in previous table
That's just sample, you may add checking if more than one row selected, if nothing is selected, if you have more connected slicers.
The idea is this helper pivot table returns exactly the values selected in slicers (not but slicers).
Hi Aditya,
Yes, sure. Combine dynamic title with formulas in any cell and after that link chart title with this cell through formula bar. How to do that is, for example, here http://blog.contextures.com/archives/2012/11/06/link-pivot-chart-title-to-report-filter/
- first what i find. Google will give much more.
Hi,
Tried a lot of things when i have a single slicer as a filter the chart titles can be named perfectly but as it is that i do have a slicer already in my pivot table which is making it difficult to name those tiltes just with the above given link need help in doing it correctly.
Attaching a file below which will show a clearer picture what im facing right now.
Regards,
Aditya
- SergeiBaklanMay 09, 2017Diamond Contributor
HI Aditya,
Sorry, i didn't catch how you structure your data (merged columns in main table, is one ID = one Title or not, why not separate table if so, etc) and why do we spaeak about two slicer = i found only one slicer fo ID here.
Anyway, back to titling - there are two main approach to pickup slicer value. Use cube formulas and use helper pivot table. More details for example here http://chandoo.org/wp/2015/06/24/introduction-to-slicers/
Since you don't load your pivot to data model, we may use helper pivot.
In attached file i added one more pivot table with value of min dates (my guess your dates are linked to ID:s, but you may use any other vakue here);
linked your ID slicer to that table through slicer connections;
formatted value in new pivot table;
linked chart title to first row of new pivot table as link in previous table
That's just sample, you may add checking if more than one row selected, if nothing is selected, if you have more connected slicers.
The idea is this helper pivot table returns exactly the values selected in slicers (not but slicers).
- Aditya JadhavMay 09, 2017Brass Contributor
HI Sergei,
Found out how to do it and connect the slicers could do it now a new issue is coming up while naming charts as it is that the prvious one was for every day so the titles were very correct but now i need to give range of some dates say 01 feb to 7 feb and so on how can that be done here do you have any idea.
Please help me this is the last output of my file then .
And let me thank you for all the help that you have provided me in this issue.
It has helped me a lot.
Regards,
Aditya
- SergeiBaklanMay 09, 2017Diamond Contributor
It depends on how you would like to select your data, still using ID or using Range Title slicer; and what is the logic for your ranges' names.
For example, to expand previous example, you may add one more cell which will be calculating something like this
="Week # " & WEEKNUM(<helper pivottable cell>,11) & " of " & YEAR(<helper pivottable cell>)
and link your chart title to this cell.
Alternativelly you may add simular formula into your main data table as one more column. Important what you define the Range title for each record (other words against each ID here it shall be some text in Range title). You may use any formula you prefer or add this table manually, or copy/past from external source - doesn't matter.
After that create Pivot Table with only this Ranges' titles in row, connect it to slicer with ID and link chart title first new PivotTable cell.
Or you may instead of ID slicer use Range Title slicer, rest of procedure is simular.
- Aditya JadhavMay 09, 2017Brass Contributor
Hi Sergei,
Actually im very new to the pivot tables and slicers. One question i have now in mind is how did you create another pivot table in the same worksheet ? Because when i try to add the table it doesnt add up it shows some kind of error. Now i found the connecting slicers option but didnt find the way to create another pivot table in the same worksheet.
Now can you please guide me step by step how you did that would be more helpful and appreciated.
Regards,
Aditya
- SergeiBaklanMay 09, 2017Diamond Contributor
Hi Aditya,
Here https://support.office.com/en-us/article/Create-a-PivotTable-to-analyze-worksheet-data-a9a84538-bfe9-40a9-a8e9-f99134456576 is step by step insruction how to create Pivot Table and some other usefull stuff.
In brief, select Existing worksheet option (instead of default New worksheet) in Create PivotTable window.