<?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 Summing calculated column based on IF condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-calculated-column-based-on-IF-condition/m-p/1918985#M41594</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I have two data sets merged into 1 by a join.&amp;nbsp;&lt;BR /&gt;in data set A I have complete data for forecast at volume and value level.&lt;BR /&gt;in data set B I only have the &lt;STRONG&gt;volumes only&lt;/STRONG&gt;&amp;nbsp;which are available for sales.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample data set:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to calculate the value of the constraint Forecast in value based on following:&lt;/P&gt;&lt;P&gt;- Blanks means the volume and value are same as the unconstraint forecast.&lt;/P&gt;&lt;P&gt;-&amp;nbsp;Value is calculated by dividing value by volume for each SKU. (i m using sumx formula to calculate the value for each line)&lt;/P&gt;&lt;P&gt;For instance for SKU 4, the &lt;STRONG&gt;constraint value&lt;/STRONG&gt; is 6000.&amp;nbsp;&lt;BR /&gt;And total constraint value across all SKUs is 187,600&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting following result when I view it SKU-wise. However, at the total level its not summing up unconstrained + constrained forecast value and just giving a sum of constrained value.&lt;BR /&gt;(not based on sample above)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would really appreciate if someone can help me out on calculating the correct&amp;nbsp;&lt;STRONG&gt;total constraint value!&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jun 2021 05:34:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-24T05:34:37Z</dc:date>
    <item>
      <title>Summing calculated column based on IF condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-calculated-column-based-on-IF-condition/m-p/1918985#M41594</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I have two data sets merged into 1 by a join.&amp;nbsp;&lt;BR /&gt;in data set A I have complete data for forecast at volume and value level.&lt;BR /&gt;in data set B I only have the &lt;STRONG&gt;volumes only&lt;/STRONG&gt;&amp;nbsp;which are available for sales.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample data set:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to calculate the value of the constraint Forecast in value based on following:&lt;/P&gt;&lt;P&gt;- Blanks means the volume and value are same as the unconstraint forecast.&lt;/P&gt;&lt;P&gt;-&amp;nbsp;Value is calculated by dividing value by volume for each SKU. (i m using sumx formula to calculate the value for each line)&lt;/P&gt;&lt;P&gt;For instance for SKU 4, the &lt;STRONG&gt;constraint value&lt;/STRONG&gt; is 6000.&amp;nbsp;&lt;BR /&gt;And total constraint value across all SKUs is 187,600&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting following result when I view it SKU-wise. However, at the total level its not summing up unconstrained + constrained forecast value and just giving a sum of constrained value.&lt;BR /&gt;(not based on sample above)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would really appreciate if someone can help me out on calculating the correct&amp;nbsp;&lt;STRONG&gt;total constraint value!&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 05:34:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-calculated-column-based-on-IF-condition/m-p/1918985#M41594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-24T05:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Summing calculated column based on IF condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-calculated-column-based-on-IF-condition/m-p/1919302#M41598</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN&gt;Try using this measure:&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Cumulative-total-of-measure-to-show-in-card/m-p/1906157#M41150" target="_self"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Cumulative-total-of-measure-to-show-in-card/m-p/1906157#M41150&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 07:25:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-calculated-column-based-on-IF-condition/m-p/1919302#M41598</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-06-24T07:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Summing calculated column based on IF condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-calculated-column-based-on-IF-condition/m-p/1920196#M41627</link>
      <description>&lt;P&gt;Hi Thanks, but this isnt working for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 14:03:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summing-calculated-column-based-on-IF-condition/m-p/1920196#M41627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-24T14:03:34Z</dc:date>
    </item>
  </channel>
</rss>

