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.
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?
Solved! Go to Solution.
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)
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
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)
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
@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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
94 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |