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
Usha_pk
Helper II
Helper II

Dynamic Title based on selected values for the multiple selection

Hi Team,


Can you please suggest me how to get the dynamic title based on the slicer selection for the multiple selection

If I select Midmarket, Small Business the title should be "Midmarket,Small Business - Split (KGs)

Usha_pk_0-1704888809023.png

If I select Channel Partners, Enterprise, Government then title should be "Channel Partners, Enterprise, Government - Split (Tons)

Usha_pk_1-1704889010468.png

Could you help me on this, Thank you!!

@Ritaf1983 @amitchandak @Greg_Deckler @Idrissshatila @Ahmedx @lbendlin 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Usha_pk ,

 

According to your description, here are my steps you can follow as a solution.

(1) We can create a unit table.

Unit = DATATABLE ( 
    "Unit", STRING, 
    {
        { "KGs" },
        { "Tons" }
    }
) 

Then we can create a measure.

Measure = CONCATENATEX('Segment',[Segment],".") & "-" & " Split" &"(" & SELECTEDVALUE('Unit'[Unit]) & ")"

Setting the Conditional Format.

vtangjiemsft_0-1705647767779.pngvtangjiemsft_1-1705647795018.png

Then the result is as follows.

vtangjiemsft_2-1705647823641.png

(2) Or we can create a measure 2. 

Measure 2 = 
var _a= SWITCH(TRUE(),
{"Midmarket"} in VALUES('Segment'[Segment]),"KGs",
{"Small Business"} in VALUES('Segment'[Segment]),"KGs",
{"Channel Partners"} in VALUES('Segment'[Segment]),"Tons",
{"Enterprise"} in VALUES('Segment'[Segment]),"Tons",
{"Government"} in VALUES('Segment'[Segment]),"Tons") 
return  CONCATENATEX('Segment',[Segment],".") & "-" & " Split" &"(" & _a & ")"

Setting the conditional format and selecting [Measure 2].

vtangjiemsft_3-1705647902832.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Usha_pk ,

 

According to your description, here are my steps you can follow as a solution.

(1) We can create a unit table.

Unit = DATATABLE ( 
    "Unit", STRING, 
    {
        { "KGs" },
        { "Tons" }
    }
) 

Then we can create a measure.

Measure = CONCATENATEX('Segment',[Segment],".") & "-" & " Split" &"(" & SELECTEDVALUE('Unit'[Unit]) & ")"

Setting the Conditional Format.

vtangjiemsft_0-1705647767779.pngvtangjiemsft_1-1705647795018.png

Then the result is as follows.

vtangjiemsft_2-1705647823641.png

(2) Or we can create a measure 2. 

Measure 2 = 
var _a= SWITCH(TRUE(),
{"Midmarket"} in VALUES('Segment'[Segment]),"KGs",
{"Small Business"} in VALUES('Segment'[Segment]),"KGs",
{"Channel Partners"} in VALUES('Segment'[Segment]),"Tons",
{"Enterprise"} in VALUES('Segment'[Segment]),"Tons",
{"Government"} in VALUES('Segment'[Segment]),"Tons") 
return  CONCATENATEX('Segment',[Segment],".") & "-" & " Split" &"(" & _a & ")"

Setting the conditional format and selecting [Measure 2].

vtangjiemsft_3-1705647902832.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

hvnter
Resolver I
Resolver I

You'll need to make a measure based off of your parameter table.  Try creating variables and calling them in the return of the measure.  I'm using 2 below in my example, but you could get it to do 3 or more with a little creativity. 

Dynamic Title =
var ttl = max('Parameter'[Parameter])
RETURN
IF(ttl="SHOWROOM","SHOWROOM SUMMARY","MARKET SUMMARY")

Can you pls share the same file once, if possible could you ellaborate this. Thank you!

Idrissshatila
Super User
Super User

HEllo @Usha_pk ,

 

check this https://youtu.be/CqTW9dHsGrM?si=NTVqIkiO1hYgDCWz

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Thanks for the video, but my requirement is different from the video. Please help in achieving dynamic title for the multiple selection. The title must be dynamic based on the selected values for the multiple selections.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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