cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PBI-Curious
Resolver I
Resolver I

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*****

PBICurious_1-1656691838268.png

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

PBICurious_2-1656691874663.png

 

Here is the existing table in Power Query

 

PBICurious_3-1656691910916.png

 

 

 

 

 

 

 

 

2 ACCEPTED SOLUTIONS

Hi @PBI-Curious ,
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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

v-stephen-msft
Community Support
Community Support

Hi @PBI-Curious ,

 

Here's my solution.

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

vstephenmsft_0-1657091252609.png

Set up as follows and click OK.

vstephenmsft_1-1657091294206.png

vstephenmsft_2-1657091311036.png

 

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

vstephenmsft_3-1657091387689.pngvstephenmsft_4-1657091394476.png

 

3.Unpivot the 4 columns and rename the columns.

vstephenmsft_5-1657091433289.png

vstephenmsft_6-1657091442816.png

vstephenmsft_7-1657091491952.png

 

 

 

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.

View solution in original post

4 REPLIES 4
wdx223_Daniel
Super User
Super User

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

v-stephen-msft
Community Support
Community Support

Hi @PBI-Curious ,

 

Here's my solution.

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

vstephenmsft_0-1657091252609.png

Set up as follows and click OK.

vstephenmsft_1-1657091294206.png

vstephenmsft_2-1657091311036.png

 

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

vstephenmsft_3-1657091387689.pngvstephenmsft_4-1657091394476.png

 

3.Unpivot the 4 columns and rename the columns.

vstephenmsft_5-1657091433289.png

vstephenmsft_6-1657091442816.png

vstephenmsft_7-1657091491952.png

 

 

 

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.

Nathaniel_C
Super User
Super User

Hi @PBI-Curious ,

Nathaniel_C_0-1656719986522.png


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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @PBI-Curious ,
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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show Episode 10

The Power BI Community Show

Join us on October 3 at 11 am PST when Amit Chandak, a Power BI Super User, will demo how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Top Kudoed Authors