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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
BIhelpBtoA
Regular Visitor

Budget to Actual data in two different Tables, sum on period

Hi Everyone!

 

I am quite new to Power BI and I was hoping for some assistance. I've read through some of the similar questions asked but I've had no luck trying to solve this, I'm sure it's partially to being new. I've got two tables that I'm trying to sum on fiscal period. One table contains budget data and the other contains our GL data which is the actual data. I'm trying to sum based on the fiscal period to simply show the amount that was budgeted for the period and the actual amount for the period. However, the budget amount is correct per period but the actual amount is showing the total of all periods in each individual period. I've tried to join these tables but i haven't been able to correctly so I'm trying to start over from scratch and hoping someone can help me or lead me in the right direction. Please let me know if I have included enough information for your assistance. The data tables are copied below but I can also share my PowerBI file if that is helpful. Thank you for any help that you can provide!

 

 

Data visualization with incorrect actual amount

BIhelpBtoA_1-1648758659335.png

 

Relationship view

 

BIhelpBtoA_2-1648758749708.png

 

 

 

 

 

 

 

 

 

Budget_2022

 

Fiscal YearFiscal PeriodGL Account CodeGL Account DescriptionDepartment CodeAnalytical Dimension Description 1Product CodeProject CodeBudget
22150005Merchandise expense400Information Technology000000                  -  
221250005Merchandise expense400Information Technology000000     2,406.25
22550005Merchandise expense400Information Technology000000     6,000.00
22750005Merchandise expense400Information Technology000000     5,412.88
22850005Merchandise expense400Information Technology000000   13,900.00
221250005Merchandise expense400Information Technology000000   26,219.06
22250010Supplies Expense405G&A000000                  -  
221250010Supplies Expense405G&A000000         500.00
22250010Supplies Expense405G&A001001   20,600.00
22150010Supplies Expense405G&A000000                  -  

 

 

GL_Activity

Document NumberDocument DescriptionDepartment CodeAnalytical Dim 1 Desc.Product CodeProject CodeGL Account CodeGL Account DescriptionLedger PostingAccounting DateFiscal Period
JE00005Merchandise expense400Information Technology00000050005Merchandise expense2799.242/28/20222
JE00005Merchandise expense400Information Technology00000050005Merchandise expense2799.292/28/20222
JE00005Merchandise expense400Information Technology00000050005Merchandise expense111.362/28/20222
JE00005Merchandise expense400Information Technology00000050005Merchandise expense111.352/28/20222
JE00005Merchandise expense400Information Technology00000050005Merchandise expense2799.232/28/20222
JE00006Supplies Expense405G&A00100250010Supplies Expense-121051/1/20221
JE00006Supplies Expense405G&A00100250010Supplies Expense121051/1/20221
1 ACCEPTED SOLUTION

@BIhelpBtoA,

 

Do the following:

 

1. Mark the Calendar table as the date table. Right-click the table and select "Mark as date table".

 

2. The relationship between Calendar and GL_Activity should use Calendar[Date] and GL_Activity[Accounting Date].

 

3. The relationship between Calendar and Budget_2022 needs a date column in Budget_2022. You can create a calculated column using the DATE function, and then create the relationship using this column.

 

4. In the visual, use Calendar fields.





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

Proud to be a Super User!




View solution in original post

7 REPLIES 7
v-yanjiang-msft
Community Support
Community Support

Hi @BIhelpBtoA ,

Does your GL_Activity table make relationship with the Calendar table by the Fiscal Period column? 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please considerAccept it as the solution to help the other members find it more quickly.

DataInsights
Super User
Super User

@BIhelpBtoA,

 

It appears that your visual is using Budget_2022[Fiscal Period]. The visual needs to use fields from the Calendar table.





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

Proud to be a Super User!




Hi @DataInsights

 

I have pulled in the Order Date from the calendar table. In the viz "Year, quarter, month, date" are from the calendar table but those show as no values in them. 

 

Thanks for your response!

@BIhelpBtoA,

 

Could you share a link to your pbix file (OneDrive, etc.)? Be sure to remove sensitive data.





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

Proud to be a Super User!




Hi @DataInsights! Very sorry about the delay. Got bogged down a bunch of different things. If you still have time to take a look here is the link to the file:  https://1drv.ms/u/s!AgUUbtkLlgi_aQMx51ImQwNwXxs

@BIhelpBtoA,

 

Do the following:

 

1. Mark the Calendar table as the date table. Right-click the table and select "Mark as date table".

 

2. The relationship between Calendar and GL_Activity should use Calendar[Date] and GL_Activity[Accounting Date].

 

3. The relationship between Calendar and Budget_2022 needs a date column in Budget_2022. You can create a calculated column using the DATE function, and then create the relationship using this column.

 

4. In the visual, use Calendar fields.





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

Proud to be a Super User!




That worked! I really appreciate the help! 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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