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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
akhatri
Helper I
Helper I

New Account (1st purchase and if customer has not purchased for last 3years)

Hi Everyone,

 

I've been trying to get my head around this but am struggling. I have the formula to flag New Accounts which is working great (below),

 

Customer first appearance text =
VAR _minDate =
CALCULATE (
    MIN ('SFDC Opp'[Bill Date Fiscal Period Value]),
    FILTER ('SFDC Opp', 'SFDC Opp'[Parent Account (Anaplan)]  =  Earlier('SFDC Opp'[Parent Account (Anaplan)])),
    FILTER('SFDC Opp','SFDC Opp'[Stage Name]="Billed" || 'SFDC Opp'[Stage Name]="Booked"),
    FILTER('SFDC Opp','SFDC Opp'[Net Rev merged DI]>0))
RETURN
IF('SFDC Opp'[Bill Date Fiscal Period Value] = _minDate,"New","Existing")
 
Customer 1st Appearance.JPG
 
However our company rule for New Accounts is if the customer has not purchased in the last 3 years (or since their 1st purchase) then they are classified as a New Account, so in the above example line 3, 4 and 7 should say "New" and line 1, 2, 5 and 6 should say "Existing"
 
How can I adjust the above formula to carry this calculation out?
 
Thanks in advance
Atish
1 REPLY 1
akhatri
Helper I
Helper I

Any help here would be greatly appreciated

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.