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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
longlongisi
Frequent Visitor

how to show CONCATENATE information if i just search part of the content using text search

Hi All,

I have the data table as below

longlongisi_0-1708617204790.png

i can concatnate the rows as below using measure 

RECIPECOMBINEDHOR = CONCATENATEX('Component_Ingredients','Component_Ingredients'[INNGREDIENTPERCENTAGE],", ")

longlongisi_1-1708617263254.png

However, when i use the Text search visual, for example, i search " chicken breast", only the rows contain " Chicken Breast" are shown, how can i search the text and show the whole recipe ( concatnated recipe in 2nd table above) contains the search text?

longlongisi_2-1708617389451.png

 

Thanks

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @longlongisi ,

 

You could try changing the measure [RECIPECOMBINEDHOR] to place [INNGREDIENTPERCENTAGE] in the visual

Here are the steps you can follow:

1. Create measure.

RECIPECOMBINEDHOR =
CONCATENATEX (
    FILTER (
        ALL ( 'Component_Ingredients' ),
        'Component_Ingredients'[BCP] = MAX ( 'Component_Ingredients'[BCP] )
            && 'Component_Ingredients'[Component Unique Code]
                = MAX ( 'Component_Ingredients'[Component Unique Code] )
    ),
    'Component_Ingredients'[INNGREDIENTPERCENTAGE],
    ","
)

2. Result:

 

vyangliumsft_0-1708654513775.png

 

Best Regards,

Liu Yang

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

4 REPLIES 4
MohamedFowzan1
Frequent Visitor

It should be straight forward to add the concatenated field into the custom visual "Text Filter" or "Text Search Slicer" and type in any key word.

MohamedFowzan1_1-1708655063637.png

MohamedFowzan1_0-1708656000019.png

 

 

 

Hope this helps!

 

 

v-yangliu-msft
Community Support
Community Support

Hi  @longlongisi ,

 

You could try changing the measure [RECIPECOMBINEDHOR] to place [INNGREDIENTPERCENTAGE] in the visual

Here are the steps you can follow:

1. Create measure.

RECIPECOMBINEDHOR =
CONCATENATEX (
    FILTER (
        ALL ( 'Component_Ingredients' ),
        'Component_Ingredients'[BCP] = MAX ( 'Component_Ingredients'[BCP] )
            && 'Component_Ingredients'[Component Unique Code]
                = MAX ( 'Component_Ingredients'[Component Unique Code] )
    ),
    'Component_Ingredients'[INNGREDIENTPERCENTAGE],
    ","
)

2. Result:

 

vyangliumsft_0-1708654513775.png

 

Best Regards,

Liu Yang

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

hi @v-yangliu-msft ,

 

In fact, i am very new to Power BI, thanks for your solution, but actually i dont understand the logic inside Filter, if you dont mind, is it possible to further explain to me the reason of using Max?

Thanks Sooooooo Much, it works.😁

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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