Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
In plain english what I am trying to do is....
Here is some sample data demonstrating the desired result and rationale
And here is what I've created for DAX so far, but it is only identifing the parents rows and not identifying the child rows whose parent is in the filtered dataset.
parent in dataset =
var parentlink =
IF(HASONEVALUE(table[parent_id]),MAX(table[parent_id]),"")
return
COUNTX(
FILTER(table,
CONTAINS(ALLSELECTED(table),table[issue_id],parentlink)
),table[issue_id]
)
Thanks in advance for your assistance!
Solved! Go to Solution.
I figured out this problem and sharing here
parent in dataset =
//define epics as the basis for evaluation
var parent = VALUES(table[parent_id])
//defines logic for evaluating if epic is owned or not
var matches =
IF(
CALCULATE(
COUNTROWS(table),
ALLSELECTED(),
TREATAS(parent,table[issue_id])
),1,BLANK()
)
return
//perform logic for each row in table
SUMX(table,matches)
I figured out this problem and sharing here
parent in dataset =
//define epics as the basis for evaluation
var parent = VALUES(table[parent_id])
//defines logic for evaluating if epic is owned or not
var matches =
IF(
CALCULATE(
COUNTROWS(table),
ALLSELECTED(),
TREATAS(parent,table[issue_id])
),1,BLANK()
)
return
//perform logic for each row in table
SUMX(table,matches)
Can this be implemented as a measure? or only a calculated column?
The above formula is a measure. This use case cannot work as a calculated column as the dataset is filtered dynamically based on user filter selections.
your ID-1525 row actually points to another scenario that you have not considered in your formula approach.
1. parent present and child(ren) present
2. child(ren) present but parent not present
3. parent present but no child(ren) present
You need to compute each scenario separately.
Rows like issue ID = ID-1525 (the parent rows) are the only rows working with my current formula. I haven't found an approach that identifies the children - navigating the row context to find matching values in different rows appears to be my challenge.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
8 | |
8 | |
8 | |
6 |
User | Count |
---|---|
14 | |
12 | |
11 | |
9 | |
9 |