cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
subhendude
Microsoft
Microsoft

Filtering the fact table containing comma separated value and input filter is dynamic

I have two tables

 

Dim_Operation

subhendude_0-1656645505740.png

 

Fact_CallDetails

subhendude_1-1656645536452.png


The Fact_Details table contains the operation field with comma separated list of values. I would like to create two table visuals one for Dim_Operation and another for Fact_CallDetails. Once I click on the operation row of the Dim_Operation table, I want the Fact_CallDetails table to be filtered containing the operation phrase.

 

Lets take some example

Selecting GET from the Dim_Operation table will return row 1 and row 5.

Selecting PUT from the Dim_Operation table will return row 1 and row 3.

 

Any suggestion how can I achieve this.

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @subhendude 
Please place this measure in the filter pane of the fact table, select "Is not blank" and apply the filter

Filter Measure =
COUNTROWS (
    FILTER (
        ALLSELECTED ( Dim_Operation[Operation] ),
        CONTAINSSTRING (
            SELECTEDVALUE ( Fact_CallDetails[Operation] ),
            Dim_Operation[Operation]
        )
    )
)

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @subhendude 
Please place this measure in the filter pane of the fact table, select "Is not blank" and apply the filter

Filter Measure =
COUNTROWS (
    FILTER (
        ALLSELECTED ( Dim_Operation[Operation] ),
        CONTAINSSTRING (
            SELECTEDVALUE ( Fact_CallDetails[Operation] ),
            Dim_Operation[Operation]
        )
    )
)

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.