New Member
January 14, 2022
Hi
This is my first post and fairly new to DAX so help is really needed please
I've built a HR Dashboard where they data is via a connection, using Pivot and DAX I've created the TO% which is all working how I want (with the helps of your videos... so thank you)
However I have 2 years data and one of my headlines is to show the 12 month rolling TO%
I have created a pivot off the main TO% pivot to show this with a separate calculation to show the average which I'm linking to my headline
The issue come when I test this with say 3 months data the calculation goes array, and on cross checking the TO%LTM pivot doesn't even match the main TO% pivot and I don't know why (see attached excel)
July 16, 2010
Hi Donna,
Welcome to our forum! Your file name contains a percentage sign which prevents it being downloadable by people viewing your question, which is why it hasn't been answered. We managed to locate your file in the back end of our forum system, but keep in mind for future that as a general rule you shouldn't use special characters in file names.
I looked at your percentages and I don't know why you would expect the TO% and TO%LTM to be the same. These are different formulas. Please explain with examples referencing your sample file data, so we can follow your logic.
Mynda
New Member
January 14, 2022
Hi Mynda
The first pivot to create the TO% is working as it is, however I need to showing the average rolling 12 month turnover.
I was trying to create a 2nd pivot off that to show only the rolling 12 months, then the average of that.
This is where I have gone wrong and am a little stuck
The data is being pulled from a data model and where I need assistance is how of that first pivot can I pull the last 12 months on a rolling basis and average those result to present just 3 figures: Total, Female and Male
July 16, 2010
Hi Donna,
Thanks for clarifying. You want to see an aggregated view of the data and for that you need the time intelligence functions, which require your model to contain a date table, marked as a date table.
Then you can use the technique explained here. I'm not aware of a way to do this without having a date table.
Mynda
July 16, 2010
Hi Donna,
I had a few minutes spare, so I created the date table and measure in your file, see attached. Note that you need to use the Date fields from the Calendar dimension table and that the December 2021 figure is erroneous because you have no actual data for this date, but this could be filtered out.
If you'd like to learn how to use Power Pivot, build data models and write DAX, please consider my Power Pivot course.
Mynda
1 Guest(s)