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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
bhalicki
Helper II
Helper II

CONCATENATEX in a measure

Hi all,

I have the following tables and relationships:

bhalicki_0-1698959765261.png

bhalicki_2-1698959808273.png

 

bhalicki_3-1698959817793.png

 

bhalicki_4-1698959836836.png

 

I need a measure that allows me to produce the following output, that isn't affected by slicers:

bhalicki_5-1698959898123.png

 

I have been able to use CONCATENATEX as a calculated column (to give the output above), but I need this as a measure.  When I implement as a measure, I cannot work out how to ignore the slicer filter but keep the current filter context.

For example, the diagram below demonstrates that when the resource is filtered to "Bob", the project also shows just "Bob" instead of "Fred, Bob"

bhalicki_6-1698960083123.png

Thanks in advance 🙂

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

You can use ALL to ignore the slicer filter context (along with any other filter context on that column).

 

Resources =
CALCULATE (
    CONCATENATEX (
        SUMMARIZE ( ResourceAllocation, Resource[ResourceName] ),
        Resource[ResourceName],
        ", "
    ),
    ALL ( Resource[ResourceName] )
)

 

AlexisOlson_0-1698961932859.png

View solution in original post

2 REPLIES 2
bhalicki
Helper II
Helper II

Thank you @AlexisOlson , that is perfect! Much appreciated 🙂

AlexisOlson
Super User
Super User

You can use ALL to ignore the slicer filter context (along with any other filter context on that column).

 

Resources =
CALCULATE (
    CONCATENATEX (
        SUMMARIZE ( ResourceAllocation, Resource[ResourceName] ),
        Resource[ResourceName],
        ", "
    ),
    ALL ( Resource[ResourceName] )
)

 

AlexisOlson_0-1698961932859.png

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors