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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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