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
sfsamperi13
Regular Visitor

List all parts per repair in one column but filter out certain parts from each list?

Data looks like this:

 

DispatchID      Commodity

12345              top

12345              case

12345              bottom

12345              side

9876                top

9876                bottom

9876                arm

 

I want to filter out bottom and side, so that it looks like this:

 

DispatchID      Commodity

12345              top|case

9876                top|arm

 

 

Current formula that is listing all parts (too many):

 

All Part List =
CONCATENATEX (
FILTER (
SUMMARIZE ( 'FMP Export', 'FMP Export'[DispatchID], 'FMP Export'[Commodity] ),
'FMP Export'[DispatchID] = EARLIER ( 'FMP Export'[DispatchID] )
),
'FMP Export'[Commodity],
"|"
)
1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

@sfsamperi13 , you may try such a measure

 

All Part List = 
CONCATENATEX (
    FILTER (
        VALUES ( 'FMP Export'[Commodity] ),
        NOT ( 'FMP Export'[Commodity] IN { "bottom", "side" } )
    ),
    'FMP Export'[Commodity],
    " | "
)

 

Screenshot 2020-10-02 010739.png 


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@sfsamperi13 , Create a measure like

concatenatex ( filter ( 'FMP Export', NOT( 'FMP Export'[Commodity] IN { "bottom", "side" } )),'FMP Export'[Commodity]," | ")

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
CNENFRNL
Community Champion
Community Champion

@sfsamperi13 , you may try such a measure

 

All Part List = 
CONCATENATEX (
    FILTER (
        VALUES ( 'FMP Export'[Commodity] ),
        NOT ( 'FMP Export'[Commodity] IN { "bottom", "side" } )
    ),
    'FMP Export'[Commodity],
    " | "
)

 

Screenshot 2020-10-02 010739.png 


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

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!

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.