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
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Difinity Conference

Difinity Conference 2022

Difinity is the largest Microsoft Data, AI, Power BI, Power Platform and Business Applications Conference in New Zealand.

European Share Point Conference

European Share Point Conference

This conference returns live and in-person in Copenhagen this 28 November-01 December with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.