Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
arumel
Regular Visitor

Multi year budgets v actual

Hi all, new to power BI and need some help with the intial setup for a dashboard - Essentially this is a budget to expense report.

 

I have 2 fact tables:

 

1: Budget = Budget data is on an annual basis broken down by departments and sub departments

2: Transactions = The expense transactions are on a daily basis

 

At any given time i want to compare the actual expenses for a department or sub department to its annual budget - i.e in 2022 i want to compare the annual budget for Department A (700 in total) to the actual expenses from the daily expenses .. i would also like to further break this down and see the sub department budgets to their expenses.

 

This is my initial setp up:

arumel_0-1713684070103.png

arumel_1-1713684099863.png

 

 I am having issues around comparing annual budgets to daily transaction amounts and then slicing by departments or sub departments.

 

Any advice on how to struture my fact tables and create the relationships will be much appreciated.

 

Thanks in advance

7 REPLIES 7
arumel
Regular Visitor

Hi all,

 

The above soluton works when the "Year" table is created as mentioned, however if i try and create a 'Dates' tables as a autocalendar and try and create a relatationship bertween the new 'dates' table 'Year' to the year columns in 'budget' and 'actual' tables, i get error meassages:

 

arumel_0-1714476207688.pngarumel_1-1714476247946.png

 

I would prefer a 'dates' table to to year on year comparisons ..

 

Any solutuions to these problems?

 

Thanks again

Hi @arumel ,

Thanks for your feedback. That's only warning message due to both of the related tables(the table 'Dates' and 'Budget') has duplicated values. You can ignore it and click "OK" button to create the relationship for them directly.

vyiruanmsft_0-1714554270784.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
danextian
Super User
Super User

Hi @arumel ,

 

The annual budget can be split into several periods. The question now is what periods (days, months?) it is going to be split into? Also, provide a workable sample data ( not an image) that can be copy pasted into Excel or you can provide a link to an Excel file in the cloud.










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi, I only want to compare the annual budget to the expenses for that year .. i.e only need to compare the total 2022 budget to the total 2022 expense for a deprtment or sub department (dont need to brekdown to monthly budget details).

 

Below are the tables copied:

 

DeaprtmentSub DepartmentDepartment CodeYearBudget
AA1A1.12021100
AA2A2.22021150
AA3A3.32021200
AA4A4.42021120
BB1B1.12021175
BB2B1.22021180
BB3B1.32021300
BB4B1.42021180
AA1A1.12022160
AA2A2.22022200
AA3A3.32022240
AA4A4.42022100
BB1B1.12022160
BB2B1.22022145
BB3B1.32022300
BB4B1.42022200
AA1A1.12023200
AA2A2.22023260
AA3A3.32023170
AA4A4.42023150
BB1B1.12023220
BB2B1.22023175
BB3B1.32023250
BB4B1.42023220

 

Trans DateOrder NoVendorCurrencyAmountDepartment Code
1/1/202110111USD25A2.2
1/2/202110111USD41B1.1
5/8/202150552USD74A2.2
9/9/202190993USD12A3.3
4/4/202240442EUR36A4.4
6/9/202260661EUR11B1.1
1/12/202212112EUR36B1.2
1/3/202310113GBP45A1.1
1/4/202310114GBP93A2.2
9/9/202390993USD44A3.3

 

Thanks for your help

Hi @arumel ,

 

In your Actuals table, add a year column either using M or DAX. Then create a Year dimensions table and a Department dimension table. Relate both dimension tables to the fact tables. Use the dimension columns from the dimensions table in your visuals.  Please see attached pbix for details.

danextian_0-1713692907286.png

danextian_1-1713692917661.png

 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thanks for your help .. im going to have a play with this tonight .. will let you know how i get on

 

Regards

@arumel  Thanks for your contribution on this thread.

Hi @arumel ,

Have you got the solution? If yes, could you please mark the helpful post as Answered? Thank you.

 

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.