<?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: How to use a list of values from Excel cell in Csv.Document function? in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/How-to-use-a-list-of-values-from-Excel-cell-in-Csv-Document/m-p/2814913#M87362</link>
    <description>&lt;P&gt;&lt;SPAN&gt;That did the trick, t&lt;/SPAN&gt;hank you &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;for pointing the error in my code.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Really appreciate your help.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 19:51:34 GMT</pubDate>
    <dc:creator>Gaby_Scarcella</dc:creator>
    <dc:date>2022-10-03T19:51:34Z</dc:date>
    <item>
      <title>How to use a list of values from Excel cell in Csv.Document function?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/How-to-use-a-list-of-values-from-Excel-cell-in-Csv-Document/m-p/2814688#M87355</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to parse fixed-width files with variable number of characters that marks the start of each column, I'd like to use a list of values stored in a cell in an Excel document. To do so, I retrieved the values from the cell and converted it in a list of values, like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ColumnsFromExcel = Excel.CurrentWorkbook(){[Name="ColumnasSeparadorasRCV"]}[Content]{0}[Column1], &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;#"ColumnsList (text)" = Text.Split(ColumnsFromExcel, ", "), &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;#"ColumnsList (num)" = List.Transform(#"ColumnsList (text)", each Number.FromText(_)), &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to use the resulting list from Excel cell, &lt;STRONG&gt;Csv.Document&lt;/STRONG&gt; function returns just one column, however, if using a typed list of values, the function returns the expected number of columns. Both lists seems to be identical:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't find a solution for this so far. Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 17:30:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/How-to-use-a-list-of-values-from-Excel-cell-in-Csv-Document/m-p/2814688#M87355</guid>
      <dc:creator>Gaby_Scarcella</dc:creator>
      <dc:date>2022-10-03T17:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a list of values from Excel cell in Csv.Document function?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/How-to-use-a-list-of-values-from-Excel-cell-in-Csv-Document/m-p/2814825#M87358</link>
      <description>&lt;BLOCKQUOTE&gt;When I try to use the resulting list from Excel cell, &lt;STRONG&gt;Csv.Document&lt;/STRONG&gt;&lt;SPAN&gt; function returns just one column&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm not following how exactly you're using the lists. Can you share the code for the step with the Csv function?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 18:56:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/How-to-use-a-list-of-values-from-Excel-cell-in-Csv-Document/m-p/2814825#M87358</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2022-10-03T18:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a list of values from Excel cell in Csv.Document function?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/How-to-use-a-list-of-values-from-Excel-cell-in-Csv-Document/m-p/2814852#M87359</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;.&lt;BR /&gt;Thanks for the fast reply.&lt;/P&gt;&lt;P&gt;I'm trying to use this code:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Source = Csv.Document(File.Contents(FilePath &amp;amp; FileName),null,"ColumnsList (num)", null,1252),&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;instead of:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Source = Csv.Document(File.Contents(FilePath &amp;amp; FileName),null,{0, 9, 28, 36, 40, 45, 55, 65, 71},null,1252),&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 19:12:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/How-to-use-a-list-of-values-from-Excel-cell-in-Csv-Document/m-p/2814852#M87359</guid>
      <dc:creator>Gaby_Scarcella</dc:creator>
      <dc:date>2022-10-03T19:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a list of values from Excel cell in Csv.Document function?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/How-to-use-a-list-of-values-from-Excel-cell-in-Csv-Document/m-p/2814893#M87361</link>
      <description>&lt;P&gt;Thanks. This makes it clear exactly what's going on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your first line, it's interpreting "ColumnsList (num)" as a literal string rather than a reference to a list. In order to disambiguate, try it with an octothorpe (#) in front.&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;Source = Csv.Document(File.Contents(FilePath &amp;amp; FileName),null,#"ColumnsList (num)",null,1252),&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 Oct 2022 19:30:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/How-to-use-a-list-of-values-from-Excel-cell-in-Csv-Document/m-p/2814893#M87361</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2022-10-03T19:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a list of values from Excel cell in Csv.Document function?</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/How-to-use-a-list-of-values-from-Excel-cell-in-Csv-Document/m-p/2814913#M87362</link>
      <description>&lt;P&gt;&lt;SPAN&gt;That did the trick, t&lt;/SPAN&gt;hank you &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;for pointing the error in my code.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Really appreciate your help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 19:51:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/How-to-use-a-list-of-values-from-Excel-cell-in-Csv-Document/m-p/2814913#M87362</guid>
      <dc:creator>Gaby_Scarcella</dc:creator>
      <dc:date>2022-10-03T19:51:34Z</dc:date>
    </item>
  </channel>
</rss>

