cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
perfecto New Member
New Member

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

Accepted Solutions
v-cherch-msft Super Contributor
Super Contributor

Re: filtering dataset for new visual

Hi @perfecto 

 

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 Super Contributor
Super Contributor

Re: filtering dataset for new visual

Hi @perfecto 

 

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

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 47 members 959 guests
Please welcome our newest community members: