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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Create a calculated column determining customer status comparing previous yr revenue to current yr

Good afternoon Team,

 

I have a table of customer data.  This table gives me customer name, year, and the customers Annual Contract Value (ACV).  I am in need of creating a calculated column that looks at each customer and applies the following logic to give me a customer STATUS for that year.   The first year a customer shows an ACV value they are to equal 'NEW'.  Subsequent years they continue to show a ACV Value, they are to = "CURRENT", and upon the first year where they went from having an ACV value previously and now do not they are to = "LOST".  I am struggling on the best approach and DAX syntax to provide this output.  Below is an example of the data I have in my table, along with my SAMEPERIODLASTYEAR.

Screen Shot 2020-05-27 at 3.15.49 PM.png

 

I would expect to see in my new column, for the last client in the image, that in 2017 they would show as NEW, 2018 they would show as CURRENT and in 2019 they would show as LOST.

 

Any assistance is greatly appreciated.  

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

I create a test file and it works properly.

1-1.PNG

You could use measure here. Column is static.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

I create a test file and it works properly.

1-1.PNG

You could use measure here. Column is static.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

Thanks a ton!  Just needed fresher eyes.  

Anonymous
Not applicable

It's worth noting, I've tried this approach with a nested IF approach, but all I get is every row resolving to UNKNOWN.

 

Screen Shot 2020-05-27 at 3.25.47 PM.png

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.