Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
ronnie_roberts
Frequent Visitor

Concatenatex with Slicers

I have a report with 2 slicers on it, one for Program Increment Name and one for Epic Name.  What I'm trying to do is create a concatenation of all of the Program Impliments an Epic is part of that would ignore the Program Increment slicer so people could see if an Epic is about to end.  Can anyone tell me what I'm doing wrong?  When I run this currently I'm still only getting the selected PI rather than the 2 PIs I would expect.

 

 

 

PI List = 
CALCULATE(
    CONCATENATEX(
        DISTINCT(
            SELECTCOLUMNS(
                StoriesToThemes,
                "Epic", StoriesToThemes[Epic Name],
                "PI", StoriesToThemes[PI Name]
            )
        ),
        [PI],
        ", "
    ), REMOVEFILTERS(StoriesToThemes[PI Name])
)

 

 

 

Data:

Epic NameFeature NameStory NamePI Name
Epic 1Feature 1Story 1PI 1
Epic 1Feature 1Story 2PI 1
Epic 1Feature 2Story 3PI 2
Epic 1Feature 2Story 4

PI 2

 

Where as Epic 1 appears in PI 1 & 2 I would expect PI List to be "PI 1, PI 2" but instead it always seems to respect the PI slicer and only shows the selected PI.

 

Thanks in advance!

1 ACCEPTED SOLUTION
NaveenGandhi
Super User
Super User

Hello @ronnie_roberts 

Just try the below version of the DAX.
PI List =
CALCULATE (
CONCATENATEX (
DISTINCT (
SELECTCOLUMNS (
StoriesToThemes,
"Epic", StoriesToThemes[Epic Name],
"PI", StoriesToThemes[PI Name]
)
),
[PI],
", "
),
REMOVEFILTERS ( StoriesToThemes[PI Name] ),
ALLEXCEPT ( StoriesToThemes, StoriesToThemes[Epic Name] )
)

Let me know if this helps!

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!



View solution in original post

2 REPLIES 2
NaveenGandhi
Super User
Super User

Hello @ronnie_roberts 

Just try the below version of the DAX.
PI List =
CALCULATE (
CONCATENATEX (
DISTINCT (
SELECTCOLUMNS (
StoriesToThemes,
"Epic", StoriesToThemes[Epic Name],
"PI", StoriesToThemes[PI Name]
)
),
[PI],
", "
),
REMOVEFILTERS ( StoriesToThemes[PI Name] ),
ALLEXCEPT ( StoriesToThemes, StoriesToThemes[Epic Name] )
)

Let me know if this helps!

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!



That did it!  I spent 2 days trying to figure that out!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.