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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
JWPowder
Frequent Visitor

Combining all rows of text in with the same date AND shift

Hello, I have a shift report that has mulltiple products names for the same date and shift. My goal is to combine all of the product names for a given shift each day so I can display it as a "current products" dynamic text box on my daily report. Would also need the expression to not include text where "Down" or "0" are the only cell content

 

Sample Data: 

JWPowder_0-1690465105864.png

 

Desired Result (using 1/13/2023, shift 3 as example) : 

 

Current Products: GEORGIAN GRAY WRINKLE, 195-E-BROWN,POST OFICE BLUE II, CNH CE GRAY II, FCA GRAY PRIMER 3rd FPO, FCA, SILVER VEIN

 

 

Thanks in advance!

1 ACCEPTED SOLUTION
2 REPLIES 2
mlsx4
Memorable Member
Memorable Member

@mlsx4 , That was a very helpful post. I grabbed the example and modified with the parameters I listed above. Thank you!

 

 

Product List = 
CONCATENATEX (
    CALCULATETABLE ( VALUES ( ProductionLog[Product Name] ),
        FILTER ( ALL ( ProductionLog ),
            ProductionLog[Date_] = EARLIER(ProductionLog[Date_])
                && ProductionLog[Shift] = EARLIER(ProductionLog[Shift])
                && ProductionLog[Product Name]<>"DOWN"
                && ProductionLog[Product Name]<>"FULL SOLVENT IN PROCESS"
                && ProductionLog[Product Name]<>"0"
                && ProductionLog[Product Name]<>"FULL CLEAN NEEDED"
                && ProductionLog[Product Name]<>"DOWN FOR MAINTENANCE"
                && ProductionLog[Product Name]<>"NEEDS CLEAN INTO"
                && ProductionLog[Product Name]<>"CLEAN NEEDED")),
    [Product Name],
    " , "
)

 

Result:

Text box with a dynamic value of first product list where date equals today.

JWPowder_0-1690486771195.png

 

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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