How can I get a column value from previous row in Power Query

0 votes

How can I get a column value from previous row in Power Query?

Mar 18, 2019 in Power BI by Sindhu
8,633 views

1 answer to this question.

0 votes
Hi Sindhu, add this line as your measure code, then add the column into your table.

Name = Table.AddColumn(#"Added index", "custom column", each #"Added index"{[Index]-1}[My Column]).

For more information see this,

https://social.technet.microsoft.com/Forums/en-US/5577b086-1d84-4b7e-9bed-59f15b01a8b0/how-can-i-do-calculation-based-on-nextprior-row-in-power-query?forum=powerquery
answered Mar 18, 2019 by Cherukuri
• 33,050 points

Related Questions In Power BI

+1 vote
2 answers
+1 vote
2 answers

How can I retrieve a mapped value from a many-to-one related table in Power BI when using DirectQuery mode?

Get the associated values per multiple linked ...READ MORE

answered Jan 23 in Power BI by pooja
• 23,870 points
122 views
+1 vote
2 answers

How can I count the distinct values in a column using Power BI?

In Power BI, use the DISTINCTCOUNT DAX ...READ MORE

answered Nov 26, 2024 in Power BI by Anu
• 3,020 points
529 views
0 votes
2 answers

How can I preserve table data type columns from Power Query in the Power BI Data Model?

Ensure data types are correctly set in ...READ MORE

answered Apr 3 in Power BI by anonymous
• 23,870 points
159 views
+1 vote
2 answers

How can I expose a custom query as a reusable view in an existing Power BI dashboard?

The steps to make customizable queries towards ...READ MORE

answered Jan 23 in Power BI by pooja
• 23,870 points
136 views
0 votes
1 answer

How do I extract JSON data from an API and transform it into a structured table in Power Query?

To extract and transform JSON data from ...READ MORE

answered Mar 13 in Power BI by anonymous
• 30,660 points
88 views
0 votes
1 answer

How can I create a dynamic grouping in Power Query where the group sizes vary based on another column’s values?

You can use these innovative techniques in ...READ MORE

answered Mar 17 in Power BI by anonymous
• 30,660 points
131 views
0 votes
1 answer

How can I create a function in Power Query that processes data differently based on a user-selected parameter?

The following steps outline the creation of ...READ MORE

answered Mar 17 in Power BI by anonymous
• 30,660 points
121 views
0 votes
1 answer

Calculated column with the sum of values from many columns in a row

Hi, You can create a new column by ...READ MORE

answered Mar 14, 2019 in Power BI by Cherukuri
• 33,050 points
2,875 views
0 votes
1 answer

How to rename a column using DAX in Power BI?

Hi Ramya, I found these two function that ...READ MORE

answered Aug 22, 2019 in Power BI by anonymous
• 33,050 points

edited Dec 31, 2021 by Soumya 39,014 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP