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

Percentage growth based on accumulated

Helo!
I have a table with the customer's ID and the date of their first purchase. For example:

Client IDFirst Purchase
100012/01/2020
100113/01/2020
100201/03/2020
100306/08/2021
100413/01/2020
100506/08/2021


I created a formula to calculate the cumulative number of new customers in my base:

Accumulated customers = CALCULATE([Cliente Summary],filter(all('Summary Clients'),'Summary Clientes'[First Purchase]<=max('Summary Clientes'[First Purchase])))
lukeoliveira_0-1620315083088.png

 

However, I, not able to create a formula that will bring me the percentage growth between one date (in this case, month) and another..

 

How can I do this?

 

Tks in advance!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,

Accumulated customers till date = CALCULATE([Cliente Summary],filter(all('Summary Clients'),'Summary Clientes'[First Purchase]<=max('Summary Clientes'[First Purchase])))

 

A month back = CALCULATE([Cliente Summary],filter(all('Summary Clients'),'Summary Clientes'[First Purchase]<=eomonth(max('Summary Clientes'[First Purchase]),0)))

 

or

Accumulated customers till date = CALCULATE([Cliente Summary],filter(all('Summary Clients'),'Summary Clientes'[First Purchase]<=maxX('Summary Clientes',dateadd('Summary Clientes'[First Purchase],-1,month))))

 

But prefer date table in case of last option

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous ,

Accumulated customers till date = CALCULATE([Cliente Summary],filter(all('Summary Clients'),'Summary Clientes'[First Purchase]<=max('Summary Clientes'[First Purchase])))

 

A month back = CALCULATE([Cliente Summary],filter(all('Summary Clients'),'Summary Clientes'[First Purchase]<=eomonth(max('Summary Clientes'[First Purchase]),0)))

 

or

Accumulated customers till date = CALCULATE([Cliente Summary],filter(all('Summary Clients'),'Summary Clientes'[First Purchase]<=maxX('Summary Clientes',dateadd('Summary Clientes'[First Purchase],-1,month))))

 

But prefer date table in case of last option

Anonymous
Not applicable

Hi!

The second formula (A month back ) worked when I changed 0 for -1.

Tks a lot!

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.