Create a TabNames Table ,SelectedTab Measure and Add Power App in Power BI
2 min readOct 26, 2026
Press enter or click to view image in full size![]()
Step 1: Create the TabNames table
- Go to Home → Transform data.
- Choose New Source → Blank Query.
- Open Advanced Editor, replace everything with this code, and click Done:
let
Source = Table.FromList(
{
"Overview-MTD", "Overview-QTD", "Overview-YTD",
"Sales-MTD", "Sales-QTD", "Sales-YTD",
"Operations-MTD", "Operations-QTD", "Operations-YTD",
"Finance-MTD", "Finance-QTD", "Finance-YTD"
},
Splitter.SplitByNothing(),
{"PageName"}
),
ChangedType = Table.TransformColumnTypes(Source, {{"PageName", type text}})
in
ChangedType- Rename the query to TabNames.
- Click Close & Apply.
Step 2: Create the SelectedTab measure
- Right-click TabNames in the Data pane and choose New measure.
- Paste:
SelectedTab = SELECTEDVALUE(TabNames[PageName], "Overview-MTD")Note: Use
"Overview-MTD"as the default so it matches the table values.
Get Shijo’s stories in your inbox
Join Medium for free to get updates from this writer.
Step 3: Test it
- Add a Slicer using
TabNames[PageName]and turn on Single select from the format visual. - Click the slicer on the report canvas to select it.
- In the Visualizations pane, click the middle icon (the paintbrush) to open Format visual.
- Make sure the Visual tab is selected. It’s next to General.
- Expand Slicer settings.
- Expand Options.
- Under Style, open the dropdown and choose Tile. The PageName values will show as clickable buttons.
- Expand Selection.
- Turn Single select On. This lets the user pick only one tab at a time.
TO see the data (Optional)
- Add a Card showing SelectedTab.
- Click different slicer values. The card should update to match.
Step 4: Add Power app
- Select the slicer first (mandatory).
- In Visualizations → Build visual, click Power Apps for Power BI.
- When the Power Apps visual loads, click Choose app and select your Power App.







