Forum Discussion

Kureigu's avatar
Kureigu
Frequent Visitor
5 years ago
Solved

Add Multiple Values in Column per ID

Hi,   I have a table of IDs that derive from another table, I need to add a list of values for each ID (years) so that I can summarise data into a table for each year. The years are as a list in an...
  • parry2k's avatar
    5 years ago

    Kureigu it will be easier to do in PQ, merge your ID table with the 2nd table which has the year on the ID column, and after the merge step, expand the column you just created and you will get all the years for each ID.

     

    Something like this:

     

     

    Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

     

     

     

  • sanalytics's avatar
    5 years ago

    Hello Kureigu ,

     

    Create an additional column and do cross join.

     

    Refer the pbix file on below link

     

    https://dropfiles.org/rEba7WTm

     

    Regards

    sanalytics

    If it is your solution then please like and accept it as your solution