<?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: Calcular tempo total e media de atendimento por loja e por atendente in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calcular-tempo-total-e-media-de-atendimento-por-loja-e-por/m-p/3384508#M127515</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511595" data-lia-user-login="Silvio_Carneiro" class="lia-mention lia-mention-user"&gt;Silvio_Carneiro&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) This is my test data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2) We can create a calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;time_min = DATEDIFF('Table'[Start_Attend],'Table'[End_Attend],MINUTE)&lt;/LI-CODE&gt;
&lt;P&gt;(3)We can create measures.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sum of attendance = CALCULATE(DISTINCTCOUNT('Table'[Login_Ad]),FILTER(ALL('Table'),'Table'[NomAgencia]=MAX('Table'[NomAgencia])))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;average time (min) = 
var _a=CALCULATE(SUM('Table'[time_min]),FILTER(ALL('Table'),'Table'[NomAgencia]=MAX('Table'[NomAgencia])))
return DIVIDE(_a,[sum of attendance],0)&lt;/LI-CODE&gt;
&lt;P&gt;(4) Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your tables (&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;) with&amp;nbsp;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2023 07:02:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-17T07:02:28Z</dc:date>
    <item>
      <title>Calcular tempo total e media de atendimento por loja e por atendente</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calcular-tempo-total-e-media-de-atendimento-por-loja-e-por/m-p/3382796#M127468</link>
      <description>&lt;P&gt;Bom dia,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tenho um Power BI onde possuo as colunas NomAgencia e Login_Ad (atendentes), elas sao texto normal&lt;BR /&gt;Tenho as colunas &lt;FONT color="#008000"&gt;Inicio_Aten, Fim_Atend, Tempo_Atend&lt;/FONT&gt;.&amp;nbsp;Essas Colunas são em horas, minutos e segundos.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Quando tento extrair o tempo médio e soma de atendimento, o Power BI nao extraí corretamente. COm isso não consigo calcular a média e tempo total das lojas e dos atendentes.&lt;BR /&gt;&lt;BR /&gt;Como consigo resolver isso? Quais medidas (códigos) eu consigo fazer?&lt;BR /&gt;No excel era fácil.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 13:03:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calcular-tempo-total-e-media-de-atendimento-por-loja-e-por/m-p/3382796#M127468</guid>
      <dc:creator>Silvio_Carneiro</dc:creator>
      <dc:date>2023-08-16T13:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calcular tempo total e media de atendimento por loja e por atendente</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calcular-tempo-total-e-media-de-atendimento-por-loja-e-por/m-p/3384508#M127515</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511595" data-lia-user-login="Silvio_Carneiro" class="lia-mention lia-mention-user"&gt;Silvio_Carneiro&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) This is my test data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2) We can create a calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;time_min = DATEDIFF('Table'[Start_Attend],'Table'[End_Attend],MINUTE)&lt;/LI-CODE&gt;
&lt;P&gt;(3)We can create measures.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sum of attendance = CALCULATE(DISTINCTCOUNT('Table'[Login_Ad]),FILTER(ALL('Table'),'Table'[NomAgencia]=MAX('Table'[NomAgencia])))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;average time (min) = 
var _a=CALCULATE(SUM('Table'[time_min]),FILTER(ALL('Table'),'Table'[NomAgencia]=MAX('Table'[NomAgencia])))
return DIVIDE(_a,[sum of attendance],0)&lt;/LI-CODE&gt;
&lt;P&gt;(4) Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your tables (&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;) with&amp;nbsp;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 07:02:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calcular-tempo-total-e-media-de-atendimento-por-loja-e-por/m-p/3384508#M127515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-17T07:02:28Z</dc:date>
    </item>
  </channel>
</rss>

