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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
bhalicki
Helper III
Helper III

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 III
Helper III

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.