Ravindra BagaleCourses & study guides मराठी Track your progress

19. Bookmarks, Selection Pane, Buttons and Navigation

19.4 Pattern 1: Toggle Between Chart and Table View

Start with a problem

Rani prefers charts; the auditor Ravina prefers exact numbers. Shahrukh wants one page with a Chart / Table switch.

Explain simply

Put a chart and a table with the same fields in the same place. Create two bookmarks – one shows the chart, one shows the table – with Data off so slicers are not reset. Buttons call the bookmarks.

Show the data

City Total Sales (₹)
Pune 850
Nashik 800
Kolhapur 450
Total 2,100

About this data: This table uses columns: City, Total Sales (₹). This table uses columns: State, Visible, Value. This table uses columns: Visual, Visible. This table uses columns: Bookmark, Sales chart, Sales table, Data option. Values shown are the lesson examples already on this page (not a new dataset).

Fictional sample data. Practice file: visuals_orders_apr_may_2026.csv (source: src/practice/).

Demonstrate

  1. Create the City bar chart and a City table with Total Sales; place them on top of each other.
  2. Selection pane: show chart, hide table › Bookmarks › Add Chart view.
  3. Show table, hide chart › Add Table view.
  4. For both: untick Data; tick Selected visuals (select both visuals first).
  5. Insert two buttons; Action › Bookmark › Chart view / Table view.
  6. Test with the City slicer on Nashik.

Show the result

Two bookmarks showing chart view and table view, sample layout with fictional data

Your result should look like this (fictional sample):

State Visible Value
Chart view, slicer Nashik Bar chart Nashik 800
Table view, slicer Nashik Table Nashik 800

Explain what happened

With Data off, the bookmarks change only visibility; the slicer filter remains, so both views show Nashik 800.

Explore further

  • Newer Desktop versions offer simpler alternatives in some visuals, but the bookmark pattern works everywhere.

Detailed reference for this lesson:

Bookmarks to toggle chart and table in Power BI with example — in 30 seconds

What: A bookmark saves how a page looks: which visuals are visible, plus filters and sort if you want. A button can apply it.

Why: Some managers like a chart, others like a table. Both fit in the same space with two bookmarks.

Tiny example: Bookmark "Chart view": chart shown, table hidden. Bookmark "Table view": the other way round.

First look at the data (before → after):

Bookmarks to toggle chart and table in Power BI with example: before and after tables, fictional Blinkit Maharashtra data

Same before / after tables as text

Before — Selection pane — two visuals in the same spot

Visual Visible
Sales chart Yes
Sales table Yes

Formula / click path

Bookmark "Chart view": chart shown, table hidden, Data option off
Bookmark "Table view": chart hidden, table shown, Data option off
Button › Action › Type = Bookmark

After — Two bookmarks

Bookmark Sales chart Sales table Data option
Chart view Shown Hidden Off
Table view Hidden Shown Off

Do it step by step:

  1. Put the chart and the table in the same spot. Open View › Selection and View › Bookmarks.
  2. In Selection, hide Sales table with the eye icon. Click Bookmarks › Add. Rename it Chart view.
  3. Show the table and hide the chart. Add a bookmark named Table view.
  4. For both bookmarks, click … and untick Data, so slicer choices are not reset.
  5. Add two buttons. In Format › Action, set Type = Bookmark and pick one bookmark for each.
  6. Ctrl+click the buttons in Desktop to test.

Steps in Power BI

  1. Build a bar chart Chart_OrdersByCity and a table Table_OrdersByCity with the same fields. Place them exactly on top of each other (same size and position in General › Properties).
  2. Insert two buttons (Insert › Buttons › Blank) with icons or text "Chart" and "Table".
  3. In the Selection pane: show the chart, hide the table. Bookmarks › Add › rename View – Chart.
  4. Hide the chart, show the table › Add › rename View – Table.
  5. For both bookmarks: … › untick Data (so slicers are not reset) › keep Display ticked. Choose Selected visuals and select only the chart and table before clicking Update, so other visuals are not affected.
  6. Select the Chart button › Format button › Action On › Type Bookmark › Bookmark View – Chart. Do the same for the Table button with View – Table.
  7. Test with Ctrl + click in Desktop.

Ha pattern interview portfolio madhe dakhavnyasathi ekdum chhan aahe. Swatah banvun bagha.

Ravindra Bagale's Tip

Friends, don't make a mistake here: a common mistake with the chart/table toggle is that the two visuals don't use the same fields and filters, so they show different numbers. Build one visual, copy it and change the type, and apply the same visual-level filters. Put both in the same position so the switch looks smooth. This matters for both exams and interviews.

Fix common mistakes

Wrong result Reason Correction
Clicking Table resets slicer to all Data option On Untick Data
Chart and table show different numbers Different fields or filters Use the same fields and visual filters
Other visuals disappear All visuals applied Selected visuals only

Practise independently

Practice task

Set the slicer to Kolhapur and switch to Table view. What do you see?

Hints
  • Kolhapur total includes ₹0.
Solution

Table with Kolhapur ₹450.

Think like a professional

This is a portfolio-friendly pattern. In interviews, mention Data off and Selected visuals – it shows you know why toggles break.

Ravi Sir's Cards for this lesson

मराठी cards