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
JWO16
Frequent Visitor

Match formula in DAX (Excel formula alternative)

I've created a dashboard that in the main brings back info directly from another solution.  I've a few fields that I've had to create and use myself though.  The one I'm struggling with though is a field to flag when a field value is also in another record in the data (the parent column)

 

This is the formula I've used previously in my Excel workbook.  Is DAX capable of handling this and how could I go about doing the same so I can bring it into my PowerBI dashboard.

 

=IF(ISNUMBER(MATCH([@[Work Item ID]],[Parent Work Item Id],0)),"Y","N")

 

 

1 ACCEPTED SOLUTION
ahmadibrahimbus
Resolver III
Resolver III

Please Use This Formula and mark my Answer as solution if it's Solved.
= if(CALCULATE(COUNTROWS('Table'),FILTER( 'Table', 'Table'[Parent Work Item ID] = EARLIER('Table'[Work Item ID])))>0,"Y","N").
Nb: include this dax formula as new calculated column.

View solution in original post

1 REPLY 1
ahmadibrahimbus
Resolver III
Resolver III

Please Use This Formula and mark my Answer as solution if it's Solved.
= if(CALCULATE(COUNTROWS('Table'),FILTER( 'Table', 'Table'[Parent Work Item ID] = EARLIER('Table'[Work Item ID])))>0,"Y","N").
Nb: include this dax formula as new calculated column.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors
Top Kudoed Authors