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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors