Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

4.8 Creating Dynamic Titles Using DAX

Lesson 39 of 62 in the free Power BI notes on Siksha Sarovar, written by Rohit Jangra.

Creating Dynamic Titles Using DAX

Dynamic titles change automatically based on user interactions (slicers, filters). They provide context about what data is currently being displayed.

Why Use Dynamic Titles?

• Tell users exactly what they're looking at • Reflect the current filter/slicer selections • Make reports more professional and user-friendly • Reduce confusion when multiple filters are applied

How Dynamic Titles Work

  1. Create a DAX measure that returns a text string
  2. Use the measure as the title of a visual
  3. The title updates automatically when filters/slicers change

Step-by-Step: Creating a Dynamic Title

Step 1: Create a DAX Measure

Sales Title =
"Total Sales for " & SELECTEDVALUE(Dates[Year], "All Years") &
" - " & SELECTEDVALUE(Products[Category], "All Categories")

Step 2: Apply to Visual Title

  1. Select a visual
  2. Go to FormatTitle
  3. Click the fx button (conditional formatting icon)
  4. In the dialog, set Format style to Field value
  5. Select your DAX measure as the field
  6. Click OK

Result: The chart title dynamically shows: • "Total Sales for 2024 - Electronics" (when both slicers are set) • "Total Sales for All Years - Laptops" (when only category is set) • "Total Sales for 2024 - All Categories" (when only year is set)

Useful DAX Functions for Dynamic Titles

SELECTEDVALUE()

Returns the selected value if a single value is selected; otherwise returns a default.

SELECTEDVALUE(Column, "Default Text")

CONCATENATEX() for Multiple Selections

When multiple values are selected in a slicer:

Selected Regions =
"Regions: " & CONCATENATEX(VALUES(Region[Name]), Region[Name], ", ")

Result: "Regions: East, West, North"

IF with ISFILTERED()

Filter Status Title =
IF(
    ISFILTERED(Products[Category]),
    "Filtered by: " & SELECTEDVALUE(Products[Category]),
    "All Categories"
)

Dynamic Title Examples

ScenarioDAX Measure
Year selection"Sales for " & SELECTEDVALUE(Dates[Year], "All Years")
Category + YearSELECTEDVALUE(Products[Category], "All") & " Sales - " & SELECTEDVALUE(Dates[Year], "All Years")
Count display"Showing " & FORMAT(COUNTROWS(Sales), "#,##0") & " transactions"
Date range"From " & FORMAT(MIN(Dates[Date]), "MMM DD, YYYY") & " to " & FORMAT(MAX(Dates[Date]), "MMM DD, YYYY")

Dynamic Subtitles

You can also create dynamic subtitles by adding a text card visual with a measure:

Report Subtitle =
"Data as of " & FORMAT(MAX(Sales[LastRefresh]), "MMM DD, YYYY hh:mm AM/PM")

Best Practices

• Always provide a default/fallback text for when no filter is selected • Keep dynamic titles concise — don't include too many filter values • Use FORMAT() for clean number/date display in titles • Test with various filter combinations to ensure titles make sense • Use consistent title formatting across all pages