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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ADEI20
Regular Visitor

Percentage growth by month

Hi all, 

 

I'm trying to show the percentage growth of numbers of events in a process by month/week, but I can't achieve it. I have used the measure below, but it only shows the total growth, and not by month. 

 

% Change =
DIVIDE(
CALCULATE(
COUNT(Data[Which stage is the current property at]),
FILTER( 'Dates', 'Dates'[Month]=MAX('Dates'[Month] )
)
),
CALCULATE(
COUNT(Data[Which stage is the current property at]),
FILTER('Dates', 'Dates'[Month]=MIN('Dates'[Month])))
,0)
- 1
 
This is the database
 
DateWhich stage is the current property at
24/08/2021 11:54Stage 5 
07/09/2021 10:42Stage 1 
07/09/2021 11:11Stage 1 
09/09/2021 08:37Stage 1 
09/09/2021 10:58Stage 5 
09/09/2021 14:48Stage 4 
13/09/2021 11:19Stage 4 
16/09/2021 09:10Stage 4 
20/09/2021 12:22Stage 1 
21/09/2021 09:27Stage 4 
07/10/2021 09:07Stage 3 
14/10/2021 16:57Stage 4 
04/11/2021 17:05Stage 2 
09/11/2021 16:55Stage 4 
23/11/2021 09:00Stage 4 
01/12/2021 12:28Stage Other
02/12/2021 10:38Stage 4 

 

Does anybody know have an idea on how to make to show the growth by month and by stage?

 

Thanks

1 ACCEPTED SOLUTION

Hi, @ADEI20 ;

Try it.

% Change = 
var _curr=CALCULATE(COUNT(Data[Which stage is the current property at]),FILTER(ALLSELECTED(Data),EOMONTH([Date],0)=EOMONTH(MAX([Date]),0)&&[Which stage is the current property at]=MAX([Which stage is the current property at])))
var _pre=CALCULATE(COUNT(Data[Which stage is the current property at]),FILTER(ALLSELECTED(Data),EOMONTH([Date],0)=EOMONTH(MAX([Date]),-1)&&[Which stage is the current property at]=MAX([Which stage is the current property at])))
return DIVIDE(_curr,_pre,1)-1

The final output is shown below:

vyalanwumsft_0-1646790487506.png

Best Regards,
Community Support Team_ Yalan Wu
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

5 REPLIES 5
v-yalanwu-msft
Community Support
Community Support

Hi, @ADEI20 ;

Try it.

% Change = 
var _curr=CALCULATE(COUNT(Data[Which stage is the current property at]),FILTER(ALLSELECTED(Data),EOMONTH([Date],0)=EOMONTH(MAX([Date]),0)))
var _pre=CALCULATE(COUNT(Data[Which stage is the current property at]),FILTER(ALLSELECTED(Data),EOMONTH([Date],0)=EOMONTH(MAX([Date]),-1)))
return DIVIDE(_curr,_pre,1)-1

The final output is shown below:

vyalanwumsft_0-1646716092700.png

vyalanwumsft_1-1646716119495.png


Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yalanwu-msft the % changes are by a total of each month, but when split by stage it doesn't work. E.g. in Stage 4 from Sep (4 entries) to Oct (1 entry), it should show -75%. Is there a way to show by month and by stage?

Hi, @ADEI20 ;

Try it.

% Change = 
var _curr=CALCULATE(COUNT(Data[Which stage is the current property at]),FILTER(ALLSELECTED(Data),EOMONTH([Date],0)=EOMONTH(MAX([Date]),0)&&[Which stage is the current property at]=MAX([Which stage is the current property at])))
var _pre=CALCULATE(COUNT(Data[Which stage is the current property at]),FILTER(ALLSELECTED(Data),EOMONTH([Date],0)=EOMONTH(MAX([Date]),-1)&&[Which stage is the current property at]=MAX([Which stage is the current property at])))
return DIVIDE(_curr,_pre,1)-1

The final output is shown below:

vyalanwumsft_0-1646790487506.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

VijayP
Super User
Super User

@ADEI20 

It is better to show What is the outcome look like to give a better solution!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


This is the output I have got.

 

ADEI20_1-1646400627653.png

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.