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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Naseemsk
New Member

PowerBi report for interdependent row

Hi All, Which option should i use when the data is in the below structure. Work item "Test case" is the parent and the "Bug" is the child links. One test case work item might have multiple child links. I want to filter the test cases based on the state of child links, if the state of child link is "Done" or "Removed", then the parent test case should be identified and reported.

 

In the below data structure, test case 1 and 3 need to be shown, pls suggest.

 

IDWork ItemTitleState
1Test caseTest case 1Completed
10BugIssue1Done
11BugIssue2Removed
2Test caseTest case 1Completed
12BugIssue12Done
13BugIssue13New
3Test caseTest case 1Completed
20BugIssue20Done
21BugIssue21Removed
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Naseemsk

 

Create an index column in Power Query editor and create columns like below:

group = CALCULATE(MAX('Table'[Index]),FILTER('Table','Table'[State]="completed"&&'Table'[Index]<=EARLIER('Table'[Index])))

mark = IF('Table'[State] in {"completed","removed","Done"},1,0)

_min = CALCULATE(MIN('Table'[mark]),ALLEXCEPT('Table','Table'[group]))

 

At last, create a measure like below:

Measure = IF(SELECTEDVALUE('Table'[Index])=SELECTEDVALUE('Table'[group])&&SELECTEDVALUE('Table'[_min])=1,1,BLANK())

vjaywmsft_0-1664955228476.png

 

Best Regards,

Jay

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Naseemsk

 

Create an index column in Power Query editor and create columns like below:

group = CALCULATE(MAX('Table'[Index]),FILTER('Table','Table'[State]="completed"&&'Table'[Index]<=EARLIER('Table'[Index])))

mark = IF('Table'[State] in {"completed","removed","Done"},1,0)

_min = CALCULATE(MIN('Table'[mark]),ALLEXCEPT('Table','Table'[group]))

 

At last, create a measure like below:

Measure = IF(SELECTEDVALUE('Table'[Index])=SELECTEDVALUE('Table'[group])&&SELECTEDVALUE('Table'[_min])=1,1,BLANK())

vjaywmsft_0-1664955228476.png

 

Best Regards,

Jay

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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