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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Creating two tables with filters

Looking for some help with a filter. I'm trying to find a way to filter data into two tables to be able to compare them. In our warehouse we have jobs that run with the following events; MPICK, TOPOF, and MDOFF. Every job has the events MPICK and MDOFF. Only a portion of the jobs have all three. Is there a way to filter out the jobs that have all three events, remove them and place in their own table?

1 ACCEPTED SOLUTION

Hi, @Anonymous 

You can add a measure as below:

Count event of each Job = CALCULATE(COUNT('Table'[EVENT]),ALLEXCEPT('Table','Table'[DATE],'Table'[JOB]))

Then drag this measure to visual filter  pane to filter out these data.

veasonfmsft_1-1656050320592.png

veasonfmsft_2-1656050340198.png

Best Regards,
Community Support Team _ Eason

View solution in original post

3 REPLIES 3
jorge_olivares
Frequent Visitor

Hey @Anonymous !

 

I made this file with some sample data. To make the table without the values you need you just need to modify the code from the last calculated table!

 

Please mark it as a solution if it helps, good luck @Anonymous!

 

Main table:

 

Screenshot 2022-06-24 202051.png

 

GroupByJob calculated table

 

GroupByJob = 
ADDCOLUMNS(
    SUMMARIZE('Table', 'Table'[JOB]), 
        "Event", CALCULATE(CONCATENATEX(DISTINCT('Table'[EVENT]), 'Table'[EVENT], ", ")))

 

Screenshot 2022-06-24 202529.png

 

Contains calculated table

 

Contains = FILTER('GroupByJob', 
    SEARCH("MDOFF", 'GroupByJob'[Event], 1, BLANK()) && 
    SEARCH("MPICK", 'GroupByJob'[Event], 1, BLANK()) &&
    SEARCH("TOPOF", 'GroupByJob'[Event], 1, BLANK()))

 

Screenshot 2022-06-24 202628.png

 

 

Anonymous
Not applicable

Here is an example of the trable that includes all three events. So in this example i would want to remove Job 14525647 and Job 14525641 from this table and place them in their own.
UDC_Pickup_Dropoff.jpg

 

 

Hi, @Anonymous 

You can add a measure as below:

Count event of each Job = CALCULATE(COUNT('Table'[EVENT]),ALLEXCEPT('Table','Table'[DATE],'Table'[JOB]))

Then drag this measure to visual filter  pane to filter out these data.

veasonfmsft_1-1656050320592.png

veasonfmsft_2-1656050340198.png

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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