• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Rolling 12 months TO% not pulling through correctly when less than 12 months data|Power Pivot|Excel Forum|My Online Training Hub

You are here: Home / Rolling 12 months TO% not pulling through correctly when less than 12 months data|Power Pivot|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower PivotRolling 12 months TO% not pulling t…
sp_PrintTopic sp_TopicIcon
Rolling 12 months TO% not pulling through correctly when less than 12 months data
Avatar
Donna Morton

New Member
Members
Level 0
Forum Posts: 2
Member Since:
January 14, 2022
sp_UserOfflineSmall Offline
1
January 14, 2022 - 6:39 am
sp_Permalink sp_Print

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)

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4447
Member Since:
July 16, 2010
sp_UserOnlineSmall Online
2
January 15, 2022 - 7:39 pm
sp_Permalink sp_Print sp_EditHistory

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

Avatar
Donna Morton

New Member
Members
Level 0
Forum Posts: 2
Member Since:
January 14, 2022
sp_UserOfflineSmall Offline
3
January 17, 2022 - 3:26 am
sp_Permalink sp_Print sp_EditHistory

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

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4447
Member Since:
July 16, 2010
sp_UserOnlineSmall Online
4
January 17, 2022 - 12:33 pm
sp_Permalink sp_Print

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

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4447
Member Since:
July 16, 2010
sp_UserOnlineSmall Online
5
January 18, 2022 - 10:54 am
sp_Permalink sp_Print

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

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Mynda Treacy, s Ramchandran, Shanna Henseler, Stacy Culpepper
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6212
Posts: 27237

 

Member Stats:
Guest Posters: 49
Members: 31889
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.