<?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: Help with DAX formula into loop in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-formula-into-loop/m-p/1869400#M40044</link>
    <description>&lt;P&gt;Thanks a lot, That's exactly what I want!!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 May 2021 08:27:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-28T08:27:14Z</dc:date>
    <item>
      <title>Help with DAX formula into loop</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-formula-into-loop/m-p/1869246#M40040</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a question about my power query DAX formula. Below is my SWITCH and I want to put this in a loop.&lt;BR /&gt;I want to constantly increase my loop by 2.5 because I have a lot of different values from 0 to 1000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Bedrag = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TRUE(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Order[Amount Order] &amp;gt;= 0 &amp;amp;&amp;amp; Order[Amount Order] &amp;lt; 5 , "&amp;lt; 5",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Order[Amount Order] &amp;gt;= 5.1 &amp;amp;&amp;amp; Order[Amount Order] &amp;lt;= 7.5, "5 - 7.5",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Order[Amount Order] &amp;gt;= 7.51 &amp;amp;&amp;amp; Order[Amount Order] &amp;lt;= 10, "7.51 - 10",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Order[Amount Order] &amp;gt;= 10.01 &amp;amp;&amp;amp; Order[Amount Order] &amp;lt;= 12.5, "10.01 - 12.5",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Order[Amount Order] &amp;gt;= 12.51 &amp;amp;&amp;amp; Order[Amount Order] &amp;lt;= 15, "12.51 - 15",Blank())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I can't figure it out myself, can someone help me.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank You!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 May 2021 07:25:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-formula-into-loop/m-p/1869246#M40040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-28T07:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX formula into loop</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-formula-into-loop/m-p/1869364#M40042</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if I understood your question correctly, but I suggest having a grouping table like below.&lt;/P&gt;&lt;P&gt;Please check the below picture and the sample pbix file's link down below.&lt;/P&gt;&lt;P&gt;I tried to create a sample pbix file based on the explanation. And the below type of grouping table is easy to create in excel and it can be imported into Power BI easily.&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;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;EM&gt;Qty Total by Group = &lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;SUMX (&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;FILTER (&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;VALUES ( Sales[Date] ),&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;COUNTROWS (&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;FILTER (&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;'Grouping',&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;[Qty Total] &amp;gt; 'Grouping'[Min]&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;amp;&amp;amp; [Qty Total] &amp;lt;= 'Grouping'[Max]&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;) &amp;gt; 0&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;),&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;[Qty Total]&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/s/n58wg8fknnmwohx/s110.pbix?dl=0" target="_self"&gt;https://www.dropbox.com/s/n58wg8fknnmwohx/s110.pbix?dl=0&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;Linkedin: linkedin.com/in/jihwankim1975/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;Twitter: twitter.com/Jihwan_JHKIM&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 May 2021 08:11:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-formula-into-loop/m-p/1869364#M40042</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-05-28T08:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX formula into loop</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-formula-into-loop/m-p/1869400#M40044</link>
      <description>&lt;P&gt;Thanks a lot, That's exactly what I want!!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 08:27:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-formula-into-loop/m-p/1869400#M40044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-28T08:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX formula into loop</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-formula-into-loop/m-p/1869935#M40051</link>
      <description>&lt;P&gt;Hi Jihwan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that my analysis is not quite consistent with what you sent, but we are almost there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data I have:&lt;BR /&gt;I have orders with a total order amount. Now they want to have the number of orders that fall into the categories 0 - 2.50, 2.51 - 5, et cetera. So what I have to do is count the number of orders which is between the amounts 0 - 2.50 et cetera.&lt;BR /&gt;Your answer is very similar to my question, but I get to see the sum of the total amount. I actually need the sum of all the orders in the different categories.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't quite understand the second table you sent me.&lt;/P&gt;&lt;P&gt;I see in the right table that there is only 1 order with a qty of 5 and your analysis there are 5.&lt;BR /&gt;I see there is only 1 qty of 12 and your analysis there are 12.&lt;BR /&gt;between 12.5 and 15 I only see 2 and your analysis there are 28.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you understand what I mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thans for you answer!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 12:12:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-formula-into-loop/m-p/1869935#M40051</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-28T12:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX formula into loop</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-formula-into-loop/m-p/1870017#M40055</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is OK with you, please share your sample pbix file's link here, together with the desired outcome that you want to see. Then I can try to look into it to come up with a more accurate measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 12:46:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-formula-into-loop/m-p/1870017#M40055</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-05-28T12:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX formula into loop</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-formula-into-loop/m-p/1870230#M40076</link>
      <description>&lt;P&gt;Ps. remove relation&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/tp9lrpcf6uukzo0/PowerBiToCommunityQuestion.pbix?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/tp9lrpcf6uukzo0/PowerBiToCommunityQuestion.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 14:16:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-formula-into-loop/m-p/1870230#M40076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-28T14:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX formula into loop</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-formula-into-loop/m-p/1870335#M40087</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for sharing.&lt;/P&gt;&lt;P&gt;Sorry that I quite do not understand.&lt;/P&gt;&lt;P&gt;I see that 0 &amp;lt;= &amp;lt;=5 : count of orders =&amp;gt; 36&lt;/P&gt;&lt;P&gt;but your desired outcome seems to show a different number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 14:57:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-formula-into-loop/m-p/1870335#M40087</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-05-28T14:57:56Z</dc:date>
    </item>
  </channel>
</rss>

