Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I need to find average of Count of items that refers to one many relationship child table.
I have following tables & their relations
Parent Stories table
Has one to many relation with Child table
Notice How PR ID repeats for a different Stories
Now, I need a measure (Say "Measure Avg PR Count"), that'll give me the Average number of PRs against each Story Points, like below -
Can someone please help ?
Solved! Go to Solution.
You can try the below measure
Avg num PRs =
AVERAGEX (
VALUES ( 'Stories'[Story ID] ),
COUNTROWS ( RELATEDTABLE ( 'PRs Stories' ) )
)
This assumes that a PR can occur in multiple stories but can only appear once per story.
Put this in a visual with the story points column and I think it should work.
You can try the below measure
Avg num PRs =
AVERAGEX (
VALUES ( 'Stories'[Story ID] ),
COUNTROWS ( RELATEDTABLE ( 'PRs Stories' ) )
)
This assumes that a PR can occur in multiple stories but can only appear once per story.
Put this in a visual with the story points column and I think it should work.
User | Count |
---|---|
50 | |
24 | |
18 | |
17 | |
14 |
User | Count |
---|---|
91 | |
86 | |
39 | |
25 | |
20 |