Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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],
", "
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
42 | |
23 | |
21 | |
16 | |
15 |
User | Count |
---|---|
46 | |
31 | |
30 | |
18 | |
18 |