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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
jkunkoski
New Member

Power BI Desktop Filter Multi Value Field/Column

I have two data sources from two Excel files. Both files come from SharePoint Prem 2013. One field is from a Multi Select Field in a SharePoint list so the data in each row is messy, as follow: Row1/Column1: 5G;#;API;#;6G;#, Row2/Column1: API;#;6G;#, etc. The second data source provides a cleaned up version but DOES NOT match the values 1 for 1 of the first data source (above, Column1).

 

The second data source is one column with one value in each cell/row, for example, Row1/Column1: 5G, Row2/Column1: 6G, etc.

 

I'm trying to make it so the user can select a control containing all the values from the second data source that will filter rows in the first data source where that value exists. IF selection of data source2 matches a value in datasource1, filter charts and everything in datasource1 accordingly. Can someone help? I'm brand new to Power BI

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee

@jkunkoski

You can use a measure as below. See more detail in the attached pbix.

 

IsShown =
VAR ROWCNT =
    COUNTROWS (
        FILTER (
            Table1,
            SEARCH ( LASTNONBLANK ( Table2[Column1], "" ), Table1[Column1], 1, 0 ) > 0
        )
    )
RETURN
    IF (
        (
            ISFILTERED ( Table2[Column1] ) && HASONEVALUE ( Table2[Column1] )
                && ROWCNT > 0
        )
            || NOT ( ISFILTERED ( Table2[Column1] ) ),
        1,
        BLANK ()
    )

Capture.PNGCapture2.PNGCapture3.PNG

Anonymous
Not applicable

Hi Eric, thanks for your post. I tried to get the slicer working with two or more selections at same time but I could not. I wonder if its possible to filter for instance 5G and 7G at once. Best regards, Augusto

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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