<?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 Merge rows when an Index field has null value in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Merge-rows-when-an-Index-field-has-null-value/m-p/3703276#M49581</link>
    <description>&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I an trying to automate a PDF to Excel conversion using power query, I have not been able to accomplish this at level of precision I wanted to and need some help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the snap of read query :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since &lt;STRONG&gt;the pdf splits into two pages at row 12 and 13&lt;/STRONG&gt; but remains in single table, the whole table is read, but is not returning me a complete dataset. I want to merge the row which has &lt;EM&gt;null &lt;/EM&gt;value in &lt;STRONG&gt;"&lt;/STRONG&gt;SL. No&lt;STRONG&gt;"&lt;/STRONG&gt; column with the row above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to add a condition to the &lt;STRONG&gt;FillUp&lt;/STRONG&gt; function, but &lt;STRONG&gt;it only seems to apply merge to a &lt;U&gt;select column.&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the section of one pdf when the table splits&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the time !&lt;/P&gt;</description>
    <pubDate>Fri, 16 Feb 2024 07:05:43 GMT</pubDate>
    <dc:creator>ArulBhargavR</dc:creator>
    <dc:date>2024-02-16T07:05:43Z</dc:date>
    <item>
      <title>Merge rows when an Index field has null value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Merge-rows-when-an-Index-field-has-null-value/m-p/3703276#M49581</link>
      <description>&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I an trying to automate a PDF to Excel conversion using power query, I have not been able to accomplish this at level of precision I wanted to and need some help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the snap of read query :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since &lt;STRONG&gt;the pdf splits into two pages at row 12 and 13&lt;/STRONG&gt; but remains in single table, the whole table is read, but is not returning me a complete dataset. I want to merge the row which has &lt;EM&gt;null &lt;/EM&gt;value in &lt;STRONG&gt;"&lt;/STRONG&gt;SL. No&lt;STRONG&gt;"&lt;/STRONG&gt; column with the row above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to add a condition to the &lt;STRONG&gt;FillUp&lt;/STRONG&gt; function, but &lt;STRONG&gt;it only seems to apply merge to a &lt;U&gt;select column.&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the section of one pdf when the table splits&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the time !&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 07:05:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Merge-rows-when-an-Index-field-has-null-value/m-p/3703276#M49581</guid>
      <dc:creator>ArulBhargavR</dc:creator>
      <dc:date>2024-02-16T07:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Merge rows when an Index field has null value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Merge-rows-when-an-Index-field-has-null-value/m-p/3705492#M49596</link>
      <description>&lt;P&gt;Can you provide a sample pdf and the power query code you have tried so far?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2024 21:42:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Merge-rows-when-an-Index-field-has-null-value/m-p/3705492#M49596</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-17T21:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Merge rows when an Index field has null value</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Merge-rows-when-an-Index-field-has-null-value/m-p/3707128#M49602</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="542638" data-lia-user-login="ArulBhargavR" class="lia-mention lia-mention-user"&gt;ArulBhargavR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can apply the following codes in &lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-query-overview#advanced-editor" target="_self"&gt;Advanced Editor&lt;/A&gt; to achieve it, please find the details in &lt;EM&gt;&lt;STRONG&gt;the attachment&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("pY5dC4IwFIb/ymHXSW4t6HbOySI/hvODcCJBQVLMC/3/NKkrBW+CA+eF94XnaRqECdoheiI+8X3fRUK1op3s7b33ohjSYXpAMAwvuPSTR6enm4hEgT5DBYUGeQ2NZYkQqSpz1+1Ru2uQC+7CnEWF+1ykRc5iY2uWy6zUwljNZZbF82ye48Pa4bjtUP0k6pWEsVu8rx+mSyBXuOOBFgsY4HEC/r6N43/M9gM=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"SI .No" = _t, #"HSN Number" = _t, #"Item Description" = _t, #"Shipment Branch" = _t, #"Contact Number" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"SI .No", Int64.Type}, {"HSN Number", type text}, {"Item Description", type text}, {"Shipment Branch", type text}, {"Contact Number", type text}}),
    #"Filled Down" = Table.FillDown(#"Changed Type",{"SI .No"}),
    #"Grouped Rows" = Table.Group(#"Filled Down", {"SI .No"}, {{"Details", each _, type table [SI .No=nullable number, HSN Number=nullable number, Item Description=nullable text, Shipment Branch=nullable text, Contact Number=nullable text]}}),
    #"Aggregated data" = Table.AggregateTableColumn(#"Grouped Rows", "Details", {{"HSN Number", (x) =&amp;gt; Text.Combine(x, "#(lf)"), "HSN Number"}, {"Item Description",(x) =&amp;gt; Text.Combine(x, "#(lf)"), "Item Description"}, {"Shipment Branch",(x) =&amp;gt; Text.Combine(x, "#(lf)"), "Shipment Branch"}, {"Contact Number",(x) =&amp;gt; Text.Combine(x, "#(lf)"), "Contact Number"}} )

in
    #"Aggregated data"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 07:40:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Merge-rows-when-an-Index-field-has-null-value/m-p/3707128#M49602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-19T07:40:59Z</dc:date>
    </item>
  </channel>
</rss>

