Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I have following tables with two level parent child hirarchy
And the output I need is a , comma separated Repo Names column in Story Table as seen below ->
Can someone please help me with a DAX query for the same?
Solved! Go to Solution.
Try
Repos =
VAR CurrentStory = Story[Story ID]
VAR PRs =
CALCULATETABLE (
VALUES ( 'Story PR'[PR ID] ),
TREATAS ( { CurrentStory }, 'Story PR'[Story ID] )
)
RETURN
CONCATENATEX (
CALCULATETABLE (
VALUES ( 'PR Repo'[Repo name] ),
TREATAS ( PRs, 'PR Repo'[PR ID] )
),
'PR Repo'[Repo name],
", "
)
Try
Repos =
VAR CurrentStory = Story[Story ID]
VAR PRs =
CALCULATETABLE (
VALUES ( 'Story PR'[PR ID] ),
TREATAS ( { CurrentStory }, 'Story PR'[Story ID] )
)
RETURN
CONCATENATEX (
CALCULATETABLE (
VALUES ( 'PR Repo'[Repo name] ),
TREATAS ( PRs, 'PR Repo'[PR ID] )
),
'PR Repo'[Repo name],
", "
)
User | Count |
---|---|
21 | |
19 | |
12 | |
9 | |
7 |
User | Count |
---|---|
30 | |
27 | |
14 | |
13 | |
10 |