Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Can you Update Rows in Tables in Power Query

Hello PBI Community Good Day!

 

What I'm trying to accomplish:

 

I need to add 4 rows to an existing independent table in my .pbix, so I can show YoY % in my matrix visual.

 

Screen shots below

 

Wondering if this is possibile, if how would I go about doing it?

 

Much appreciate your time.

 

Thank you

 

*****Existing table*****

***Want to add the rows highlighted****

 

Here is the existing table in Power Query

 

 

 

 

 

 

 

 

 

  • Nathaniel_C's avatar
    Nathaniel_C
    4 years ago

    Hi Anonymous ,
    If I understand your question, create a new table in Power Query by Enter Data, as I have done.  Then select your original table. Next append Queries. Select your new table as the second table.


    Let me know if you have any questions.

    If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
    Nathaniel

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

     

    Here's my solution.

    1.Select the Comparsion column, then click 'Pivot Column'.

    Set up as follows and click OK.

     

    2.Add a custom column named 'YoY %', the value is 4.

     

    3.Unpivot the 4 columns and rename the columns.

     

     

     

    Best Regards,

    Stephen Tao

     

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

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Here's my solution.

    1.Select the Comparsion column, then click 'Pivot Column'.

    Set up as follows and click OK.

     

    2.Add a custom column named 'YoY %', the value is 4.

     

    3.Unpivot the 4 columns and rename the columns.

     

     

     

    Best Regards,

    Stephen Tao

     

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

  • wdx223_Daniel's avatar
    wdx223_Daniel
    Community Champion

    NewStep=Table.Combine(Table.Group(PreviousStepName,"CALCID",{"n",each _&#table(Table.ColumnNames(_),{{[CALCID]{0},[Calculation]{0},4,"YoY %"}})})[n])

  • Nathaniel_C's avatar
    Nathaniel_C
    Community Champion

    Hi Anonymous ,


    Let me know if you have any questions.

    If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
    Nathaniel

    • Nathaniel_C's avatar
      Nathaniel_C
      Community Champion

      Hi Anonymous ,
      If I understand your question, create a new table in Power Query by Enter Data, as I have done.  Then select your original table. Next append Queries. Select your new table as the second table.


      Let me know if you have any questions.

      If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
      Nathaniel