<?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 Calculation of negative hours in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-of-negative-hours/m-p/3325527#M124522</link>
    <description>&lt;P&gt;I have a table of employees where I need to calculate the difference between predicted hours and actual hours. Taking into account that there can be negative hours (when the predicted time is greater than the actual time), how can I do a dax measurement to calculate this value without Power BI changing the time format?&lt;/P&gt;&lt;P&gt;In the case of the example, I would like to show: -19:33:57&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2023 14:44:54 GMT</pubDate>
    <dc:creator>pedromenu</dc:creator>
    <dc:date>2023-07-11T14:44:54Z</dc:date>
    <item>
      <title>Calculation of negative hours</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-of-negative-hours/m-p/3325527#M124522</link>
      <description>&lt;P&gt;I have a table of employees where I need to calculate the difference between predicted hours and actual hours. Taking into account that there can be negative hours (when the predicted time is greater than the actual time), how can I do a dax measurement to calculate this value without Power BI changing the time format?&lt;/P&gt;&lt;P&gt;In the case of the example, I would like to show: -19:33:57&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 14:44:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-of-negative-hours/m-p/3325527#M124522</guid>
      <dc:creator>pedromenu</dc:creator>
      <dc:date>2023-07-11T14:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation of negative hours</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-of-negative-hours/m-p/3325607#M124526</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="583551" data-lia-user-login="pedromenu" class="lia-mention lia-mention-user"&gt;pedromenu&lt;/a&gt;&amp;nbsp;Generally you will need to convert those to seconds, add/subtract them and essentially convert them back more or less. And use a custom format string to preserve the format. Sample source data would help here to be more specific.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at the links below, they should get you what you need.&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279#M92" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279#M92&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 15:06:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculation-of-negative-hours/m-p/3325607#M124526</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-07-11T15:06:35Z</dc:date>
    </item>
  </channel>
</rss>

