<?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 Calculate new column based on condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-new-column-based-on-condition/m-p/1926619#M41787</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset as below (left) and I need to add another column (right) based on this condition:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Sum of all ACT value and first subsequent FC from column ACT_FC.&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Would really appreciate if someone can help me out on creating this calaulated column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jun 2021 20:18:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-28T20:18:00Z</dc:date>
    <item>
      <title>Calculate new column based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-new-column-based-on-condition/m-p/1926619#M41787</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset as below (left) and I need to add another column (right) based on this condition:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Sum of all ACT value and first subsequent FC from column ACT_FC.&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Would really appreciate if someone can help me out on creating this calaulated column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 20:18:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-new-column-based-on-condition/m-p/1926619#M41787</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-28T20:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate new column based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-new-column-based-on-condition/m-p/1927402#M41811</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try a new column like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;new column = &lt;BR /&gt;var _min = minx(filter(Table, Table[ACT_FC] = "ACT"), [Period])&lt;BR /&gt;var _vol = Sumx(filter(Table, Table[ACT_FC] = "ACT"), [VOlume])&lt;BR /&gt;var _minFC = minx(filter(Table, Table[ACT_FC] = "FC"), [Period])&lt;BR /&gt;return &lt;BR /&gt;if( [Period] = _min , Sumx(filter(Table, Table[ACT_FC] = "ACT"), [VOlume]) + Sumx(filter(Table, Table[ACT_FC] = "FC" &amp;amp;&amp;amp; [Period] = _minFC), [VOlume]), blank())&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 07:17:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-new-column-based-on-condition/m-p/1927402#M41811</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-06-29T07:17:35Z</dc:date>
    </item>
  </channel>
</rss>

