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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
GrowingPeak
New Member

Filtering on multiple rows

Hello everyone,

I have a database with the names of the project in each row and a list of porperties in the headings, if a specific project has a particular property there is a 1, otherwise the cell is null. How can I create a filter on the report tab with three options corresponding to the three properties that selects only the rows with the specific property selected? Below there is an example of the table.

image.png

Thank you

6 REPLIES 6
Anonymous
Not applicable

Hi @GrowingPeak ,

Please try below steps:

1. below is my test table

Table:

vbinbinyumsft_0-1678760122206.png

Table2:

vbinbinyumsft_1-1678760138987.png

2. please create a measure with below dax formula

Measure =
VAR _property =
    SELECTEDVALUE ( Table2[Property] )
VAR _project =
    SELECTEDVALUE ( 'Table'[Projects] )
RETURN
    SWITCH (
        TRUE (),
        _property = "Property1",
            IF (
                CALCULATE ( MAX ( 'Table'[Property1] ), 'Table'[Projects] = _project ) = 1,
                1
            ),
        _property = "Property2",
            IF (
                CALCULATE ( MAX ( 'Table'[Property2] ), 'Table'[Projects] = _project ) = 1,
                1
            ),
        _property = "Property3",
            IF (
                CALCULATE ( MAX ( 'Table'[Property3] ), 'Table'[Projects] = _project ) = 1,
                1
            ),
        ISBLANK ( _property ), 1
    )

3. add a slicer with Table2 field, add a table visual with Table field, add measure to table visual filter pane and apply 

Animation02.gif

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you! I will try and let you know.

GrowingPeak
New Member

Thank you! And how can I link this filter to a map instead? Where I have different locations instead of the projects and I want to filter the locations based on the property they have?

Thank you

FreemanZ
Super User
Super User

not so sure about your expectation. could you elaborate it?

Sure! I need a filter like this:

Screenshot (2).png

where when I select, for example, Property 1, it displays data on a table like this:

ProjectsProperty 1Property 2Property 3
A1  
D1 1

Thank you

hi @GrowingPeak 

you can directly plot a table visual as it is and a slicer with Column1.

 

p.s. please consider @someone to continue a discussion.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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