<?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 Different Calculation Based on Value In Column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Calculation-Based-on-Value-In-Column/m-p/1461308#M27565</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measures table that contains the below columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KPI Name&lt;/P&gt;&lt;P&gt;Numerator&lt;/P&gt;&lt;P&gt;Denominator&lt;/P&gt;&lt;P&gt;IsRate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a single Measure in Power BI that calculates a summarized value based on the value in IsRate. For example, if the value in IsRate = 'No', I would like to use SUM(Numerator). And if the value in&amp;nbsp;IsRate = 'Yes', I would like to use SUM(Numerator)/SUM(Denominator).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried multiple ways to do this but I can't get the syntax to work.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2020 15:43:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-10-28T15:43:33Z</dc:date>
    <item>
      <title>Different Calculation Based on Value In Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Calculation-Based-on-Value-In-Column/m-p/1461308#M27565</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measures table that contains the below columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KPI Name&lt;/P&gt;&lt;P&gt;Numerator&lt;/P&gt;&lt;P&gt;Denominator&lt;/P&gt;&lt;P&gt;IsRate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a single Measure in Power BI that calculates a summarized value based on the value in IsRate. For example, if the value in IsRate = 'No', I would like to use SUM(Numerator). And if the value in&amp;nbsp;IsRate = 'Yes', I would like to use SUM(Numerator)/SUM(Denominator).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried multiple ways to do this but I can't get the syntax to work.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 15:43:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Calculation-Based-on-Value-In-Column/m-p/1461308#M27565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-28T15:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Different Calculation Based on Value In Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Calculation-Based-on-Value-In-Column/m-p/1461341#M27567</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , try like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sumx(Table, if(Table[IsRate] = "No", SUM(Table[Numerator]),SUM(Table[Numerator])/SUM(Table[Denominator]))&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;if(max(Table[IsRate]) = "No", SUM(Table[Numerator]),SUM(Table[Numerator])/SUM(Table[Denominator]))&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 15:55:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Calculation-Based-on-Value-In-Column/m-p/1461341#M27567</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-10-28T15:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Different Calculation Based on Value In Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Calculation-Based-on-Value-In-Column/m-p/1461344#M27568</link>
      <description>Are you using IsRate in a slicer and based on its selection you want to change the calculation of the measure?</description>
      <pubDate>Wed, 28 Oct 2020 15:56:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Calculation-Based-on-Value-In-Column/m-p/1461344#M27568</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2020-10-28T15:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Different Calculation Based on Value In Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Calculation-Based-on-Value-In-Column/m-p/1461570#M27579</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;That worked. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 17:01:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-Calculation-Based-on-Value-In-Column/m-p/1461570#M27579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-28T17:01:52Z</dc:date>
    </item>
  </channel>
</rss>

