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
DomA001
Regular Visitor

DAX Help, customers new vs existing

Hi,

 

So I want to select any given month, which will return all the customers in that month only AND I then want to check those customers against a specific period to see whether they are a new customer or returning customer, what's the best way to go on about this?

 

Thanks

2 REPLIES 2
Anonymous
Not applicable

AlB
Super User
Super User

Hi @DomA001 

One option would be to:

1. Place Client_Name in the rows of a table visual

2. Create a measure that will return "Returning" for the clients present in the selected period and in the previous period and "New" for the others

3. Place that measure in the visual

 

Regarding point 2: if the previous period is fixed, for instance the 12 months before the selected period, you could hardcode it in the code. Otherwise you could create a one column table with the number of months to cover backwards from the current period, place it in a slicer, let the user choose it and read that value in your measure

You'd need to provide a sample of the data as example and be more specific about the expected result to get a more specific answer.

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

 

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.

Top Solution Authors