Issue with DAX - Year on Year Growth

Asmilie2b

New Member
Joined
Nov 3, 2013
Messages
2
Hello forum,
New to PowerPivot and loving it. Glad this forum exists.
I am playing with DAX for the first time and am having an issue doing something that should be easy.

I have the below data, all in the one table, no extra date table.
DAX-Issue-1.png


This is my pivot.
DAX-Issue-2.png


What I need to do is just simply have a measure, which will show me the Growth on previous year.
[Current Year] - [Previous Year] / [Previous Year]

The problem is, I can;t figure out the DAX syntax to get the previous column. I have the columns using "Year", which is a clumn just made from another date column, but using YEAR() to get the year. I have tried using this to get just the previous year sales amount:


-- removed inline image ---


But Year -1 doesn't seem to do it. I get the same figure in each of the Measure columns. Perhaps I need to use ALL() to release other filters? Or do I need a seperate date table for this? Any thoughts appreciated.

DAX-Issue-3.png
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Upvote 0

Forum statistics

Threads
1,223,966
Messages
6,175,661
Members
452,666
Latest member
AllexDee

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top