<?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 report replication to calculate duration (mins) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/report-replication-to-calculate-duration-mins/m-p/1623650#M32797</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;, Thanks for your previous input to my question. I want to replicate the following report by calculating the duration (mins) between start time and end time. I have an alarmStatus ON and OFF which will determine when the alarm started and ended. I have attached a pbix file for clarity. If the datetime is sorted in asc order the alarms are sorted in order.&amp;nbsp;&amp;nbsp;&lt;img /&gt;&lt;img /&gt;&lt;A title="power bi report" href="https://drive.google.com/drive/u/1/folders/1i4s8ro3CsdpR6OAcvZbJdNaS_WqJ6bFG" target="_self"&gt;powerBI report pbix file&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 13:34:11 GMT</pubDate>
    <dc:creator>Brighton10</dc:creator>
    <dc:date>2021-01-26T13:34:11Z</dc:date>
    <item>
      <title>report replication to calculate duration (mins)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/report-replication-to-calculate-duration-mins/m-p/1623650#M32797</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;, Thanks for your previous input to my question. I want to replicate the following report by calculating the duration (mins) between start time and end time. I have an alarmStatus ON and OFF which will determine when the alarm started and ended. I have attached a pbix file for clarity. If the datetime is sorted in asc order the alarms are sorted in order.&amp;nbsp;&amp;nbsp;&lt;img /&gt;&lt;img /&gt;&lt;A title="power bi report" href="https://drive.google.com/drive/u/1/folders/1i4s8ro3CsdpR6OAcvZbJdNaS_WqJ6bFG" target="_self"&gt;powerBI report pbix file&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 13:34:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/report-replication-to-calculate-duration-mins/m-p/1623650#M32797</guid>
      <dc:creator>Brighton10</dc:creator>
      <dc:date>2021-01-26T13:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: report replication to calculate duration (mins)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/report-replication-to-calculate-duration-mins/m-p/1623729#M32800</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="282096" data-lia-user-login="Brighton10" class="lia-mention lia-mention-user"&gt;Brighton10&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The file requires logging in for downloading. Can you remove the requirement or otherwise host it elsewhere?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&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>Tue, 26 Jan 2021 14:03:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/report-replication-to-calculate-duration-mins/m-p/1623729#M32800</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2021-01-26T14:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: report replication to calculate duration (mins)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/report-replication-to-calculate-duration-mins/m-p/1623749#M32801</link>
      <description>&lt;P&gt;&lt;A title="powerbi" href="https://drive.google.com/drive/folders/1i4s8ro3CsdpR6OAcvZbJdNaS_WqJ6bFG?usp=sharing" target="_self"&gt;https://drive.google.com/drive/folders/1i4s8ro3CsdpR6OAcvZbJdNaS_WqJ6bFG?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 14:09:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/report-replication-to-calculate-duration-mins/m-p/1623749#M32801</guid>
      <dc:creator>Brighton10</dc:creator>
      <dc:date>2021-01-26T14:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: report replication to calculate duration (mins)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/report-replication-to-calculate-duration-mins/m-p/1623922#M32806</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="282096" data-lia-user-login="Brighton10" class="lia-mention lia-mention-user"&gt;Brighton10&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One option would be to create an additional calculated column Start Time&amp;nbsp; that can&amp;nbsp; be used as reference in the visual and then the measures. See it all at work in the attached file. Note I have eliminated the date hierarchy.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&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>Tue, 26 Jan 2021 15:22:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/report-replication-to-calculate-duration-mins/m-p/1623922#M32806</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2021-01-26T15:22:17Z</dc:date>
    </item>
  </channel>
</rss>

