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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
subhendude
Employee
Employee

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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