Forum Discussion
Display selected filter on this visual value per individual graph.
- 8 months ago
Hi ADH_24,
You can display the selected filter value for each individual visual by creating a simple DAX measure that reflects the filter context. That way, a card or dynamic title will always show the consumer’s choice without needing slicers.
1. Create a Measure for the Selected Value
Selected Semester =
SELECTEDVALUE('Semester'[SemesterName], "No Semester Selected")
• If one semester is chosen → it shows that semester.
• If none or multiple are chosen → it shows “No Semester Selected” (you can change this text).
2. Add a Card Visual Beside Each Graph
• Insert a Card visual next to each graph.
• Drop the `Selected Semester` measure into the card.
• Because the card inherits the same filter context as the graph (when you use Filters on this visual), it will display the semester chosen for that specific graph.
3. (Optional) Handle Multiple Selections
Selected Semesters =
CONCATENATEX(
VALUES('Semester'[SemesterName]),
'Semester'[SemesterName], ", ")
This will list all selected semesters in the card.
4. Alternative: Dynamic Titles
Graph Title =
"Enrolled Programs for " &
SELECTEDVALUE('Semester'[SemesterName], "Selected Semester")
Then go to the visual → Format → Title → fx (conditional formatting) → bind it to this measure.
Each graph’s title will automatically show the selected semester.
Example
• Graph 1 filter: Semester = 1/2025 → Card shows “Semester 1/2025”
• Graph 2 filter: Semester = 2/2025 → Card shows “Semester 2/2025”
Now consumers can clearly compare side by side without cluttering the page with slicers.
If this answered your question, please click “Accept as Solution” so others with the same issue can easily find it.
Hi ADH_24,
You can display the selected filter value for each individual visual by creating a simple DAX measure that reflects the filter context. That way, a card or dynamic title will always show the consumer’s choice without needing slicers.
1. Create a Measure for the Selected Value
Selected Semester =
SELECTEDVALUE('Semester'[SemesterName], "No Semester Selected")
• If one semester is chosen → it shows that semester.
• If none or multiple are chosen → it shows “No Semester Selected” (you can change this text).
2. Add a Card Visual Beside Each Graph
• Insert a Card visual next to each graph.
• Drop the `Selected Semester` measure into the card.
• Because the card inherits the same filter context as the graph (when you use Filters on this visual), it will display the semester chosen for that specific graph.
3. (Optional) Handle Multiple Selections
Selected Semesters =
CONCATENATEX(
VALUES('Semester'[SemesterName]),
'Semester'[SemesterName], ", ")
This will list all selected semesters in the card.
4. Alternative: Dynamic Titles
Graph Title =
"Enrolled Programs for " &
SELECTEDVALUE('Semester'[SemesterName], "Selected Semester")
Then go to the visual → Format → Title → fx (conditional formatting) → bind it to this measure.
Each graph’s title will automatically show the selected semester.
Example
• Graph 1 filter: Semester = 1/2025 → Card shows “Semester 1/2025”
• Graph 2 filter: Semester = 2/2025 → Card shows “Semester 2/2025”
Now consumers can clearly compare side by side without cluttering the page with slicers.
If this answered your question, please click “Accept as Solution” so others with the same issue can easily find it.
I created the cards, each with a selectedvalue measure, the 1st measure I called Selected TI Value Graph 1 and Selected TI Value Graph 2. I then dropped those measures into the cards but that still does not show what value is selected when you choose a "period (semester) value in the filters on this visual. To clarify, I have two identiical graphs, with graph 1 selected, I created a filters on this visual so that you could pick a period for graph 1 and then when you select graph 2, you can pick a different period to compare. I would like the cards to display the selected period for each graph so graph 1 would show a card of Period 1 and the other graph would show a card of Period 2 so the end user can tell what periods they are comparing. Maybe a question would be, once the card is created, how do you connect the card to a certain graph, so connect card 1 to graph 1 and card 2 to graph 2.
- Olufemi78 months agoSuper User
Hello ADH_24
You don’t actually “connect” a card to a graph in Power BI both visuals simply respond to the filter context they’re given.
That’s why your cards are not showing the selected period yet: they need the same visual‑level filter applied as the graphs.Step‑by‑Step
1. Create one measure for the selected valueSelected Semester =
SELECTEDVALUE(Sheet1[Semester], "No Semester Selected")
This measure will always return the semester chosen in the filter context of the visual it’s placed in.
2. Add a Card beside each graph. Insert a Card visual next to Graph 1 and Graph 2.
• Drop the `Selected Semester` measure into each card.
3. Apply visual‑level filters. For Graph 1, set a visual‑level filter on `Semester` = Period 1 (e.g., 1/2025).
• For Card 1, apply the same filter (`Semester` = 1/2025).
• For Graph 2, set a visual‑level filter on `Semester` = Period 2 (e.g., 2/2025).
• For Card 2, apply the same filter (`Semester` = 2/2025).
Because the card inherits the same filter context, it will display the semester chosen for that specific graph.
Result
• Graph 1 filter: Semester = 1/2025 → Card 1 shows “1/2025”
• Graph 2 filter: Semester = 2/2025 → Card 2 shows “2/2025”
Now your users can clearly see which periods they’re comparing, side by side.
Optional Enhancement
If you prefer not to use cards, you can make the graph titles dynamic:
Graph Title =
"Enrolled Programs for Semester " &
SELECTEDVALUE(Sheet1[Semester], "Selected Semester")
Then go to Format → Title → fx (conditional formatting) and bind it to this measure. Each graph’s title will automatically display the selected semester.
So the key is not creating separate measures for each card, but using one `SELECTEDVALUE` measure and applying different visual‑level filters. That way, each card reflects the period of its paired graph.