cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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.
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.

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Users Online
Currently online: 55 members 1,125 guests
Please welcome our newest community members: