Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I'm trying to add a dynamic title to a visual, based on a selection of another visual, which I know how to do in theory, however the calculations to get it to work are causing a bit of a headache.
When a category in a table is clicked on, I want the title to show that category, however if no category is clicked I don't want the title to show all categories, but something like "All Categories"
My initial thought was to create a new measure with the calculation
Solved! Go to Solution.
@AlixB Check this out: https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Most-Amazing-Mind-Blowing-Dynamic-Slicer....
In your first formula, use MAX around your column at the end.
Hi @AlixB
In addition to Greg_Deckler 's reply, we need to create a measure to get dynamic result.
Measure will return aggregations, in measure we need to use Sum function to get number type value and use Max function to get text, date type values.
Try this measure:
Measure =
IF(DISTINCTCOUNT('Dataset1'[Account Category])>1,"All Categories",MAX(Dataset1[Account Category]))
Result is as below.
By default:
Select Category A in other visual:
You can refer to this blog to get more details about the differences between calculated column and measure.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@AlixB Check this out: https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Most-Amazing-Mind-Blowing-Dynamic-Slicer....
In your first formula, use MAX around your column at the end.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 12 | |
| 7 | |
| 4 | |
| 3 | |
| 3 |