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
pbi3823
Regular Visitor

📈 Filtering Made Easy: Single Value Selection

Sample file included. I need assistance with cross-filtering tables.

 

I have data for 'Finished Projects' and additional data for 'Client-Specific Projects.'

'Finished Projects' has a column for the project submitter's name; this is my single-value selection.

(Example: "Jane")

The 'Client-Specific Projects' lists the team assignment names - who was tasked with a given project.

(Example: Names separated by a forward slash "Jane/John/Gian")

I cannot figure out a way to filter client-specific project data based on this single-value selection. I attempted to filter on SelectedValue, counting if the row ContainsString, but nothing worked out as I had hoped. 
  Tables.PNG

 


Screenshot1.PNG

 

 

 

 

 

FilteredBySubmitter = CALCULATE(
    COUNTROWS('AcmeProjects'),
    FILTER(
        'AcmeProjects',
        CONTAINS(
            'AcmeProjects',
            'AcmeProjects'[TeamAssignment],
            SELECTEDVALUE(FinishedProjects[Submitter])
        )
    )
)

 

 

 

 

 

 

 

 

 

 

 

Is Submitter in TeamAssignment = 
IF (
    ISFILTERED( FinishedProjects[Submitter] ), 
    IF (
        COUNTROWS (
            FILTER (
                AcmeProjects,
                AcmeProjects[TeamAssignment] = SELECTEDVALUE ( FinishedProjects[Submitter] )
            )
        ) > 0,
        TRUE (),
        FALSE ()
    ),
    BLANK ()
)

 

 

 

 

 

HailMary.PNG

 

 

And for grins: TeamAssignment - Advanced filtering for "=SELECTEDVALUE('FinishedProjects'[Submitter])"

 

 

 

 



Any help would be GREATLY appreciated!

Sample file + data: https://drive.google.com/drive/folders/17AaUfZ7U_sxWS33Y8UFtaMPKch4Fn-g_?usp=share_link

1 ACCEPTED SOLUTION
Len_Barr
Resolver I
Resolver I

One of the problems could be that your data model contains only many-to-many relationships. 

From what I understand, all your tables are FACT tables,. In order to link them, you should have a separate list of UNIQUE submitter names, and use this as a Dimension table, which links only to your FACT tables. Dont link your fact tables together with each other.  Its a bit long to explain in this thread, so I really recommend watching some videos on data modelling and getting rid of many-to-many relationships

View solution in original post

1 REPLY 1
Len_Barr
Resolver I
Resolver I

One of the problems could be that your data model contains only many-to-many relationships. 

From what I understand, all your tables are FACT tables,. In order to link them, you should have a separate list of UNIQUE submitter names, and use this as a Dimension table, which links only to your FACT tables. Dont link your fact tables together with each other.  Its a bit long to explain in this thread, so I really recommend watching some videos on data modelling and getting rid of many-to-many relationships

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.