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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
MadalenaBicho
Regular Visitor

Calculated column to result True or False depending on last time customer engaged

Hello all,

 

My query is related to this previous post: 

Solved: Calculated column that tells me whether someone ha... - Microsoft Fabric Community

 

My organisation also looks at 'Returning clients', which are existing clients that have re-engaged with us after 6 months or more of no contact. 

How could I modify the DAX formula provided in the solution in the above post to return True for anyone who is a 'Returning Client'? 

 

Many thanks in advance! 

1 ACCEPTED SOLUTION
BIstvan
Resolver I
Resolver I

@MadalenaBicho  you can try the below.

 

ReturningClient = 

IF(

    CALCULATE(

        COUNTROWS('YourTableName'),

        FILTER(

            'YourTableName',

            'YourTableName'[ClientID] = EARLIER('YourTableName'[ClientID])

        )

    ) > 0,

    "True",

    "False"

)

 

View solution in original post

1 REPLY 1
BIstvan
Resolver I
Resolver I

@MadalenaBicho  you can try the below.

 

ReturningClient = 

IF(

    CALCULATE(

        COUNTROWS('YourTableName'),

        FILTER(

            'YourTableName',

            'YourTableName'[ClientID] = EARLIER('YourTableName'[ClientID])

        )

    ) > 0,

    "True",

    "False"

)

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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