<?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 Loop function in PowerBI Report Builder Table Expression in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Loop-function-in-PowerBI-Report-Builder-Table-Expression/m-p/2449059#M35460</link>
    <description>&lt;P&gt;Hi, I am wondering if there is an option to create a loop in the Report builder table field Expression based on textBox value:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expression.PNG" style="width: 670px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/697832iA02963F5342415F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Expression.PNG" alt="Expression.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to compare column by column to find first with a value less than 0. If there is a column with a value less than 0 then do the calculation.&lt;/P&gt;&lt;P&gt;The variable would be the number of the TextBox incremented by 2:&lt;/P&gt;&lt;P&gt;ReportItems("Textbox&lt;STRONG&gt;"variable"&lt;/STRONG&gt;").value &amp;lt; 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result would be date&amp;nbsp;&lt;/P&gt;&lt;P&gt;FORMATDATETIME(DATEADD("d","Variable2",today()),DateFormat.ShortDate)&lt;/P&gt;&lt;P&gt;where variable2 is starting from 0&amp;nbsp;and each time it passes through loop it adds 1&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2022 09:24:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-11T09:24:23Z</dc:date>
    <item>
      <title>Loop function in PowerBI Report Builder Table Expression</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Loop-function-in-PowerBI-Report-Builder-Table-Expression/m-p/2449059#M35460</link>
      <description>&lt;P&gt;Hi, I am wondering if there is an option to create a loop in the Report builder table field Expression based on textBox value:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expression.PNG" style="width: 670px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/697832iA02963F5342415F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Expression.PNG" alt="Expression.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to compare column by column to find first with a value less than 0. If there is a column with a value less than 0 then do the calculation.&lt;/P&gt;&lt;P&gt;The variable would be the number of the TextBox incremented by 2:&lt;/P&gt;&lt;P&gt;ReportItems("Textbox&lt;STRONG&gt;"variable"&lt;/STRONG&gt;").value &amp;lt; 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result would be date&amp;nbsp;&lt;/P&gt;&lt;P&gt;FORMATDATETIME(DATEADD("d","Variable2",today()),DateFormat.ShortDate)&lt;/P&gt;&lt;P&gt;where variable2 is starting from 0&amp;nbsp;and each time it passes through loop it adds 1&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 09:24:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Loop-function-in-PowerBI-Report-Builder-Table-Expression/m-p/2449059#M35460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-11T09:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Loop function in PowerBI Report Builder Table Expression</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Loop-function-in-PowerBI-Report-Builder-Table-Expression/m-p/2456977#M35547</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can try &lt;A href="https://docs.microsoft.com/en-us/sql/reporting-services/report-design/expression-examples-report-builder-and-ssrs?view=sql-server-ver15#DecisionFunctions" target="_self"&gt;IIF()&lt;/A&gt; function to calculate in loop.&lt;/P&gt;
&lt;P&gt;For reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/64235560/report-builder-nested-if-statements-with-multiple-values-to-categorize" target="_self"&gt;Report Builder- Nested If Statements with Multiple Values to Categorize&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 09:44:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Loop-function-in-PowerBI-Report-Builder-Table-Expression/m-p/2456977#M35547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-14T09:44:20Z</dc:date>
    </item>
  </channel>
</rss>

