Power BI Intermediate Lesson 7: Dynamic Titles and Field Parameters

Power BI Intermediate Lesson 7: Dynamic Titles and Field Parameters 1

πŸ“Ž This article includes 3 downloadable practice files ↓

⏱ 2 min read

πŸ“˜ Power BI Intermediate Course Β· Lesson 7 of 10

Advertisement
In this article
  1. Dynamic titles
  2. Field parameters
  3. Practice

Dynamic titles

Chart Title = "Sales - " & SELECTEDVALUE ( Customers[Region], "All regions" )

Format pane > Title > fx > Field value > Chart Title. Select West in the slicer and the title reads “Sales – West”; clear it and it reads “Sales – All regions”.

Field parameters

Modeling > New parameter > Fields, tick Total Sales, Total Profit and Orders. Power BI creates a slicer and a small table:

Metric = {
    ( "Sales",  NAMEOF ( [Total Sales] ),  0 ),
    ( "Profit", NAMEOF ( [Total Profit] ), 1 ),
    ( "Orders", NAMEOF ( [Orders] ),       2 )
}

Put Metric on the chart’s Y-axis. Users switch measures with the slicer: one chart instead of three. For FY 2025-26 the card shows β‚Ή1,53,75,449 / β‚Ή39,81,375 / 370 orders.

πŸ’‘ Field parameters work for columns too: let users choose to group by Region, Category or Customer on the same chart.

Practice

Import pbi-intermediate-model.xlsx into Power BI Desktop (free), create the relationships listed at the top of the .dax file, mark the Date table as a date table and add this lesson’s measures. Compare your card and table values with the lesson’s sheet in the expected-results file. Those numbers were worked out independently in Python from the same data, so a mismatch means a filter or relationship to check.

πŸ“Ž Practice files for this article

⬇ Download all 3 files (ZIP Β· 61 KB)

  • πŸ“—
    Practice model (Excel)Two years of sales (700 orders, FY 2024-25 and 2025-26) with Customers, Products, a full Date table, Targets and RegionUsers.
    ⬇ XLSX Β· 63 KB
  • πŸ“„
    Lesson 7 measures (.dax)Every measure from this lesson, ready to paste into Power BI Desktop.
    ⬇ DAX Β· 891 B
  • πŸ“—
    Expected resultsThe numbers your measures should show, one sheet per lesson.
    ⬇ XLSX Β· 11 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong