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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Super User
Super User

@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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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