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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Check if the "Value" is a new value or and a old value

Hello, 

For my project, I have a table of a compagny sales which spans 4 years. There are the names of customers and I would like to know for 2022 if customer is a new customer or an old customer.

 

And in a second time, I would like to know every cusomers which aren't coming back in a compagny to buy something.

 

I tried something like this : 

 

Test =
var _1 = COUNTX(FILTER('Table', 'Table'[Customer number] = EARLIER('Table'[Customer number]) && 'Table'[Order created].[Year] < EARLIER('Table'[Order created].[Year])),'Table'[Customer number]) +0
return
if(_1 > 0, "True", "False")

 

Thank you in advance

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

I modify the measures based on the sample below:

Solved: Interact with line chart to analyse increase/decre... - Microsoft Power BI Community

 

Please check the attachment and check if this meet your requirements.

Icey_0-1653467847830.png

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User
Anonymous
Not applicable

Thank for your answer ! 

But I would like a "list" of these values, not a measure. 

 

Is it possible ? 

Icey
Community Support
Community Support

Hi @Anonymous ,

 

I modify the measures based on the sample below:

Solved: Interact with line chart to analyse increase/decre... - Microsoft Power BI Community

 

Please check the attachment and check if this meet your requirements.

Icey_0-1653467847830.png

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi, thank you for your answer

I think that the solution is in your link but I don't have enough time to do it. 

Regards, 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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