cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Jason2500
Helper I
Helper I

How to calculate sales growth monthly and quarterly and added the same in drill down?

Hi

 

I am creating a chart to visualize the comparison between the market and products with showing sales and sales growth for monthly and quarterly. I need to add these feature in the chart as a drill-down. 

 

My data has two tables one is a date table and another one is raw data

 

Jason2500_0-1618364491601.png

 

I have created a clustered bar graph using the country column as a market and sales. Product in the legend for the comparison. Now I need to calculate sales growth for monthly and quarterly and show it as a line in the bar graph. The idea is to show both sales vs sales growth in each market against different products. This has to be in drill-down features for both monthly and quarterly. 

 

Could you please advise how to calculate the sales growth and also am I using the right chart?

 

 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Jason2500 ,

If caluculated the sales growth for each product, the line number must be the same the number of products.

Create a measure like this to calculate the percentage:

Percentage =
VAR _current =
    SUM ( Sales[Sales] )
VAR _previous =
    CALCULATE ( SUM ( Sales[Sales] ), DATEADD ( 'Calendar'[Date], -1, MONTH ) )
RETURN
    DIVIDE ( _current - _previous, _previous, BLANK () )

growth.png

Attached a sample file in the below, hopes it could help.

 

Best Regards,
Community Support Team _ Yingjie Li
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

2 REPLIES 2
v-yingjl
Community Support
Community Support

Hi @Jason2500 ,

If caluculated the sales growth for each product, the line number must be the same the number of products.

Create a measure like this to calculate the percentage:

Percentage =
VAR _current =
    SUM ( Sales[Sales] )
VAR _previous =
    CALCULATE ( SUM ( Sales[Sales] ), DATEADD ( 'Calendar'[Date], -1, MONTH ) )
RETURN
    DIVIDE ( _current - _previous, _previous, BLANK () )

growth.png

Attached a sample file in the below, hopes it could help.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors