<?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: Control de tiempos en estaciones de trabajo in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Control-de-tiempos-en-estaciones-de-trabajo/m-p/3959596#M153654</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="751741" data-lia-user-login="Aguspeisino" class="lia-mention lia-mention-user"&gt;Aguspeisino&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I create a table as you mentioned.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then I create a calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
VAR StartOfWork =
    TIME ( 7, 30, 0 )
VAR EndOfWork =
    TIME ( 16, 0, 0 )
VAR StartOfLunch =
    TIME ( 11, 30, 0 )
VAR EndOfLunch =
    TIME ( 12, 0, 0 )
VAR WorkDuration =
    DATEDIFF ( StartOfWork, EndOfWork, MINUTE )
VAR LunchDuration =
    DATEDIFF ( StartOfLunch, EndOfLunch, MINUTE )
VAR ActualStart =
    MAX ( StartOfWork, [StartTime] )
VAR ActualEnd =
    MIN ( EndOfWork, [EndTime] )
VAR TotalMinutes =
    DATEDIFF ( ActualStart, ActualEnd, MINUTE )
VAR ProductiveMinutes = TotalMinutes - LunchDuration
RETURN
    IF ( TotalMinutes &amp;gt; 0, ProductiveMinutes / 60, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2024 04:02:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-30T04:02:24Z</dc:date>
    <item>
      <title>Control de tiempos en estaciones de trabajo</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Control-de-tiempos-en-estaciones-de-trabajo/m-p/3958944#M153640</link>
      <description>&lt;P&gt;Hola!&lt;BR /&gt;Necesito realizar un informe sobre la productiviad unas estaciones de trabajo.&lt;/P&gt;&lt;P&gt;Mi problema es que hay dias que las estaciones arrancan un dia y terminan el otro, necesito encontar la forma de que no me sume el tiempo que esta fuera del horario laboral (horario laboral 7:30 am a 4:00pm), y a su vez que no me considere la media hora del almuerzo (11:30am a 12:00)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 20:01:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Control-de-tiempos-en-estaciones-de-trabajo/m-p/3958944#M153640</guid>
      <dc:creator>Aguspeisino</dc:creator>
      <dc:date>2024-05-29T20:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Control de tiempos en estaciones de trabajo</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Control-de-tiempos-en-estaciones-de-trabajo/m-p/3959596#M153654</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="751741" data-lia-user-login="Aguspeisino" class="lia-mention lia-mention-user"&gt;Aguspeisino&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I create a table as you mentioned.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then I create a calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
VAR StartOfWork =
    TIME ( 7, 30, 0 )
VAR EndOfWork =
    TIME ( 16, 0, 0 )
VAR StartOfLunch =
    TIME ( 11, 30, 0 )
VAR EndOfLunch =
    TIME ( 12, 0, 0 )
VAR WorkDuration =
    DATEDIFF ( StartOfWork, EndOfWork, MINUTE )
VAR LunchDuration =
    DATEDIFF ( StartOfLunch, EndOfLunch, MINUTE )
VAR ActualStart =
    MAX ( StartOfWork, [StartTime] )
VAR ActualEnd =
    MIN ( EndOfWork, [EndTime] )
VAR TotalMinutes =
    DATEDIFF ( ActualStart, ActualEnd, MINUTE )
VAR ProductiveMinutes = TotalMinutes - LunchDuration
RETURN
    IF ( TotalMinutes &amp;gt; 0, ProductiveMinutes / 60, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 04:02:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Control-de-tiempos-en-estaciones-de-trabajo/m-p/3959596#M153654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-30T04:02:24Z</dc:date>
    </item>
  </channel>
</rss>

