<?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 Re: Calculation with true/ false statment in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-with-true-false-statment/m-p/2495201#M68804</link>
    <description>&lt;P&gt;Hey, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&amp;nbsp; thank you very much!&lt;BR /&gt;&lt;BR /&gt;I got to resolve that before you reply to me but in a different way. However, your solution is way cleaner than mine. lol&lt;BR /&gt;&lt;BR /&gt;Would you mind helping me to figure now how to get the duration sum by obeying the same rules as before?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2022 07:07:41 GMT</pubDate>
    <dc:creator>nelson777</dc:creator>
    <dc:date>2022-05-05T07:07:41Z</dc:date>
    <item>
      <title>Calculation with true/ false statment</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-with-true-false-statment/m-p/2494912#M68795</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have a measure with a condition that returns me 1 for TRUE and 0 for FALSE.&lt;/P&gt;&lt;P&gt;What do I do, to sum up, all the 1 (True) results?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The condition works with this logic: if the amount of alerts is greater or equal to the number of devices, so it will count as 1.&lt;/P&gt;&lt;P&gt;then, my right outcome in the below example would be 2 as a result of the "Measure"&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, 05 May 2022 05:19:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-with-true-false-statment/m-p/2494912#M68795</guid>
      <dc:creator>nelson777</dc:creator>
      <dc:date>2022-05-05T05:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation with true/ false statment</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-with-true-false-statment/m-p/2495125#M68801</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="339565" data-lia-user-login="nelson777" class="lia-mention lia-mention-user"&gt;nelson777&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You may try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Measure1 =
SUMX (
    VALUES ( d_time[Hour Num] ),
    CALCULATE (
        VAR Client =
            MAX ( d_clients[Client Full Name] )
        VAR devices_per_client =
            CALCULATE (
                DISTINCTCOUNT ( d_devices[Device] ),
                d_clients[Client Full Name] = Client
            )
        VAR Alerts =
            CALCULATE ( [Alerts], VALUES ( f_alerts[Start Date] ) )
        VAR Tag =
            IF ( Alerts &amp;gt;= devices_per_client, 1, 0 )
        RETURN
            Tag
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 May 2022 06:50:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-with-true-false-statment/m-p/2495125#M68801</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-05T06:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation with true/ false statment</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-with-true-false-statment/m-p/2495201#M68804</link>
      <description>&lt;P&gt;Hey, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&amp;nbsp; thank you very much!&lt;BR /&gt;&lt;BR /&gt;I got to resolve that before you reply to me but in a different way. However, your solution is way cleaner than mine. lol&lt;BR /&gt;&lt;BR /&gt;Would you mind helping me to figure now how to get the duration sum by obeying the same rules as before?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 07:07:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-with-true-false-statment/m-p/2495201#M68804</guid>
      <dc:creator>nelson777</dc:creator>
      <dc:date>2022-05-05T07:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation with true/ false statment</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-with-true-false-statment/m-p/2495242#M68806</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="339565" data-lia-user-login="nelson777" class="lia-mention lia-mention-user"&gt;nelson777&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Sure.&lt;BR /&gt;What is the code for duration?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 07:20:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-with-true-false-statment/m-p/2495242#M68806</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-05T07:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation with true/ false statment</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-with-true-false-statment/m-p/2495353#M68815</link>
      <description>&lt;P&gt;I worked it out. Thanks very much!!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 07:54:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-with-true-false-statment/m-p/2495353#M68815</guid>
      <dc:creator>nelson777</dc:creator>
      <dc:date>2022-05-05T07:54:37Z</dc:date>
    </item>
  </channel>
</rss>

