March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |