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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.