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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
heyheyhey
Frequent Visitor

Can I compare text strings week-by-week?

Let's say I have the following table - could I have Power BI let me know from current week to previous week whether the text string has changed or not?

 

 

ProjectExtracted OnUpdateSame as Last Week?
Project A20/03/2018Lorem ipsum dolor sit amet, consectetur adipiscing elitYes
Project A13/03/2018Lorem ipsum dolor sit amet, consectetur adipiscing elitNo 
Project A06/03/2018Sed do eiusmod tempor incididunt ut labore N/A 
Project B20/03/2018Nemo enim ipsam voluptatemNo
Project B13/03/2018Sed ut perspiciatis unde omnis iste natus error sit Yes 
Project B06/03/2018Sed ut perspiciatis unde omnis iste natus error sitN/A 
Project C20/03/2018Neque porro quisquam est Yes
Project C13/03/2018Neque porro quisquam estYes 
Project C06/03/2018Neque porro quisquam estN/A 

 

Thank you

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

HI @heyheyhey

 

Try this calculated column

 

Same as last week =
VAR Previous_Week =
    CALCULATE (
        MIN ( Table1[Update] ),
        FILTER (
            ALLEXCEPT ( Table1, Table1[Project] ),
            Table1[Extracted On]
                = EARLIER ( Table1[Extracted On] ) - 7
        )
    )
RETURN
    SWITCH (
        TRUE,
        Table1[Update] = Previous_Week, "Yes",
        ISBLANK ( Previous_Week ), "N/A",
        "No"
    )

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!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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