<?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 Divergent sum in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divergent-sum/m-p/3034804#M103863</link>
    <description>&lt;P&gt;Good afternoon sirs&lt;/P&gt;&lt;P&gt;I'm having problems adding a measure called "Edgar Billing", from a visual, where I disregard the column "CompanyId" and the column "vl_Tarifa_2".&lt;/P&gt;&lt;P&gt;In the print below, the first table is ok with the tariffs, (except the total), bringing the amounts to be invoiced from customers.&lt;/P&gt;&lt;P&gt;In the table below, it is showing a totally different value.&lt;/P&gt;&lt;P&gt;As the calculation is a column multiplied by a measure, I used a Calculate function and the MAX function to get the day's tariff.&lt;/P&gt;&lt;P&gt;What would you do?&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 20:06:07 GMT</pubDate>
    <dc:creator>Edgar_massa</dc:creator>
    <dc:date>2023-01-20T20:06:07Z</dc:date>
    <item>
      <title>Divergent sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divergent-sum/m-p/3034804#M103863</link>
      <description>&lt;P&gt;Good afternoon sirs&lt;/P&gt;&lt;P&gt;I'm having problems adding a measure called "Edgar Billing", from a visual, where I disregard the column "CompanyId" and the column "vl_Tarifa_2".&lt;/P&gt;&lt;P&gt;In the print below, the first table is ok with the tariffs, (except the total), bringing the amounts to be invoiced from customers.&lt;/P&gt;&lt;P&gt;In the table below, it is showing a totally different value.&lt;/P&gt;&lt;P&gt;As the calculation is a column multiplied by a measure, I used a Calculate function and the MAX function to get the day's tariff.&lt;/P&gt;&lt;P&gt;What would you do?&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 20:06:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divergent-sum/m-p/3034804#M103863</guid>
      <dc:creator>Edgar_massa</dc:creator>
      <dc:date>2023-01-20T20:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Divergent sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divergent-sum/m-p/3035143#M103891</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="436567" data-lia-user-login="Edgar_massa" class="lia-mention lia-mention-user"&gt;Edgar_massa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I think you can try if you wnat the correct sum of the total:&lt;/P&gt;&lt;P&gt;If(hasonevalue(table[company_id]),[faturamento_Edgard],sumx(values(table[company_id]),[faturamento_Edgard]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will fix your total.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And i dont think all is necessary in your calculation, if you already have a relationship just a simple&lt;/P&gt;&lt;P&gt;Max(table[vl_tarifa_2]) would do the trick&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 04:45:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divergent-sum/m-p/3035143#M103891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-21T04:45:03Z</dc:date>
    </item>
  </channel>
</rss>

