cancel
Showing results for
Did you mean:
Highlighted
Helper I

## 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.

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

Accepted Solutions
Highlighted
Community Support

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

Hi @Smoody07 ,

I create a test file and it works properly.

You could use measure here. Column is static.

If this post helps, then please consider Accept it as the solution to help the other members find it.
3 REPLIES 3
Highlighted
Helper I

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

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

Highlighted
Community Support

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

Hi @Smoody07 ,

I create a test file and it works properly.

You could use measure here. Column is static.

If this post helps, then please consider Accept it as the solution to help the other members find it.
Highlighted
Helper I

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

Thanks a ton!  Just needed fresher eyes.

Announcements

#### August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

#### Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

#### Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

#### Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors
Top Kudoed Authors