<?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 Measure with IF Statement in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Measure-with-IF-Statement/m-p/4001897#M155969</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'd like to create a measure that counts all the occurrences of "1" in a table (column "Status").&lt;/SPAN&gt;&lt;SPAN&gt; This will be used to visualize the data in a chart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Current Measures:&lt;/P&gt;&lt;P&gt;- eLen price = CALCULATE(Min('CEN'[Price]),CEN[Reseller]="eLen ")&lt;BR /&gt;- Min price = MIN(CEN[Price])&lt;BR /&gt;- Status = IF([eLen price] = [Min price],1,0)&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;</description>
    <pubDate>Thu, 20 Jun 2024 11:58:52 GMT</pubDate>
    <dc:creator>harry6810</dc:creator>
    <dc:date>2024-06-20T11:58:52Z</dc:date>
    <item>
      <title>Calculate Measure with IF Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Measure-with-IF-Statement/m-p/4001897#M155969</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'd like to create a measure that counts all the occurrences of "1" in a table (column "Status").&lt;/SPAN&gt;&lt;SPAN&gt; This will be used to visualize the data in a chart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Current Measures:&lt;/P&gt;&lt;P&gt;- eLen price = CALCULATE(Min('CEN'[Price]),CEN[Reseller]="eLen ")&lt;BR /&gt;- Min price = MIN(CEN[Price])&lt;BR /&gt;- Status = IF([eLen price] = [Min price],1,0)&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;</description>
      <pubDate>Thu, 20 Jun 2024 11:58:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Measure-with-IF-Statement/m-p/4001897#M155969</guid>
      <dc:creator>harry6810</dc:creator>
      <dc:date>2024-06-20T11:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Measure with IF Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Measure-with-IF-Statement/m-p/4002028#M155991</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291478" data-lia-user-login="harry6810" class="lia-mention lia-mention-user"&gt;harry6810&lt;/a&gt;&amp;nbsp;, Try using below measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Count of Ones =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;COUNTROWS(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FILTER(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'YourTableName',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'YourTableName'[Status] = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 13:01:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Measure-with-IF-Statement/m-p/4002028#M155991</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-06-20T13:01:12Z</dc:date>
    </item>
  </channel>
</rss>

