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
Syndicate_Admin
Administrator
Administrator

Return growth percentages

How is it going!

I have the following table with sales, and annual cumulative sales broken down by months. when I add the % growth the months of January are calculated based on the previous year, and what I need is that everything is recalculated from the beginning as the accumulated sale is doing. What would the measure applied for this column look like?

DiegoTG_0-1645142776213.png

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Syndicate_Admin 

 

You can add a Date table to your model and use the following measure. Add an IF condition to tell whether a month is January. For January, it will return blank. You can change it per your need. 

Monthly Growth = 
VAR _previousSales = CALCULATE(SUM('Table'[Sales]),DATEADD('Date'[Date],-1,MONTH))
VAR _currentSales = SUM('Table'[Sales])
VAR _growth = DIVIDE(_currentSales-_previousSales,_previousSales)
RETURN
IF(MAX('Date'[Month])="January",BLANK(),_growth)

vjingzhang_0-1645499065316.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @Syndicate_Admin 

 

You can add a Date table to your model and use the following measure. Add an IF condition to tell whether a month is January. For January, it will return blank. You can change it per your need. 

Monthly Growth = 
VAR _previousSales = CALCULATE(SUM('Table'[Sales]),DATEADD('Date'[Date],-1,MONTH))
VAR _currentSales = SUM('Table'[Sales])
VAR _growth = DIVIDE(_currentSales-_previousSales,_previousSales)
RETURN
IF(MAX('Date'[Month])="January",BLANK(),_growth)

vjingzhang_0-1645499065316.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Thank you very much, if I could solve it successfully

amitchandak
Super User
Super User

@Syndicate_Admin , You can use time intelligence with date table

 

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))

last year MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-12,MONTH)))

or

Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))

 

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

 

Power BI — Month on Month with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e
https://www.youtube.com/watch?v=6LUBbvcxtKA

 

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.