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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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