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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.