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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Tubster66
Regular Visitor

Merging Two Tables

Hi

 

New to Power BI and struggling with a basic problem. I have chased my tail on various solutions posted but none work for me (probably due to my lack of ability!!)

 

Budget and Actuals summary sales tables are identical in having four columns, NAME, MONTH, YEAR, VALUE. As I have seen in other posts some people have a budget but no actuals for certain month/year combinations and likewise we have new people with sales, but no budget.

 

In the end I want a 5 column table of NAME MONTH YEAR ACTUAL BUDGET, with a row for each unique NAME/PERIOD/YEAR combination across both Budget and Actual tables. The Actuals Table is a "New Table" using SUMMARIZE measure analysing data from another larger and more detailed table. I have linked both the budget and actual tables via other date / data tables so in theory they are linked.

 

Looked at just doing this as a data load from a Progress database, or concatentating NAME PERIOD YEAR and then merging the two tables (but that creates ambiguity). Neither appear to work so..............................

 

Any help will be much appreciated

 

 

 

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

I guess you already have date dimension in your data model, if you not then you need one.

 

- add date column in your actual and budget table, you can create it from month/year column.

- set relationship on date from your actual/budge table to date dimension.

 

now in your table visual, if you bring year/month/date from your date dimension and bring value from actual and budget column, you will get actual vs budget where applicable.

 

I hope it is helpful, if you need further assistance, please reply.

 

Thanks,

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

3 REPLIES 3
parry2k
Super User
Super User

I guess you already have date dimension in your data model, if you not then you need one.

 

- add date column in your actual and budget table, you can create it from month/year column.

- set relationship on date from your actual/budge table to date dimension.

 

now in your table visual, if you bring year/month/date from your date dimension and bring value from actual and budget column, you will get actual vs budget where applicable.

 

I hope it is helpful, if you need further assistance, please reply.

 

Thanks,

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thank you!

 

Rookie error on the Date Dimension Table - got what I need and also fixed a problem I was having on seeing records in a matrix when I had a column set to "see items with no data".

 

Two for one - great result.

 

Thanks again.

awesome, good for you 🙂



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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