Forum

Notifications
Clear all

Lesson 7

9 Posts
2 Users
0 Reactions
67 Views
(@alib40)
Posts: 113
Estimable Member
Topic starter
 

Using the data in Lesson 7.08 how would you use different phasing in the same query?  for eg

Salary budget to be phased equally over 12 months

Amenities budget to be phased on a per day basis

the rest phased based on a 4 or 5 week financial calendar

 
Posted : 17/12/2018 1:46 pm
(@alib40)
Posts: 113
Estimable Member
Topic starter
 

Also how would you delay the phasing = eg IT Salary value is for the months April - Dec therefore the phasing should start in April

 
Posted : 17/12/2018 1:52 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Alison,

Instead of dividing by 365 x 12 in the 'Inserted Division' step you'd use another table that has the various phasing rules for each account and bring that information in with a merge tables step. e.g. in the other table with your phasing rules IT would have the following rules:

Month Rate

Jan      *0

Feb      *0

Mar     *0

Apr    /365*30

May   /365*31

June   /365*30

etc.

You'd then use this data in your Division step instead of Number.Round([Annual Budget] / 365 * Date.DaysInMonth([Month]),2)

Mynda

 
Posted : 17/12/2018 7:13 pm
(@alib40)
Posts: 113
Estimable Member
Topic starter
 

Would you recommend this is done in power query or once the data is in power pivot

 
Posted : 18/12/2018 3:41 am
(@alib40)
Posts: 113
Estimable Member
Topic starter
 

After merging is it the rule to then unpivot all columns before putting in power pivot 

 
Posted : 18/12/2018 4:08 am
(@mynda)
Posts: 4761
Member Admin
 

You should always add calculated columns in Power Query if possible as it's more efficient than adding columns in Power Pivot.

There wasn't any merging performed in lesson 7.08 so I'm not sure what you're referring to, but a merge doesn't always mean you follow with an unpivot. The goal is to provide Power Pivot with tabular data, so you only unpivot if your data isn't in a tabular format. If this question refers to a different lesson, then please start a new question.

 
Posted : 18/12/2018 8:30 am
(@mynda)
Posts: 4761
Member Admin
 

I should add, as mentioned in the Merge tutorial 3.04, a merge is similar to doing a VLOOKUP to bring data in from one table to another based on matching a value or values common to both tables.

 
Posted : 18/12/2018 6:40 pm
(@alib40)
Posts: 113
Estimable Member
Topic starter
 

I was referring to where you had the Actual and Budget figures in their own columns.   Would you unpivot these before sending to power pivot?

 
Posted : 18/12/2018 7:10 pm
(@mynda)
Posts: 4761
Member Admin
 

There is no actual data in the 7.08 file, it only has budget data. However, it would be correct to have a column for actuals and a separate column for budget as this would be a tabular layout.

 
Posted : 18/12/2018 9:49 pm
Share: