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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
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.