Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ClaraBcn
Frequent Visitor

Dynamic title Field Parameters

Hello! I'm using field parameters to allow the users to dynamically switch among different scenarios (meaning: actual, forecast, budget, prior year, etc...) and compare them against each other;

ClaraBcn_1-1710954198503.png

I'm using two field parameters with same availability of scenarios. Then I bring in 2 slicers where I include this two field parameters. As a result the user is able to compare dynamically A24 vs B24 for instance or whatever comparison he/she wants to do. 

ClaraBcn_2-1710954237735.png

The issue comes with the measures for comparison between these two scenarios (field parameters). What I need is a measure which is changing the name dynamically depending on the user selection on the two slicers/field parameters. 

As I know measures have static names, I tried using field parameters again to be able to have a dynamic title for the comparison. Wanted result - if the user select A24 and B24 then the comparison title needs to be A24 vs B24, if the selection is A23 and T1 then comparison title needs to be A23 vs T1

Out of the field parameter I'm able to use SELECTCOLUMNS OR MAX to bring in the SELECTEDVALUE from Field Parameters. However, when I insert the MAX into the field parameter another value (not selected) comes in.

 

vs Comp 1 (abs) = {("vs"&[Max Main], NAMEOF('DB'[Main vs Comp 1 (abs)]))}
ClaraBcn_3-1710954393077.png

 

Does anybody faced a similar issue?
I've researched and seems not to be a solution for this one. Would another approach wtith 0 mainteinance regarding measures (new scenarios coming all the time) work besides this one?
 
Thanks a lot in advance!
4 REPLIES 4
Anonymous
Not applicable

Hi, @ClaraBcn 

According to your description, you want to implement dynamic headings based on what the slicer selects, and in the scenario you describe, the following simple approach might fit your needs
Create a VS column in the data table with the name VS, but the content is empty, add the column between A24 and T1 to realize the effect like "A24 vs B24". If that doesn't suit your needs, you can share a pbix file of your current progress without sensitive data for testing purposes.

vyaningymsft_0-1711003783243.png
vyaningymsft_1-1711003798130.png
vyaningymsft_2-1711003809708.png


Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Hello,

 

Thanks for your answer. 

 

My DB is not organized as such, I mean, I do not have different columns for each scenario but I have a column with the scenario name and a column with data. Example:

Scenario  Amount

A23         100

A22         5

A21         6

B23         40

B24         30

 

Moreover I need this title to be displayed in a table for instance, a text box would work better I believe. Because I need three columns to see A24 vs A23 a more over I don't get to see the difference but absolute values..

amitchandak
Super User
Super User

@ClaraBcn, As the table names and column names are static in nature, it can work based on today etc. But not based on the selected value

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

OK thanks for your answer! And is this possible using another approach?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors