<?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 Need a help with multiple condition &amp;amp; SQRT Formula in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-help-with-multiple-condition-amp-SQRT-Formula/m-p/4067621#M161480</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate Forecasted stock gross based on weeks and week diff and here is what I have wrote. Any one confirm if it is correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Forecast Stock Gross = &lt;/SPAN&gt;&lt;SPAN&gt;IFERROR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;([Bought Gross],&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(Dim_WK,Dim_WK[week_full_no] &amp;gt;= Dim_WK[Launching week])) || &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;power&lt;/SPAN&gt;&lt;SPAN&gt;([Closing week diff],[Bought Gross]*(&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;-[Speed Plan])),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(Dim_WK,Dim_WK[week_full_no] &amp;gt; Dim_WK[Closing week])) || &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;POWER&lt;/SPAN&gt;&lt;SPAN&gt;([Closing week diff],[Stock gross]*(&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;-[Speed Plan])),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(Dim_WK,Dim_WK[week_full_no]=Dim_WK[Closing week])),&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Basically, in excel&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If (current week &amp;gt;= launching week, then sum bought gross,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if current week &amp;gt; closing week, then bought gross*(1-speed plan)&amp;nbsp;^ closing week diff,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If current week = closing week, then stock gross*(1-speed plan)^closing week diff, "")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;There was no error with my dax but I see result is blank.... could you help me here?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 29 Jul 2024 18:51:11 GMT</pubDate>
    <dc:creator>JIN23</dc:creator>
    <dc:date>2024-07-29T18:51:11Z</dc:date>
    <item>
      <title>Need a help with multiple condition &amp; SQRT Formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-help-with-multiple-condition-amp-SQRT-Formula/m-p/4067621#M161480</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate Forecasted stock gross based on weeks and week diff and here is what I have wrote. Any one confirm if it is correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Forecast Stock Gross = &lt;/SPAN&gt;&lt;SPAN&gt;IFERROR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;([Bought Gross],&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(Dim_WK,Dim_WK[week_full_no] &amp;gt;= Dim_WK[Launching week])) || &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;power&lt;/SPAN&gt;&lt;SPAN&gt;([Closing week diff],[Bought Gross]*(&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;-[Speed Plan])),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(Dim_WK,Dim_WK[week_full_no] &amp;gt; Dim_WK[Closing week])) || &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;POWER&lt;/SPAN&gt;&lt;SPAN&gt;([Closing week diff],[Stock gross]*(&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;-[Speed Plan])),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(Dim_WK,Dim_WK[week_full_no]=Dim_WK[Closing week])),&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Basically, in excel&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If (current week &amp;gt;= launching week, then sum bought gross,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if current week &amp;gt; closing week, then bought gross*(1-speed plan)&amp;nbsp;^ closing week diff,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If current week = closing week, then stock gross*(1-speed plan)^closing week diff, "")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;There was no error with my dax but I see result is blank.... could you help me here?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Jul 2024 18:51:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-help-with-multiple-condition-amp-SQRT-Formula/m-p/4067621#M161480</guid>
      <dc:creator>JIN23</dc:creator>
      <dc:date>2024-07-29T18:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help with multiple condition &amp; SQRT Formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-help-with-multiple-condition-amp-SQRT-Formula/m-p/4068227#M161505</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770685" data-lia-user-login="JIN23" class="lia-mention lia-mention-user"&gt;JIN23&lt;/a&gt;&amp;nbsp;, Try using below mentioned measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Forecast Stock Gross = &lt;BR /&gt;IF(&lt;BR /&gt;MAX(Dim_WK[week_full_no]) &amp;gt;= MAX(Dim_WK[Launching week]),&lt;BR /&gt;CALCULATE(SUM([Bought Gross]), FILTER(Dim_WK, Dim_WK[week_full_no] &amp;gt;= Dim_WK[Launching week])),&lt;BR /&gt;IF(&lt;BR /&gt;MAX(Dim_WK[week_full_no]) &amp;gt; MAX(Dim_WK[Closing week]),&lt;BR /&gt;CALCULATE(POWER([Closing week diff], [Bought Gross] * (1 - [Speed Plan])), FILTER(Dim_WK, Dim_WK[week_full_no] &amp;gt; Dim_WK[Closing week])),&lt;BR /&gt;IF(&lt;BR /&gt;MAX(Dim_WK[week_full_no]) = MAX(Dim_WK[Closing week]),&lt;BR /&gt;CALCULATE(POWER([Closing week diff], [Stock gross] * (1 - [Speed Plan])), FILTER(Dim_WK, Dim_WK[week_full_no] = Dim_WK[Closing week])),&lt;BR /&gt;BLANK()&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 05:06:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-help-with-multiple-condition-amp-SQRT-Formula/m-p/4068227#M161505</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-07-30T05:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help with multiple condition &amp; SQRT Formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-help-with-multiple-condition-amp-SQRT-Formula/m-p/4068552#M161520</link>
      <description>&lt;P&gt;Thanks soo much. It is working. But just two questions!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1, Max function: What is the reason to put Max function to the week? is it the function to bring dimension to the condition? If I select several weeks, it does impact any other calculation? Just wondering if I select multiple weeks at filter, if it breaks the calculation result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Power: If I want 3^2 = 9&amp;nbsp; Power(2,3) is correct or Power(3,2) is correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JIN&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 07:26:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-help-with-multiple-condition-amp-SQRT-Formula/m-p/4068552#M161520</guid>
      <dc:creator>JIN23</dc:creator>
      <dc:date>2024-07-30T07:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help with multiple condition &amp; SQRT Formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-help-with-multiple-condition-amp-SQRT-Formula/m-p/4068565#M161522</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770685" data-lia-user-login="JIN23" class="lia-mention lia-mention-user"&gt;JIN23&lt;/a&gt;&amp;nbsp;The MAX function is used to ensure that you are comparing the highest value of the week-related columns (week_full_no, Launching week, Closing week) within the current filter context. This is particularly useful when you have multiple weeks selected in your filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3^2 = 9 It is in this format 3 raised to power of 2&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 07:32:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-help-with-multiple-condition-amp-SQRT-Formula/m-p/4068565#M161522</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-07-30T07:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need a help with multiple condition &amp; SQRT Formula</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-help-with-multiple-condition-amp-SQRT-Formula/m-p/4068632#M161534</link>
      <description>&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry. I am very beginner!! hahaha&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I need to aggregate up in the right level, not to only fetching max weeks when I select multiple weeks, is there any formula I can use instead of Max?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like. If result was&lt;/P&gt;&lt;P&gt;W23 = 1000&lt;/P&gt;&lt;P&gt;W24 = 1100&lt;/P&gt;&lt;P&gt;Total is 2200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But with current Max the total result is only 1100.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 08:06:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-help-with-multiple-condition-amp-SQRT-Formula/m-p/4068632#M161534</guid>
      <dc:creator>JIN23</dc:creator>
      <dc:date>2024-07-30T08:06:55Z</dc:date>
    </item>
  </channel>
</rss>

