<?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: Calculating the net total (neg an positive figures) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-the-net-total-neg-an-positive-figures/m-p/4073054#M161706</link>
    <description>&lt;P&gt;Thanks for your response&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting an error "The report measure [Variance] has a syntax or semantic error.&lt;/P&gt;&lt;P&gt;ALL/ALLNOBLANK?ALLSELECTED functions must be from the same table.&lt;/P&gt;&lt;P&gt;Just FYI the fields Supplier region, Destination city, Transaction type are from different tables.&lt;/P&gt;&lt;P&gt;Another question in the measure&amp;nbsp;&lt;STRONG&gt;Table'[variance] &lt;/STRONG&gt;is a calculated measure itself so does that have to be a part of ALL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure =&lt;BR /&gt;CALCULATE(SUMX(&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('Table'[Region],'Table'[city],&lt;STRONG&gt;'Table'[variance]&lt;/STRONG&gt;),&lt;BR /&gt;'Table'[Region]=MAX('Table'[Region]) &amp;amp;&amp;amp; 'Table'[city]&amp;lt;&amp;gt;"Total"&lt;BR /&gt;),&lt;BR /&gt;[variance]&lt;BR /&gt;),KEEPFILTERS('Table'[city]="total"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 07:51:17 GMT</pubDate>
    <dc:creator>logistics_power</dc:creator>
    <dc:date>2024-08-01T07:51:17Z</dc:date>
    <item>
      <title>Calculating the net total (neg an positive figures)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-the-net-total-neg-an-positive-figures/m-p/4072612#M161681</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a matrix visual as below&lt;/P&gt;&lt;P&gt;I want to calculate the net variance from the freight variance column. So for supplier region US it is 500-200+300=600 and for Asia it is 1000-2000+500 = -500&lt;/P&gt;&lt;P&gt;Pleaase note the Total of the freight variance is a row calculated total and not the net of the column figures above it.&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;</description>
      <pubDate>Thu, 01 Aug 2024 04:17:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-the-net-total-neg-an-positive-figures/m-p/4072612#M161681</guid>
      <dc:creator>logistics_power</dc:creator>
      <dc:date>2024-08-01T04:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the net total (neg an positive figures)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-the-net-total-neg-an-positive-figures/m-p/4072846#M161691</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="782778" data-lia-user-login="logistics_power" class="lia-mention lia-mention-user"&gt;logistics_power&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try below measure.&lt;BR /&gt;Just rename table and column name.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
CALCULATE(SUMX(
    FILTER(
        ALL('Table'[Region],'Table'[city],'Table'[variance]),
        'Table'[Region]=MAX('Table'[Region]) &amp;amp;&amp;amp; 'Table'[city]&amp;lt;&amp;gt;"Total"
        ),
        [variance]
),KEEPFILTERS('Table'[city]="total"))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Dangar&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 06:22:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-the-net-total-neg-an-positive-figures/m-p/4072846#M161691</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-08-01T06:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the net total (neg an positive figures)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-the-net-total-neg-an-positive-figures/m-p/4073054#M161706</link>
      <description>&lt;P&gt;Thanks for your response&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting an error "The report measure [Variance] has a syntax or semantic error.&lt;/P&gt;&lt;P&gt;ALL/ALLNOBLANK?ALLSELECTED functions must be from the same table.&lt;/P&gt;&lt;P&gt;Just FYI the fields Supplier region, Destination city, Transaction type are from different tables.&lt;/P&gt;&lt;P&gt;Another question in the measure&amp;nbsp;&lt;STRONG&gt;Table'[variance] &lt;/STRONG&gt;is a calculated measure itself so does that have to be a part of ALL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure =&lt;BR /&gt;CALCULATE(SUMX(&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('Table'[Region],'Table'[city],&lt;STRONG&gt;'Table'[variance]&lt;/STRONG&gt;),&lt;BR /&gt;'Table'[Region]=MAX('Table'[Region]) &amp;amp;&amp;amp; 'Table'[city]&amp;lt;&amp;gt;"Total"&lt;BR /&gt;),&lt;BR /&gt;[variance]&lt;BR /&gt;),KEEPFILTERS('Table'[city]="total"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 07:51:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-the-net-total-neg-an-positive-figures/m-p/4073054#M161706</guid>
      <dc:creator>logistics_power</dc:creator>
      <dc:date>2024-08-01T07:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the net total (neg an positive figures)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-the-net-total-neg-an-positive-figures/m-p/4073111#M161709</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="782778" data-lia-user-login="logistics_power" class="lia-mention lia-mention-user"&gt;logistics_power&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;All family function must be from same table that's why it give error&lt;BR /&gt;&lt;BR /&gt;Try below measure&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
CALCULATE(
sumx(
filter(
 SUMMARIZE('Table'[Region],'Table'[city]),
'Table'[Region]=MAX('Table'[Region]) &amp;amp;&amp;amp; 'Table'[city]&amp;lt;&amp;gt;"Total"
),[variance_measure])
),KEEPFILTERS('Table'[city]="total"))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Dangar&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 08:30:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-the-net-total-neg-an-positive-figures/m-p/4073111#M161709</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-08-01T08:30:21Z</dc:date>
    </item>
  </channel>
</rss>

