Forum Discussion
dynamic subtitle for all measures without table name?
Hello. Because my clustered column legend only shows when multiple measures are selected, and if I use a parameter in the title (dictated by a slicer) it only shows the first value of all measures chosen, I'm trying to create a dynamic subtitle for measures. I want my subtitle to include all measures chosen in my slicer (even if it's just one).
The solution below of code works, but it includes the table name in the result. How can I get the same result but without the preceeding table name?
Hi Anonymous
You're getting a result that includes the table name because you're referencing the actual parameter field column – which contains the full field name including the table. This column is meant to act as a binding reference, not something intended for display.
However, there's also a limitation: you can't directly return the parameter field's name without the table prefix.
The common workaround is to add another column in the parameter table that stores a display-friendly label (e.g., just the measure name), and use that column for your dynamic title.
That’s what I did in my setup (see screenshots). I created an extra column (e.g., [category parametr]) that holds the readable names, and used that in the CONCATENATEX for the subtitle, instead of the parameter field column itself.
For example To get matrix as mine :At the first step add the column to parametrs table:
Then use it in the wanted DAX, like :
Title for parametrs = CONCATENATEX(VALUES('Categories for comparison'[category parametr]),'Categories for comparison'[category parametr],">>") & " sales analysis"Note:
The order of measures shown in the subtitle follows the sort order defined in the parameter table, which doesn't necessarily reflect the user's selection orderThe pbix with the example is attachedIf this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
9 Replies
- Ritaf1983
Super User
Hi Anonymous
You're getting a result that includes the table name because you're referencing the actual parameter field column – which contains the full field name including the table. This column is meant to act as a binding reference, not something intended for display.
However, there's also a limitation: you can't directly return the parameter field's name without the table prefix.
The common workaround is to add another column in the parameter table that stores a display-friendly label (e.g., just the measure name), and use that column for your dynamic title.
That’s what I did in my setup (see screenshots). I created an extra column (e.g., [category parametr]) that holds the readable names, and used that in the CONCATENATEX for the subtitle, instead of the parameter field column itself.
For example To get matrix as mine :At the first step add the column to parametrs table:
Then use it in the wanted DAX, like :
Title for parametrs = CONCATENATEX(VALUES('Categories for comparison'[category parametr]),'Categories for comparison'[category parametr],">>") & " sales analysis"Note:
The order of measures shown in the subtitle follows the sort order defined in the parameter table, which doesn't necessarily reflect the user's selection orderThe pbix with the example is attachedIf this post helps, then please consider Accepting it as the solution to help the other members find it more quickly- lbendlin
Super User
One of the issues with Field Parameters was that Power BI could not tell you the order in which the report user picked the field. With the newly introduced behavior that order now seems to be ignored in favor of the parameter sort order. For example it is no longer possible to select EMP first and then Supervisor second.
Power BI July 2025 Feature Summary | Microsoft Power BI Blog | Microsoft Power BI
The alternative would be to continue the use of "Personalize Visuals" where the report user continues to be in control.
- Ritaf1983
Super User
Hi lbendlin
Thanks for the note! You're absolutely right that the order of measures shown in the subtitle follows the sort order defined in the parameter table, which doesn't necessarily reflect the user's selection order — I’ll add that clarification to my answer.
That said, the July 2025 update you referenced mainly addresses the expand/collapse behavior in the matrix visual when field parameters are used — which seems less relevant to the original question or my proposed solution.
Still, appreciate the insight!
- lbendlin
Super User
Add two REPLACE() statements to your result, one for the table name text up to and including the opening square bracket, and one for the closing square bracket. Both replaces should use "" .
- v-lgarikapat
Community Support
Hi Anonymous ,
Thank you for reaching out to the Microsoft fabric community forum.
Ritaf1983 , lbendlinThanks for your prompt responses and valuable insights
Anonymous
I wanted to follow up and confirm whether you’ve had the opportunity to review the information provided by Ritaf1983 , lbendlin . If you have any questions or need further clarification, please don’t hesitate to reach out.
We truly appreciate your continued engagement and thank you for being an active and valued member of the community.
Best Regards,
Lakshmi