<?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: Generate a loop in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1750979#M688317</link>
    <description>&lt;DIV&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="260975" data-lia-user-login="v-robertq-msft" class="lia-mention lia-mention-user"&gt;v-robertq-msft&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What we want is to return a composite list with some rows of the lletra column. These rows will be all those that fulfill the condition that we have put. In this particular case it should return us: C and E.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Xavi&lt;/DIV&gt;</description>
    <pubDate>Mon, 29 Mar 2021 07:02:21 GMT</pubDate>
    <dc:creator>XaviOV</dc:creator>
    <dc:date>2021-03-29T07:02:21Z</dc:date>
    <item>
      <title>Generate a loop</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1742230#M685815</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to generate a loop like this with the following information:&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;list=[]&lt;/P&gt;&lt;P&gt;i=1&lt;BR /&gt;while i&amp;lt;5:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if #pallets[i]&amp;lt;#huecos[i]:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;list=list+LETRA[i]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; i=i+1&lt;/P&gt;&lt;P&gt;return list&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 10:38:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1742230#M685815</guid>
      <dc:creator>XaviOV</dc:creator>
      <dc:date>2021-03-24T10:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a loop</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1742276#M685827</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215818" data-lia-user-login="XaviOV" class="lia-mention lia-mention-user"&gt;XaviOV&lt;/a&gt; ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 11:00:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1742276#M685827</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-03-24T11:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a loop</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1742388#M685840</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;There is a screen shot.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Xavi&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 11:23:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1742388#M685840</guid>
      <dc:creator>XaviOV</dc:creator>
      <dc:date>2021-03-24T11:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a loop</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1742609#M685897</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215818" data-lia-user-login="XaviOV" class="lia-mention lia-mention-user"&gt;XaviOV&lt;/a&gt; , Still not clear.&amp;nbsp; You create first column using generateseries , rest need to come from that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;generateseries(1,5)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/generateseries-function" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/generateseries-function&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 12:41:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1742609#M685897</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-03-24T12:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a loop</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1742926#M686001</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I want transalate this formula to DAX&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;list=[]&lt;/P&gt;&lt;P&gt;i=1&lt;BR /&gt;while i&amp;lt;5:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if #pallets[i]&amp;lt;#huecos[i]:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;list=list+LETRA[i]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; i=i+1&lt;/P&gt;&lt;P&gt;return list&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Xavi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 14:45:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1742926#M686001</guid>
      <dc:creator>XaviOV</dc:creator>
      <dc:date>2021-03-24T14:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a loop</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1747423#M687269</link>
      <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215818" data-lia-user-login="XaviOV" class="lia-mention lia-mention-user"&gt;XaviOV&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your IF formula, I can’t clearly understand what you want to get. I’m wondering what does “LETRA[i]” mean? Because the column [LETRA] is “Text” type and it can’t be used to calculate with a number. Would you like to add a column to display your expected result manually?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 08:36:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1747423#M687269</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2021-03-26T08:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a loop</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1750979#M688317</link>
      <description>&lt;DIV&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="260975" data-lia-user-login="v-robertq-msft" class="lia-mention lia-mention-user"&gt;v-robertq-msft&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What we want is to return a composite list with some rows of the lletra column. These rows will be all those that fulfill the condition that we have put. In this particular case it should return us: C and E.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Xavi&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Mar 2021 07:02:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1750979#M688317</guid>
      <dc:creator>XaviOV</dc:creator>
      <dc:date>2021-03-29T07:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a loop</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1753160#M688923</link>
      <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="215818" data-lia-user-login="XaviOV" class="lia-mention lia-mention-user"&gt;XaviOV&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your follow-up, I can understand your logic now, I think you can achieve this using the calculated table in Power BI, you can try my step:&lt;/P&gt;
&lt;P&gt;Go to the table tool, create a new table like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;List =

SELECTCOLUMNS(

    FILTER(ALL('Table'),[#pallets]&amp;lt;[#huecos]),

    "LETRA",[LETRA])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can get the expected list:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The list will also be updated with the change of the dataset.&lt;/P&gt;
&lt;P&gt;You can download my test pbix file &lt;A href="https://qiuyunus-my.sharepoint.com/:u:/g/personal/xiaoxin_qiuyunus_onmicrosoft_com/EfZb2s6k-J1Hk1LFLH-hWE0BKjOaPv0kGiuc9k5-VmHxaQ?e=4bSh3l" target="_blank"&gt;here&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&amp;nbsp;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Robert Qin&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 02:39:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Generate-a-loop/m-p/1753160#M688923</guid>
      <dc:creator>v-robertq-msft</dc:creator>
      <dc:date>2021-03-30T02:39:20Z</dc:date>
    </item>
  </channel>
</rss>

