Forum Discussion

CharlieN's avatar
CharlieN
Frequent Visitor
1 year ago
Solved

Merge two same columns from twice imported tables in table visual

Hi,   I wonder how I can merge the values of two columns from my table visual. Actually I get the values I need by importing two of the same tables since the path to get the ship name - 'schip (...
  • ABD128's avatar
    ABD128
    1 year ago

    Hi CharlieN 

     

    To consolidate data from the braboejob_report and braboejob_combined_order tables using Power Query, begin by adding a source identifier to each table. In Power Query Editor, select the braboejob_report table, navigate to the Add Column tab, and insert a Custom Column named "Source" with the fixed value "Report". Repeat this process for the braboejob_combined_order table, assigning the value "Order" to the "Source" column. Once both tables are tagged with their respective origins, go to the Home tab and select Append Queries as New. Choose to append the two tables, which will generate a new unified query containing all rows from both sources along with their origin labels. Rename this resulting query to something descriptive, such as "All_Jobs_With_Source", and load it into the data model. This combined dataset enables clear traceability of each record’s origin and simplifies downstream analysis, including DAX calculations and visualizations particularly for resolving ship names and performing contextual comparisons.