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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Perform filtering on column value based on condition

Input TableInput TableOutput tableOutput table

 

I have a table where i need to filter a team when it has both requestor and superuser for each CR No. Eg;- CR 130 has both Requestor and superuser so it is present in my output table. CR 128 has only superuser so its not present in my output table.What should i do to get output table.

1 ACCEPTED SOLUTION

@Anonymous , Try this for table:-

Table 2 = 
SUMMARIZE (
     FILTER (
        'Table',
        CALCULATETABLE ( VALUES ( 'Table'[CR NO] ), 'Table'[Team] = "Superuser" )
            && CALCULATETABLE ( VALUES ( 'Table'[CR NO] ), 'Table'[Team] = "Requestor" )
    ),
    'Table'[CR NO],'Table'[Team]
)

Output:-

Samarth_18_0-1647510467587.png

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

4 REPLIES 4
Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

 

Create a measure like below and use it as filter on your visual:-

Measure =
COUNTROWS (
    FILTER (
        'Table',
        CALCULATETABLE ( VALUES ( 'Table'[CR NO] ), 'Table'[Team] = "Superuser" )
            && CALCULATETABLE ( VALUES ( 'Table'[CR NO] ), 'Table'[Team] = "Requestor" )
    )
)

 

Output:-

Samarth_18_0-1647495817753.png

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not applicable

Hi samarth, Thanks for replying. Is it possible for to generate a new table with above input table with the result.

@Anonymous , Try this for table:-

Table 2 = 
SUMMARIZE (
     FILTER (
        'Table',
        CALCULATETABLE ( VALUES ( 'Table'[CR NO] ), 'Table'[Team] = "Superuser" )
            && CALCULATETABLE ( VALUES ( 'Table'[CR NO] ), 'Table'[Team] = "Requestor" )
    ),
    'Table'[CR NO],'Table'[Team]
)

Output:-

Samarth_18_0-1647510467587.png

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not applicable

Thank you Samarth for both the logics. Both are correct and working fine.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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