Forum

Best Structure when...
 
Notifications
Clear all

Best Structure when you have budget , actuals and forecasts

9 Posts
2 Users
0 Reactions
84 Views
(@decco)
Posts: 16
Eminent Member
Topic starter
 

Hi

Thanks to the training I am making huge progress, but I need assistance on some design/structure-visualize-data principles. 

I am building a standard financials (P&L) dashboard (from power pivot), which incorporates the following:

- Actuals: these are for prior year and current year as I conduct year on year analysis on these. 

- Budget  (Static - set prior to current year) and only for the year

- Forecast (Per month and is updated monthly)

I pull each of these via Power Pivot into my data model. The structure is same for each of them with a column for:

- Date (I default for 1st of the month, this is just to be able to do monthly views)

- General Ledger Code (GL Code)

- Cost Centre Code (CC)

- Value 

Then in the data model I have a GL lookup table and a CC look up table to return all the other relevant data such as client names, cost type, etc. 

What I am trying to work out is

- do I retain the 3 separate fact tables of "Actual" , "Budget" and "Forecast", with all of the values being in a column Value in each table and then write measures to calculate variances between actual and budget, actual and forecast, etc. This is both for the month and for YTD and for the full year. I am struggling to understand how I write this measure in power pivot.

- or do I append all 3 into one data table where Actual Value is in a column called "Actuals", Budget value in a column called "Budget", etc. And then create a calculated column which equals Actual column - Budget colum and Actual column - Forecast? 

Hope this makes sense?

 
Posted : 19/05/2020 5:18 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Declan,

It's great to hear you're making use of Power Pivot.

Power Pivot course session 6.07 deals with this. You can keep your 3 fact tables, but you'll also need a dimension table for the Dates. You can create 3 explicit measures that sum the actual, budget and forecast. Then you can create further explicit measures that calculate the variances which reference the previous 3 explicit measures.

I hope that points you in the right direction, but shout if you get stuck.

Mynda

 
Posted : 19/05/2020 7:47 pm
(@decco)
Posts: 16
Eminent Member
Topic starter
 

Thanks , the training is fantastic, its just translating it into my versions that is a bit more challenging bu I will get there! 

From your experience given your financial services experiences, is it best to have 3 fact tables, is that how you would have set it up? and does it need a column to state if its actual, budget or forecast? 

Sorry for all the queries, but really want to learn the right way with this rather than the workarounds I normally end up doing. 

 
Posted : 20/05/2020 5:08 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Declan,

If all 3 tables only store the values at the first of each month, then it would be a smaller file if you created one table with the following columns:

- Date

- General Ledger Code

- Cost Centre Code

- Actual 

- Budget

- Forecast

You can use Power Query to merge the Budget and Forecast figures into the Actual table, which you then load into Power Pivot. Note: you will need to use the Full Outer join because the Actual table won't necessarily contain rows for all Date, GL code and Cost Centre combinations.

Mynda

 
Posted : 20/05/2020 7:12 pm
(@decco)
Posts: 16
Eminent Member
Topic starter
 

Thanks Mynda, will give this a try. 

 
Posted : 21/05/2020 6:32 am
(@decco)
Posts: 16
Eminent Member
Topic starter
 

Now I am trying this I am encountering an issue, and may not have explained fully. Calendar year runs from April to March. I dont have budget and forecast data for prior year (April 2019 to March 2020) as only interested in actual vs actual for prior year comparison. So Actuals are from April 2019 and then continue as these become available at each month end. 

Because of this , when I use actual as the base and then merge forecast and budget, actual has dates from prior year up to current month whereas budget and forecast only have current month and rest of financial year months. so when I merge it only pulls in budget for current month but get all actuals from April 2019 to date. 

When I do it the other way with budget or forecast as base, then I have the issue that it doesnt bring in previous year for actuals. 

Is the single table structure better from an ability to analyze/create further detailed pivots, or will the 3 table structure work as well? (As I have begun to write measures based on 3 table. The data will never be millions of rows, its a fairly simple company and its only high level GL data not lowest level transactional, so my priority is more ability to analyse and create pivots for dashboards as opposed to ability to manage and process large data sets.

 

Thanks again as always

 
Posted : 21/05/2020 7:56 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Declan,

If you use the "Full Outer Join" (mentioned in the note above) it will bring in all rows from both tables. It will be easier to write the measures if the data is in one table, but only marginally as you will still need a date/calendar table to use the Time Intelligence functions.

Mynda

 
Posted : 21/05/2020 9:09 am
(@decco)
Posts: 16
Eminent Member
Topic starter
 

Hi, I thought I had selected full outer join, but had clicked on right outer by mistake.

I have tried this but getting errors, I think this is because when I analyse the data from actuals not everything is on the 1st of the month, so will be different days in the month, whereas budget and forecast will always just be defaulted to 1st of the month. I have still tried this under the assumption that comparing month on month will still work but it doesnt balance. Is this as you would expect because of the different days or is the error still something else I am doing wrong?

 

I have created the date/calendar table and have been making really good progress with some elements, as I need to use Prior Month, Prior Year and YTD functions, and have got them working with the 3 tables, but still with some issues and snags, which is why I am trying to see if this single table is still the way I need to go to resolve those 

 

THanks

 
Posted : 21/05/2020 4:56 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Declan,

It shouldn't matter if the actuals aren't all on the first of the month. Your one big table might have budget and forecast on the 1st and then actuals on the 10th, so two rows of data for the month rather than one, but the PivotTable will just aggregate them to the month level anyway.

If you're getting errors then that's another issue. If you want to share your file with me I can take a look. Either upload it here, or if it has confidential data that you can't easily remove, you can email it to me: website at MyOnlineTrainingHub.com

Mynda

 
Posted : 21/05/2020 6:59 pm
Share: