Forum Discussion

AAAbbbnewbie's avatar
AAAbbbnewbie
Frequent Visitor
3 years ago

dynamic value in textbox

Dear Experts, I would like to create the dynamic value textbox based on the section slicer. Currently in the section slicer, I have Group 1, Group 2, Group 3, All (Multiple selection). How the dynamic value which i created only show the single selection. 

 

Example: if i select Group 1 & 3, the value returns as Group 1 only. It should display as group 1 & 3.

 

In this case, what should i do? 

 

Thanks in advance 

1 Reply

  • kpost's avatar
    kpost
    Solution Sage
    I'm NO EXPERT, LOL.

    but here you go.

    dynamic_text_field =
     
         IF(
         ISFILTERED('Group_Options'[Group]),
        CONCATENATEX(
            VALUES('Group_Options'[Group]),
            'Group_Options'[Group], "& "
        ),
        "All Groups:  1 & 2 & 3"
    )



    Something like this will at least be better than what you have.  if you ABSOLUTEY NEED it to say "Group 1 & 3" and not "Group 1 & Group 3", we can continue developing another solution but it will be a bit more complex.

    //Mediocre Power BI Advice, but it's free//