Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All,
We need to provide an option for the user to select the visual/chart type in the report. For example a report has 3 visuals being displayed, we require an option to choose the visual/chart type (like bar, pie, line) to change for each visual in the report.
The visual A is currently displaying the bar chart, the user should be able to select a pie chart in slicer or other way and the visual should change to pie chart.
How can this be accomplished?
Can you please help on this.
Hi @pradeepiqss,
Power BI doesn't supports to dynamically change visual type depend on slicer selection. As a workaround, you could try bookmarks as suggested by t_R.
Regards,
Yuliana Gu
Hi @pradeepiqss,
You can achieve something like this with buttons and bookmarks --> different bookmarks display different charts at the click of a button.
Here's a reference illustrating the idea.
Hope this helps.
Br,
T
Hi,
Thanks a lot for the article, i am able to change the chart type when the button is clicked. How ever when i click on button to change the chart type in one visual, the other visuals in report page reset back to old chart type.
I tried with 'Selected Visuals' option in book mark but still it does not work. Can you please help.
Hi @pradeepiqss,
I'm happy to help but I am having trouble fully understanding your needs..
Can you post images displaying what is now happening and what you would want to happen when a button is clicked?
Br,
T
Hi,
In the report page i have 3 visuals with 1st visual - bar, 2nd visual - Pie and 3rd visual, see screenshot below:
When i click on 'Line' button for 2nd visual, it changes to line chart, see screenshot below:
Next, when click on 'Pie' button in 1st visual, the 2nd visual which was showing line graph changes or resets back to Pie chart, see screenshot below:
I tried by updating a bookmark with 'selected visual' option for buttons related to 1st visual at the top of page, but still does not work.
Hi @pradeepiqss,
I duplicated your report and tried to get it working but unfortunately to no success... I don't think it is possible to keep the other visuals from changing back to their default, because that would mean your bookmarks would have to dynamically change based on the visuals "selected".
I'm afraid I can't help. Maybe you can try changing your report so that there's only one visual selection per page or then make do with what you got.
Br,
T