Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Aikeno
Helper I
Helper I

Button to format visualization

Hello,

 

I use a gantt in my report, my goal is to help users to view easily what they need.

I would like to allow them to format the date type between weeks and months (see picture) by using a button, I know it works with filters but didnt find information about visualization.

Aikeno_1-1686296226509.png

 

Thanks in advance for your help !

1 ACCEPTED SOLUTION
Adescrit
Impactful Individual
Impactful Individual

Hi @Aikeno 

My apologies. I realise my mistake. You will need to create two visuals - one formatted by month and one formatted by week. Then use the bookmarks to show/hide the visuals. On each bookmark you would need to select both visuals in the Selections pane and ensure "Selected visuals" is ticket in your bookmark settings.


Did I answer your question? Mark my post as a solution!
My LinkedIn

View solution in original post

4 REPLIES 4
Adescrit
Impactful Individual
Impactful Individual

Hi @Aikeno 

You could consider creating two bookmarks, one in which the visual is formatted by week, and one in which the visual is formatted by month. Then add these bookmarks to your report page as buttons, allowing the user to select between the two options. 

When creating the bookmarks, be sure to have the selection pane open. Select the Gantt visual, and from the settings of the bookmark choose the option "Selected visuals" and not "All visuals".


Did I answer your question? Mark my post as a solution!
My LinkedIn

I have make as you said but It doesn't work on my side.

Adescrit
Impactful Individual
Impactful Individual

Hi @Aikeno 

My apologies. I realise my mistake. You will need to create two visuals - one formatted by month and one formatted by week. Then use the bookmarks to show/hide the visuals. On each bookmark you would need to select both visuals in the Selections pane and ensure "Selected visuals" is ticket in your bookmark settings.


Did I answer your question? Mark my post as a solution!
My LinkedIn

No problem, thanks a lot for your help !

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.