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
Anonymous
Not applicable

filtering dataset for new visual

Hi,

Not sure if this has been answered, this is a little hard to describe.  I have a set of data with customer projects and electronic component part numbers registered to a project.  Some projects have multiple component parts registered with it; these are their own rows in the data set, but it all ties back together through a registration number.  So a registration is used multiple times in the data where different components are tied to a project.  Initially, I want to see where we have a specific component (key component) part number is registered within the customer projects.  But then, I want to be able to see the total list of components that are registered across of these projects that use that key component.  So I need to find registration numbers based on the key component then the list of all components associated with that registration....and then sales dollars assocated with that project/registration overall.  

 

Here is an example data set.  If the key component is partNumber abc123, I would see two registrations in this data set.  But if I wanted to see the total partNumbers associated with projects that use abc123, I would look that up based on the two registrations of 12345 and 56789.

Customer NameProject NamepartNumberregistration
Customer 1Project 1abc12312345
Customer 1Project 1abc34512345
Customer 1Project 1abc56712345
Customer 1Project 1abc78912345
Customer 2Project 2zed12398765
Customer 2Project 2zed23498765
Customer 3Project 3abc12356789
Customer 3Project 3asd00756789

 

How can I go about creating that more complex visualization?  (At least to me!)

 

Perfecto

1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @Anonymous 

 

You may create a slicer table as below.Then you may create a measure and use it in visual level filter to filter the table.Attached sample file.

Table = DISTINCT(Table2[partNumber])
Measure =
VAR _table =
    CALCULATETABLE (
        VALUES ( Table2[registration] ),
        FILTER ( ALL ( Table2 ), Table2[partNumber] IN VALUES ( 'Table'[partNumber] ) )
    )
RETURN
    IF ( MAX ( Table2[registration] ) IN _table, 1 )

1.png

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-cherch-msft
Employee
Employee

Hi @Anonymous 

 

You may create a slicer table as below.Then you may create a measure and use it in visual level filter to filter the table.Attached sample file.

Table = DISTINCT(Table2[partNumber])
Measure =
VAR _table =
    CALCULATETABLE (
        VALUES ( Table2[registration] ),
        FILTER ( ALL ( Table2 ), Table2[partNumber] IN VALUES ( 'Table'[partNumber] ) )
    )
RETURN
    IF ( MAX ( Table2[registration] ) IN _table, 1 )

1.png

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.