<?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: Not showing the Correct Subtotals in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-showing-the-Correct-Subtotals/m-p/3231744#M118615</link>
    <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your formula works perfectly.&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2023 22:08:36 GMT</pubDate>
    <dc:creator>LarsAustin</dc:creator>
    <dc:date>2023-05-11T22:08:36Z</dc:date>
    <item>
      <title>Not showing the Correct Subtotals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-showing-the-Correct-Subtotals/m-p/3229731#M118475</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you can help me with this issue. The problems may look pretty simple but I just cannot make it work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I wrote this DAX code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;VAR _Company = IF(HASONEVALUE(Inventory[Company]), VALUES(Inventory[Company]))&lt;BR /&gt;VAR _ValueInAUD = SUMX(VALUES('Item'[Item No.]),[Inventory To Date ($)] * [AU FX Rate])&lt;/P&gt;&lt;P&gt;VAR _Result = IF(_Company = "AU" , [Inventory To Date ($)],_ValueInAUD)&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;_Result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that on an item level, I am getting the correct result. But the total on&lt;STRONG&gt; Inventory To Date ($ AUD)&lt;/STRONG&gt; is not correct. $292,404 + $32,215 = $324,719, not $303,812.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think $303,812 is result of $292,404 multiplied by the AU FX rate (0.9285) plus $32,315. But I don't like to convert $292,404 since this is already in AUD (the company is AU).&lt;BR /&gt;&lt;BR /&gt;I've tried a modifications in my code but i just cannot get to my desired output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jojemar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 03:15:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-showing-the-Correct-Subtotals/m-p/3229731#M118475</guid>
      <dc:creator>LarsAustin</dc:creator>
      <dc:date>2023-05-11T03:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Not showing the Correct Subtotals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-showing-the-Correct-Subtotals/m-p/3230367#M118505</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;My Measure =
SUMX (
    VALUES ( Inventory[Company] ),
    VAR _ValueInAUD =
        SUMX ( VALUES ( 'Item'[Item No.] ), [Inventory To Date ($)] * [AU FX Rate] )
    VAR _Result =
        IF ( Inventory[Company] = "AU", [Inventory To Date ($)], _ValueInAUD )
    RETURN
        _Result
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 11 May 2023 08:50:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-showing-the-Correct-Subtotals/m-p/3230367#M118505</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-05-11T08:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Not showing the Correct Subtotals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-showing-the-Correct-Subtotals/m-p/3231744#M118615</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your formula works perfectly.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 22:08:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Not-showing-the-Correct-Subtotals/m-p/3231744#M118615</guid>
      <dc:creator>LarsAustin</dc:creator>
      <dc:date>2023-05-11T22:08:36Z</dc:date>
    </item>
  </channel>
</rss>

