cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tubster66 Frequent Visitor
Frequent 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

Accepted Solutions
Super User
Super User

Re: Merging Two Tables

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,

 

 






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

Proud to be a Datanaut! Appreciate your Kudos Smiley Happy
Feel free to email me with any of your BI needs.





3 REPLIES 3
Super User
Super User

Re: Merging Two Tables

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,

 

 






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

Proud to be a Datanaut! Appreciate your Kudos Smiley Happy
Feel free to email me with any of your BI needs.





Highlighted
Tubster66 Frequent Visitor
Frequent Visitor

Re: Merging Two Tables

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.

Super User
Super User

Re: Merging Two Tables

awesome, good for you Smiley Happy






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

Proud to be a Datanaut! Appreciate your Kudos Smiley Happy
Feel free to email me with any of your BI needs.





Helpful resources

Announcements
Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 429 members 4,218 guests
Please welcome our newest community members: