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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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