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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Creating a table based on two tables

Hi,

 

I have two tables: PREVIOUS and CURRENT

 

 

Tables.jpg

 

I need to make this visualisation:

 

Visualisation.jpg

 

 

How do I put those two tables PREVIOUS and CURRENT together (if necessary) and how do I make this visualisation?

 

Thanks,

 

R.W.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks Dobregon for your reply.

 

The two tables are imported from two Excel files

 

I solved the problem in the end using a DAX expression

 

COMPARE = UNION(CURRENT;PREVIOUS)

 

R.W.

View solution in original post

2 REPLIES 2
dobregon
Impactful Individual
Impactful Individual

Hi,

 

I have 2 options to you. 

 

  1. Info comming from SQL
    If the info is comming from SQL you can do a union of tables like
    SELECT
    ID,
    CODE,
    YEAR
    FROM PREVIOUS
    
    UNION 
    
    SELECT
    ID,
    CODE,
    YEAR
    FROM CURRENT
    Then you will have everthing in the same "table". Then you need to take a visual of columns
    X axis year
    Values Count of difernet codes.

  2. If you have both tables in the PowerBI desktop  you can select in the Edit querys the option of append queries like this link
    http://radacad.com/append-vs-merge-in-power-bi-and-power-query
    After that you will have everthing in one "table" and then you need to do the same than point 1

Hope this help you



Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Anonymous
Not applicable

Thanks Dobregon for your reply.

 

The two tables are imported from two Excel files

 

I solved the problem in the end using a DAX expression

 

COMPARE = UNION(CURRENT;PREVIOUS)

 

R.W.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.