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,565 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

0 votes
1 answer
0 votes
1 answer

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
• 21,850 points
80 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
472 views
0 votes
1 answer

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

Best practices to guarantee that the defined ...READ MORE

answered Dec 23, 2024 in Power BI by pooja
• 21,850 points
106 views
0 votes
1 answer

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
• 21,850 points
92 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
• 24,110 points
53 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
• 24,110 points
83 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
• 24,110 points
87 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,823 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 38,661 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