cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
heyheyhey Frequent Visitor
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
Super User
Super User

Re: Can I compare text strings week-by-week?

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

Re: Can I compare text strings week-by-week?

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 386 members 3,532 guests
Please welcome our newest community members: