How to create a PowerPivot Table for a Business Scorecard

%3CLINGO-SUB%20id%3D%22lingo-sub-1505599%22%20slang%3D%22en-US%22%3EHow%20to%20create%20a%20PowerPivot%20Table%20for%20a%20Business%20Scorecard%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1505599%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20been%20working%20on%20this%20problem%20for%20a%20few%20days%20now%20and%20made%20little%20headway%2C%20despite%20watching%20many%20YouTube%20videos%20on%20the%20subject%20of%20PowerPivot%20time%20intelligence.%20Any%20help%2C%20whether%20that%20be%20a%20direct%20answer%20or%20a%20useful%20resource%2C%20would%20be%20greatly%20appreciated!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20hoping%20to%20create%20a%20business%20scorecard%20that%20can%20be%20filtered%20and%20sliced%2C%20displaying%20calculated%20metrics%20(Moving%20Annual%20Total%20Last%20Year%2C%20Moving%20Annual%20Total%20This%20Year%2C%20MAT%20Growth%2C%20Year%20to%20Date%20Last%20Year%2C%20Year%20to%20Date%20This%20Year%2C%20YTD%20Growth%2C%2012%20Week%20Sales%20Last%20Year%2C%2012%20Week%20Sales%20This%20Year%2C%2012%20Week%20Growth%2C%204%20Week%20Sales%20Last%20Year%2C%204%20Week%20Sales%20This%20Year%2C%204%20Week%20Sales%20Growth)%20that%20are%20dependant%20on%20the%20current%20dates%20selected.%20I%20have%20no%20issue%20calculating%20these%20values%20manually%20but%20I%20need%20to%20create%20a%20pivot%20table%20that%20can%20do%20it%20automatically%20for%20the%20period%20selected%20-%20the%20dataset%20I%20am%20working%20with%20will%20have%20historic%20sales%20data%20going%20back%20to%202018%20and%20all%20data%20going%20forward%20from%20now.%20This%20dataset%20will%20be%20massive%20(some%202.5%20million%20entries)%20so%20manual%20entry%20is%20out%20of%20the%20question.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENotes%3A%3C%2FP%3E%3CP%3E-%20Data%20is%20for%20sales%20is%20imported%20every%204%20weeks%20(28%20days)%20rolling%20and%20the%20pulled%20data%20for%20that%204%20week%20period%20will%20all%20be%20dated%20the%20same%20(i.e.%20all%20data%20pulled%20on%2018%2F04%2F2020%20will%20be%20dated%2018%2F04%2F2020%2C%20despite%20sales%20occurring%20on%20every%20day%20from%2021%2F03%2F2020%20to%2018%2F04%2F2020)%3C%2FP%3E%3CP%3E-%20%26nbsp%3BCalculated%20metrics%20will%20shift%20in%20time%20to%20coincide%20with%20any%20change%20in%20the%20dates%20being%20viewed%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20far%2C%20I%20understand%20that%20I%20need%20to%20use%20a%20calendar%20table%20in%20PowerPivot%20to%20use%20some%20of%20the%20more%20complex%20time-related%20DAX%20formulae.%20I%20have%20created%20such%20a%20table%20and%20can%20link%20it%20the%20PowerPivot%20model%20as%20per%20every%20time%20intelligence%20YouTube%20video%20I%20have%20watched.%20I%20have%20entered%20a%20couple%20of%20metrics%20(Sum%20of%20value%20Sales%2C%20YTD)%20and%20not%20had%20much%20luck%20getting%20them%20to%20work.%20One%20problem%20I%20ran%20into%20with%20the%20YTD%20value%20is%20that%20slicing%20the%20pivot%20table%20to%20show%202019%20data%20gave%20me%20a%20blank%20read%20for%20the%20YTD.%20The%20data%20is%20all%20present%20so%20I%20understand%20that%20there%20must%20be%20an%20issue%20with%20how%20the%20model%20is%20set%20up.%20Aside%20from%20that%2C%20I%20really%20have%20not%20managed%20to%20get%20it%20going.%20Please%20take%20a%20look%20at%20the%20attached%20spreadsheet%20so%20you%20can%20see%20what%20kind%20of%20data%20I%20am%20working%20with%20and%20what%20the%20output%20should%20look%20like%20-%20I%20have%20presented%20it%20as%20a%20static%20blank%20table%20but%20in%20reality%20the%20scorecard%20will%20be%20a%20dynamic%20pivot%20table.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20created%20a%20sample%20table%20and%20attached%20it%20to%20this%20post%20to%20show%20the%20raw%20data%20and%20the%20required%20output.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20sales%20data%20looks%20like%20this%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JackPalmer_0-1594062455851.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F203612i1F751DC94938E768%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22JackPalmer_0-1594062455851.png%22%20alt%3D%22JackPalmer_0-1594062455851.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20required%20output%20of%20the%20pivot%20table%20is%20as%20follows%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JackPalmer_1-1594062559554.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F203613iBC300B4C93D5DAE0%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22JackPalmer_1-1594062559554.png%22%20alt%3D%22JackPalmer_1-1594062559554.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20there%20is%20any%20more%20information%20you%20need%20then%20let%20me%20know.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20is%20very%20much%20appreciated!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJack%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1505599%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

Hi all,

 

 

I have been working on this problem for a few days now and made little headway, despite watching many YouTube videos on the subject of PowerPivot time intelligence. Any help, whether that be a direct answer or a useful resource, would be greatly appreciated!

 

I am hoping to create a business scorecard that can be filtered and sliced, displaying calculated metrics (Moving Annual Total Last Year, Moving Annual Total This Year, MAT Growth, Year to Date Last Year, Year to Date This Year, YTD Growth, 12 Week Sales Last Year, 12 Week Sales This Year, 12 Week Growth, 4 Week Sales Last Year, 4 Week Sales This Year, 4 Week Sales Growth) that are dependant on the current dates selected. I have no issue calculating these values manually but I need to create a pivot table that can do it automatically for the period selected - the dataset I am working with will have historic sales data going back to 2018 and all data going forward from now. This dataset will be massive (some 2.5 million entries) so manual entry is out of the question.

 

Notes:

- Data is for sales is imported every 4 weeks (28 days) rolling and the pulled data for that 4 week period will all be dated the same (i.e. all data pulled on 18/04/2020 will be dated 18/04/2020, despite sales occurring on every day from 21/03/2020 to 18/04/2020)

-  Calculated metrics will shift in time to coincide with any change in the dates being viewed

 

So far, I understand that I need to use a calendar table in PowerPivot to use some of the more complex time-related DAX formulae. I have created such a table and can link it the PowerPivot model as per every time intelligence YouTube video I have watched. I have entered a couple of metrics (Sum of value Sales, YTD) and not had much luck getting them to work. One problem I ran into with the YTD value is that slicing the pivot table to show 2019 data gave me a blank read for the YTD. The data is all present so I understand that there must be an issue with how the model is set up. Aside from that, I really have not managed to get it going. Please take a look at the attached spreadsheet so you can see what kind of data I am working with and what the output should look like - I have presented it as a static blank table but in reality the scorecard will be a dynamic pivot table. 

 

I have created a sample table and attached it to this post to show the raw data and the required output. 

 

The sales data looks like this:

JackPalmer_0-1594062455851.png

 

The required output of the pivot table is as follows:

JackPalmer_1-1594062559554.png

 

If there is any more information you need then let me know. 

 

Any help is very much appreciated! 

 

 

Thanks, 

 

Jack

0 Replies