Reply
avatar user
Anonymous
Not applicable
Partially syndicated - Outbound

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

Syndicated - Outbound

@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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

Syndicated - Outbound

@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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
avatar user
Anonymous
Not applicable

Syndicated - Outbound

Hi!

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

Tks a lot!

avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)