Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Help with table relationships, several tables per year

Hi everyone.   I am pretty new to Power Bi and dont know how to proceed with the following:   I have 5 different tables for the past five years that include a column for Suppliers and another col...
  • d_gosbell's avatar
    7 years ago

    Probably the best approach is to add a "Year" column to each of your 5 tables with the appropriate value, then do an Append Merge operation to append all 5 tables into 1 table (you would then turn off data loading for the 5 original tables to avoid loading all the data twice), then it would be much easier to write generic measures that will do comparisons across the various years. 

  • v-xicai's avatar
    7 years ago

    Hi Anonymous ,

     

    You can create new calculated table using DAX below.

     

    Table = UNION(ADDCOLUMNS('2015',"Year","2015"),ADDCOLUMNS('2016',"Year","2016"))

     

     

     

     

     

     

     

     

     

     

    Best Regards,

    Amy

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.