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
GatorTB
New Member

Multiple records with same id but must filter out just the 1 matching row based on criteria.

I need to create a new report using this sample list below. 

power bi snippet.JPG

Each CID has 4 possible SignOffs. CID 5000 shows all SignOff options.

 

For the same CIDs, show me the ones that have a record for SBSLA while also NOT having a record for SBSUPPORTBETA or SBFUNCTIONALITYBETA.  So, I don't want to see CID 5000, nor CID 3144.  I do want to see 4461.

Your help is appreciated!

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@GatorTB 

I think this will give you what you are looking for.

Filter Measure = 
VAR _SBSLA = CALCULATE ( COUNTROWS ( 'Table' ), 'Table'[Signoff] = "SBSLA" )
VAR _OTHER = CALCULATE ( COUNTROWS ( 'Table' ), 'Table'[Signoff] IN {"SBFUNCTIONALITYBETA","SBSUPPORTBETA"} )
RETURN 
IF ( AND ( _SBSLA <> 0, _OTHER = 0 ), "Show" )

jdbuchanan71_0-1614834247419.png

 

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

@GatorTB 

I think this will give you what you are looking for.

Filter Measure = 
VAR _SBSLA = CALCULATE ( COUNTROWS ( 'Table' ), 'Table'[Signoff] = "SBSLA" )
VAR _OTHER = CALCULATE ( COUNTROWS ( 'Table' ), 'Table'[Signoff] IN {"SBFUNCTIONALITYBETA","SBSUPPORTBETA"} )
RETURN 
IF ( AND ( _SBSLA <> 0, _OTHER = 0 ), "Show" )

jdbuchanan71_0-1614834247419.png

 

Thank you!  That worked perfectly!

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.