<?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: Power BI - SUM or Calculate??? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SUM-or-Calculate/m-p/245250#M293</link>
    <description>&lt;P&gt;Boa tarde...&lt;BR /&gt;Estou montando um BI com média de permanência na fábrica. Quero medir o tempo que veículos ficam para descarregar.&lt;BR /&gt;Já montei toda a estrutura mas estou com dificuldade na configuração do eixo Y. Não consigo configurar para mostrar hh:mm.&lt;BR /&gt;Teria alguma dica para resolver?&lt;/P&gt;</description>
    <pubDate>Mon, 04 Sep 2017 15:37:46 GMT</pubDate>
    <dc:creator>meguefa</dc:creator>
    <dc:date>2017-09-04T15:37:46Z</dc:date>
    <item>
      <title>Power BI - SUM or Calculate???</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SUM-or-Calculate/m-p/63307#M55</link>
      <description>&lt;P&gt;preciso de uma ajuda no power BI em uma soma condicional.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tenho 01 tabela (gigante) com datas de voos x nome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Já fiz a soma (qt) de voos por ano, e tenho uma franquia anual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Agora preciso calcular a quantidade de voos que ultrapassaram a franquia anual em um período maior, mas o power bi não está procedendo com esta conta.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fiz uma MEDIDA usando IF, e, qd passo para a tabela no relatório, tenho:&lt;/P&gt;&lt;P&gt;- quantidades anuais (voos e extra-franquia) corretas (ano a ano dá o resultado desejado)&lt;/P&gt;&lt;P&gt;- quantidade no TOTAL do período INCORRETA, pois o BI calcula a franquia como um TODO, e não por período&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ** exemplo:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;se franquia anual = 1.000 voos&lt;/LI&gt;&lt;LI&gt;realizados:&lt;UL&gt;&lt;LI&gt;ano 1= 500&lt;/LI&gt;&lt;LI&gt;ano 2 =1.500&amp;nbsp; =&amp;gt; extra-franquia = 500&lt;/LI&gt;&lt;LI&gt;ano 3 = 2.000 =&amp;gt; extra-franquia = 1.000&lt;/LI&gt;&lt;LI&gt;ano 4 = 100&lt;/LI&gt;&lt;LI&gt;ano 5 = 800&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;O power bi indica na tabela do relatório para extra-franquia:&lt;UL&gt;&lt;LI&gt;ano 1= 0 (correto)&lt;/LI&gt;&lt;LI&gt;ano 2 = 500 (correto)&lt;/LI&gt;&lt;LI&gt;ano 3 = 1.000 (correto)&lt;/LI&gt;&lt;LI&gt;ano 4 = 0 (correto)&lt;/LI&gt;&lt;LI&gt;ano 5 = 0 (correto)&lt;/LI&gt;&lt;LI&gt;total = 0 (INCORRETO!)&amp;nbsp; =&amp;gt; O BI calcula que a franquia do período é de 5.000 voos, e a soma de voos nos 5 anos foi inferior a este total. O valor correto seria de 1.500 voos extra-franquia, uma vez que deseja-se a SOMA DO QUE ULTRAPASSOU A FRANQUIA A CADA ANO&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Como posso resolver isso?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;abs&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 16:18:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SUM-or-Calculate/m-p/63307#M55</guid>
      <dc:creator>nonick542</dc:creator>
      <dc:date>2016-08-29T16:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI - SUM or Calculate???</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SUM-or-Calculate/m-p/63592#M58</link>
      <description>&lt;P&gt;I ran your question through Bing translator as I don't speak or read Spanish - sorry to reply in English ;-)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have a measure [Extra] that computes the right amount for one year, you can create a measure that sums this result for all years in the context by&lt;/P&gt;&lt;PRE&gt;TotalExtra = SUMX(VALUES(Table[Year]), [Extra])&lt;/PRE&gt;&lt;P&gt;VALUES returns a table with all Year values, and SUMX calculates [Extra] for each row in this table and sums the results. The column Year should be somewhere in your model of course, it's probably in a Calendar table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 08:23:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SUM-or-Calculate/m-p/63592#M58</guid>
      <dc:creator>Michiel</dc:creator>
      <dc:date>2016-08-30T08:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI - SUM or Calculate???</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SUM-or-Calculate/m-p/245250#M293</link>
      <description>&lt;P&gt;Boa tarde...&lt;BR /&gt;Estou montando um BI com média de permanência na fábrica. Quero medir o tempo que veículos ficam para descarregar.&lt;BR /&gt;Já montei toda a estrutura mas estou com dificuldade na configuração do eixo Y. Não consigo configurar para mostrar hh:mm.&lt;BR /&gt;Teria alguma dica para resolver?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 15:37:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SUM-or-Calculate/m-p/245250#M293</guid>
      <dc:creator>meguefa</dc:creator>
      <dc:date>2017-09-04T15:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI - SUM or Calculate???</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SUM-or-Calculate/m-p/245951#M294</link>
      <description>&lt;P&gt;Estou com esse mesmo problema..&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 15:49:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SUM-or-Calculate/m-p/245951#M294</guid>
      <dc:creator>deboradotto</dc:creator>
      <dc:date>2017-09-05T15:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI - SUM or Calculate???</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SUM-or-Calculate/m-p/245952#M295</link>
      <description>&lt;P&gt;Estou com o mesmo problema..&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 15:52:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SUM-or-Calculate/m-p/245952#M295</guid>
      <dc:creator>deboradotto</dc:creator>
      <dc:date>2017-09-05T15:52:47Z</dc:date>
    </item>
  </channel>
</rss>

