<?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: Sum of hrs with filter condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-hrs-with-filter-condition/m-p/2296054#M56596</link>
    <description>&lt;P&gt;It's not working&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 17:13:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-01-21T17:13:39Z</dc:date>
    <item>
      <title>Sum of hrs with filter condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-hrs-with-filter-condition/m-p/2293446#M56454</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I want to sum StandByBeforeJobTime (hr) greater than 24&lt;/STRONG&gt;&lt;BR /&gt;The below graph should show only values if StandByBeforeJobTime (hr) is greater than 24&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;how to add this condition&lt;BR /&gt;these are the below dax which are used&lt;BR /&gt;StandByBeforeJobTime := DATEDIFF([ArrivedOnLocationTime],[RightUpTime],HOUR)&lt;BR /&gt;ArrivedOnLocationTime := Calculate( MIN(Event[event_date]),Event[event] = "Arivved on location"))&lt;BR /&gt;RightU&lt;SPAN&gt;pTime := Calculate( MIN(Event[event_date]),Event[event] = "Run Safety Briefing"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it was possible to create calculated column for StandByBeforeJobTime then&lt;BR /&gt;I would have just use Calculate(sum(StandByBeforeJobTime),StandByBeforeJobTime&amp;gt;24))&lt;BR /&gt;But I have used 2 different measures to find the hours&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is also not working&amp;nbsp;&lt;/P&gt;&lt;P&gt;measure = IF([StandByBeforeJobTime]&amp;gt;24,[StandByBeforeJobTime])&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 12:51:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-hrs-with-filter-condition/m-p/2293446#M56454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-20T12:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of hrs with filter condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-hrs-with-filter-condition/m-p/2293480#M56458</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You can create a "filter measure" and apply that to your visual.&lt;BR /&gt;E.g. Filter measure = IF([&lt;SPAN&gt;StandByBeforeJobTime]&amp;gt;24,1,0)&lt;BR /&gt;&lt;BR /&gt;Now place it on your visual like this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 13:02:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-hrs-with-filter-condition/m-p/2293480#M56458</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-20T13:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of hrs with filter condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-hrs-with-filter-condition/m-p/2296054#M56596</link>
      <description>&lt;P&gt;It's not working&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 17:13:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-hrs-with-filter-condition/m-p/2296054#M56596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-21T17:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of hrs with filter condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-hrs-with-filter-condition/m-p/2296079#M56599</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Could you elaborate what the issue is? Here is a more detailed example:&lt;BR /&gt;&lt;BR /&gt;Data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dax:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Filter measure jobs = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Jobtime[Jobtime]&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;20&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;End result:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 17:38:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-hrs-with-filter-condition/m-p/2296079#M56599</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-21T17:38:25Z</dc:date>
    </item>
  </channel>
</rss>

