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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors