<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Want to extract partial data from previous rows in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Want-to-extract-partial-data-from-previous-rows/m-p/2026216#M59615</link>
    <description>&lt;P&gt;Apologies for the confusion. Attached input and expected results .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Aug 2021 13:32:27 GMT</pubDate>
    <dc:creator>Vara</dc:creator>
    <dc:date>2021-08-19T13:32:27Z</dc:date>
    <item>
      <title>Want to extract partial data from previous rows</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Want-to-extract-partial-data-from-previous-rows/m-p/2023231#M59529</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me on the example scenario attached ? I would like to fetch data as below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex: for 01/08/2021 want to read first 2 columns from previous day&amp;nbsp; until Col3&amp;nbsp; and the same applies for all the other dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks ina advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 10:05:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Want-to-extract-partial-data-from-previous-rows/m-p/2023231#M59529</guid>
      <dc:creator>Vara</dc:creator>
      <dc:date>2021-08-18T10:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Want to extract partial data from previous rows</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Want-to-extract-partial-data-from-previous-rows/m-p/2023843#M59547</link>
      <description>&lt;P&gt;Here is one way to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("Pcq7DcMwDADRXVQbsMSPxMxieP81kmNANocr3vOMuFfcMmWNa6xJ8oQosfFeyT7FBPY/mMCkmMxiCtM8mMK02SpmMMuDGcyaSTGHeR7MYd5Mi23YzoNt2G5mxQ7s5MEO7DTzYgGLPFjA4sfeLw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Date = _t, Col1 = _t, Col2 = _t, Col3 = _t, Col4 = _t, Col5 = _t]),
    Custom1 = let l=Table.ToColumns(Source), x=List.FirstN(l,1)&amp;amp;List.LastN(l,2), y=List.Difference(l,x) in Table.FromColumns(List.Transform(x, List.Skip) &amp;amp; List.Transform(y, List.RemoveLastN),List.FirstN(Table.ColumnNames(Source),1) &amp;amp;List.Transform(List.Skip(List.Positions(l)), each "Column " &amp;amp; Text.From(_)))
in
    Custom1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 14:57:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Want-to-extract-partial-data-from-previous-rows/m-p/2023843#M59547</guid>
      <dc:creator>Jakinta</dc:creator>
      <dc:date>2021-08-18T14:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Want to extract partial data from previous rows</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Want-to-extract-partial-data-from-previous-rows/m-p/2024004#M59552</link>
      <description>&lt;P&gt;Thanks for your reply , is this works with Power query editor in excel ?. I tried with code and logic giving some syntax errors.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 16:09:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Want-to-extract-partial-data-from-previous-rows/m-p/2024004#M59552</guid>
      <dc:creator>Vara</dc:creator>
      <dc:date>2021-08-18T16:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Want to extract partial data from previous rows</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Want-to-extract-partial-data-from-previous-rows/m-p/2024042#M59554</link>
      <description>&lt;P&gt;Also i would take the input from another excel sheet where we have these columns . Also attached is output from&amp;nbsp;&lt;/P&gt;&lt;P&gt;your query&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i am expecting the out put as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;8/18/2021 null null 10 11 12&lt;BR /&gt;8/19/2021 13 14 20 21 22&lt;BR /&gt;8/20/2021 23 24 30 31 32&lt;BR /&gt;8/21/2021 33 34 40 41 42&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 16:24:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Want-to-extract-partial-data-from-previous-rows/m-p/2024042#M59554</guid>
      <dc:creator>Vara</dc:creator>
      <dc:date>2021-08-18T16:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Want to extract partial data from previous rows</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Want-to-extract-partial-data-from-previous-rows/m-p/2024214#M59560</link>
      <description>&lt;P&gt;Well that is different from your original post. Not he same logic applied...&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 18:23:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Want-to-extract-partial-data-from-previous-rows/m-p/2024214#M59560</guid>
      <dc:creator>Jakinta</dc:creator>
      <dc:date>2021-08-18T18:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Want to extract partial data from previous rows</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Want-to-extract-partial-data-from-previous-rows/m-p/2026216#M59615</link>
      <description>&lt;P&gt;Apologies for the confusion. Attached input and expected results .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 13:32:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Want-to-extract-partial-data-from-previous-rows/m-p/2026216#M59615</guid>
      <dc:creator>Vara</dc:creator>
      <dc:date>2021-08-19T13:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Want to extract partial data from previous rows</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Want-to-extract-partial-data-from-previous-rows/m-p/2027252#M59648</link>
      <description>&lt;P&gt;This should do your thing.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("Pcq7DcMwDADRXVQbsMSPxMxieP81kmNANocr3vOMuFfcMmWNa6xJ8oQosfFeyT7FBPY/mMCkmMxiCtM8mMK02SpmMMuDGcyaSTGHeR7MYd5Mi23YzoNt2G5mxQ7s5MEO7DTzYgGLPFjA4sfeLw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Date = _t, Col1 = _t, Col2 = _t, Col3 = _t, Col4 = _t, Col5 = _t]),
    Custom1 = let l=Table.ToColumns(Source), x=List.FirstN(l,1), y=List.Transform( List.LastN(l,2), each {null} &amp;amp; List.RemoveLastN(_,1)), z= List.RemoveFirstN (List.RemoveLastN(l,2),1) in Table.FromColumns( x &amp;amp; y &amp;amp; z , List.FirstN(Table.ColumnNames(Source),1) &amp;amp; List.Transform( List.Skip( List.Positions(l)), each "Column " &amp;amp; Text.From(_)))

in
    Custom1&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 20 Aug 2021 03:19:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Want-to-extract-partial-data-from-previous-rows/m-p/2027252#M59648</guid>
      <dc:creator>Jakinta</dc:creator>
      <dc:date>2021-08-20T03:19:29Z</dc:date>
    </item>
  </channel>
</rss>

