What I thought was quite simple turns out not to be. I need to calculate Rolling 12 Financial Periods and display it in a chart by Fiscal Periods.
If it was months there is kioads of info out there.
I can get to
Calculate( [Sales],
DATESBETWEEN(
dim Calendar[date].
**,
[EndDate]
)
I have the end date in a Measure. With Months I would use SAMEPERIODLASTYEAR. However this wont work as it is financial periods and they dont align like months.
There must be an easy way to step back 12 Financial Periods (not months)
The date dimension has a date column and a Financial Year Month number
I am sure there must be a real easy way to do this. I feel like I am missing the obvious
Hi @ells. Grab @Melissa’s extended date table and see the use of offsets. If it doesn’t have exactly what you need for your financial periods, you should be able to apply the offset principle to your situation without too much effort. Greg
Thanks,
I thought EDATE would do calendar months? This really needs to be financial and I have to use the data dimension provided
So Easy in SQL
End date I have
Start date would be
a = get the financial Year Month Number for the end date
b = a-100 (so if its 202010 then it becomes 201910
c= add on to the Financial Year Month (watching year boundaries) so we get 201911
start date = first day of 201911
I am sure there must be an easier way. Juggling three issues at once is not good for my small brain
Unfortunatelly I am not allowed to post it. There are a lot of things I am not happy about one of which is the naming convention. When I say Financial Months they are really Periods so do not follow the calendar Year.
I have the following columns of Interest
Month Year Number (financial Month Year Number)
Month Number (financial Month Number)
Month Offset ( financial offset from Cuurrent Month)
I am not sure. It looks like it is linked to start or end on a particular day. Very difficult to tell .
Best Guess would be Period end on last friday of the month.
Sorry I know this is going to be as awkward as possible.
E
I was thinking along the lines of
VAr EndDate = [End date]
Var EndDateCurrentYearOffset= (need to get the CurrentYearOffset for EndDate)
Var StartDateCurrentYearOffset= VarEndDateCurrentYearOffset -11
Var StartDate = Min(dim Caleddar[Date] where Year Month Offset = StartDateCurrentYearOffset
From there I can calculate Sales with Dates Between start date and end date
?
Many Thanks
E
It’s great to know that you are making progress with your query @ells. Please don’t forget if your question has been answered within the forum it is important to mark your thread as ‘solved’. Also, we’ve recently launched the Enterprise DNA Forum User Experience Survey, please feel free to answer it and give your insights on how we can further improve the Support forum. Thanks!
It appears to be giving me a lower total than I would expect from my excel reports. How can this be resolved and then how would I use the offset to create the prior year R12.
I have copied in your massive date table to my model.
I am really finding the shift from Excel to POWER BI incredibly difficult but feel it is really worth the pain
move mouse over the blue circle bottom right hand corner and it will turn into New topic and click on and then create it from there. Please remember to delete the other postings.