Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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],
", "
)
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!