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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
mohammad-saber
Frequent Visitor

How to calculate Growth Rate between 2 desired quarters?

Hi all,

 

I have a table in Power BI as below:

 

mohammadsaber_0-1693791207009.png

 

What I need to calcualte is the growth in the "Customer Numbers" betweeon 2 desired Quarters for every Retailer, Fuel, Customer Type.

I've added drop down lists to the report for the user to select the desired quarters like below:

 

mohammadsaber_1-1693791299653.png

 

I think I need to create a measure with general formual like below:

 

 

 

 

Growth Rate =
DIVIDE(
Customer_Number for [End Quarter Value] - Customer_Number for [Start Quarter Value],
Customer_Number for [Start Quarter Value],
0
)

 

 

 

 

But, I don't know how to pass the selected Quarters to the above formula. Is there any way to do so?

 

Data is quarterly. FY starts from July unitl next June. 

  • Q1 July to September; Q2 October to December; Q3 January to March; Q4 April to June

 

Please note that I need to be able to slice the Growth by Retailer, Fuel, Customer Type.

 

I am aware of the solutions to calcualte growth rate compared to the previous quarter or the same quarter in the previous year, but this is a different problem. 


Thanks for your help. 

 

--------------------------------------------------------------------------------------------

Sample data and report:

 

I uploaded the report to the Google Drive (URL).

Please refer to the page "Growth".

I tried to use a measure, but I am not able to return the value selected by user in the Drop-Down list to the measure:

Measure =
VAR A =
    CALCULATE (
        SUM(VIC[Customer Numbers]),
        FILTER'VIC''VIC'[FinYearQtr] = SELECTEDVALUE(FinYearQtr_Start) )
    )
VAR B =
    CALCULATE (
        SUM(VIC[Customer Numbers]),
        FILTER'VIC''VIC'[FinYearQtr] = SELECTEDVALUE(FinYearQtr_End) )
    )
RETURN
        DIVIDE(B-AA0)
1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

6 REPLIES 6
Ahmedx
Super User
Super User

@Ahmedx 

Many thanks for your help. 

Is it possible to show Growth for every Retailer? I mean, having a bar chart showing Growth for every Retailer. 
Also, I need to be able to slice the Growth based on the Fuel and Customer Type. 

Many thanks for your help. 


mohammad-saber
Frequent Visitor

Thanks. 

I uploaded the report to the Google Drive (URL).

Please refer to the page "Growth".

I tried to use a measure, but I am not able to return the value selected by user in the Drop-Down list to the measure:

Measure =
VAR A =
    CALCULATE (
        SUM(VIC[Customer Numbers]),
        FILTER( 'VIC', 'VIC'[FinYearQtr] = SELECTEDVALUE(FinYearQtr_Start) )
    )
VAR B =
    CALCULATE (
        SUM(VIC[Customer Numbers]),
        FILTER( 'VIC', 'VIC'[FinYearQtr] = SELECTEDVALUE(FinYearQtr_End) )
    )
RETURN
        DIVIDE(B-A, A, 0)

Hi,

The problem is a lot easier to solve if you have a Date column.  Or even if you do not but instead have a Year and Month column that will do.  Share that dataset it you have what i alluded to.  Also, clarify the span of the FY.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks. 

 

I uploaded the report to the Google Drive (URL). Table name is VIC in the report. 

 

Data is quarterly.

 

FY starts from July unitl next June. 

 

Q1 July to September; Q2 October to December; Q3 January to March; Q4 April to June

 

 

Ahmedx
Super User
Super User

Share sample pbix file to help you

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors