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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Snagalapur
Helper IV
Helper IV

Text based on Field parameter selection

Hi All,

 

Please suggest measure to udpate text based on Field parameter selction. EX, below

 

Field Parameter:

Seg/BU/Sub BU/Product = {
    ("Segment", NAMEOF('Table'[pl1_descr]), 0),
    ("BU", NAMEOF('Table'[pl2_descr]), 1),
    ("Sub BU", NAMEOF('Table'[pl3_descr]), 2),
    ("Product Grp", NAMEOF('Table'[pl4_descr]), 3),
    ("Product", NAMEOF('Table'[pl5_descr]), 4)
}
 
Measure (which is not working)
Placeholder text =
VAR selectedValue = SELECTEDVALUE('Seg/BU/Sub BU/Product'[Seg/BU/Sub BU/Product Fields])
RETURN
IF(
NOT ISBLANK(selectedValue) ,
"No Selection"
)
Snagalapur_0-1743592028011.png

 

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Snagalapur , Try using

DAX
PlaceholderText =
VAR selectedValue = SELECTEDVALUE('Seg/BU/Sub BU/Product'[Seg/BU/Sub BU/Product Fields])
RETURN
IF(
ISBLANK(selectedValue),
"No Selection",
SWITCH(
selectedValue,
0, "Segment",
1, "BU",
2, "Sub BU",
3, "Product Grp",
4, "Product",
"Invalid Selection"
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

8 REPLIES 8
v-priyankata
Community Support
Community Support

Hi @Snagalapur 
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.

v-priyankata
Community Support
Community Support

Hi @Snagalapur 
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

v-priyankata
Community Support
Community Support

Hi @Snagalapur 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Cookistador
Super User
Super User

Your logic is working, as you have something selected, it returns No selection

To avoid this issue, the following approach should solve

 

Placeholder Text =
VAR SelectedValue = SELECTEDVALUE('Seg/BU/Sub BU/Product'[Seg/BU/Sub BU/Product Fields])
RETURN
IF(
ISBLANK(SelectedValue),
"No Selection",
SelectedValue
)

donsvensen
Skilled Sharer
Skilled Sharer

Hi 

 

Have a look at this article - Using SELECTEDVALUE with Fields Parameters in Power BI - SQLBI

 

Erik

bhanu_gautam
Super User
Super User

@Snagalapur , Try using

DAX
PlaceholderText =
VAR selectedValue = SELECTEDVALUE('Seg/BU/Sub BU/Product'[Seg/BU/Sub BU/Product Fields])
RETURN
IF(
ISBLANK(selectedValue),
"No Selection",
SWITCH(
selectedValue,
0, "Segment",
1, "BU",
2, "Sub BU",
3, "Product Grp",
4, "Product",
"Invalid Selection"
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






pankajnamekar25
Super User
Super User

Hello @Snagalapur 

 

You can try this

 

Placeholder Text =
VAR selectedValue = SELECTEDVALUE('Seg/BU/Sub BU/Product'[Seg/BU/Sub BU/Product Fields])
VAR result =
SWITCH(
TRUE(),
selectedValue = "Segment", "Segment Selected",
selectedValue = "BU", "BU Selected",
selectedValue = "Sub BU", "Sub BU Selected",
selectedValue = "Product Grp", "Product Group Selected",
selectedValue = "Product", "Product Selected",
"No Selection"
)
RETURN
result

 

 

Thanks,
 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

thank you for details,  I have issue code is returning No selection here.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.