{"id":96,"date":"2023-05-18T08:10:59","date_gmt":"2023-05-18T08:10:59","guid":{"rendered":"https:\/\/datadandies.nl\/?p=96"},"modified":"2023-05-18T08:10:59","modified_gmt":"2023-05-18T08:10:59","slug":"lag-van-sql-in-power-query","status":"publish","type":"post","link":"https:\/\/datadandies.nl\/index.php\/2023\/05\/18\/lag-van-sql-in-power-query\/","title":{"rendered":"LAG van SQL in Power Query\u00a0"},"content":{"rendered":"\n<p>For those of you looking for the LAG function from SQL in Power Query to get a previous record in a column, look no further than this article: https:\/\/gorilla.bi\/power-query\/get-previous-row-value\/\u00a0\u00a0<\/p>\n\n\n\n<p>SQL&nbsp;<\/p>\n\n\n\n<p>&#8220;LAG ( [Column] ) OVER ( ORDER BY [Column] ) &#8221;&nbsp;&nbsp;<\/p>\n\n\n\n<p>=&nbsp;<\/p>\n\n\n\n<p>Power Query&nbsp;<\/p>\n\n\n\n<p>&#8220;= StepName[ColumnName]{ZeroBasedIndex}&#8221;&nbsp;<\/p>\n\n\n\n<p>#SQL #PowerQuery<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For those of you looking for the LAG function from SQL in Power Query to get a previous record in a column, look no further than this article: https:\/\/gorilla.bi\/power-query\/get-previous-row-value\/\u00a0\u00a0 SQL&nbsp; &#8220;LAG ( [Column] ) OVER ( ORDER BY [Column] ) &#8221;&nbsp;&nbsp; =&nbsp; Power Query&nbsp; &#8220;= StepName[ColumnName]{ZeroBasedIndex}&#8221;&nbsp; #SQL #PowerQuery<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11,4],"class_list":["post-96","post","type-post","status-publish","format-standard","hentry","category-blog","tag-powerquery","tag-sql"],"_links":{"self":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":1,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":97,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/96\/revisions\/97"}],"wp:attachment":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}