<?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: DAX Total is not working in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3384764#M127526</link>
    <description>&lt;P&gt;Thank you for the solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Suggest me the learning material for DAXs&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2023 08:35:54 GMT</pubDate>
    <dc:creator>Aazam</dc:creator>
    <dc:date>2023-08-17T08:35:54Z</dc:date>
    <item>
      <title>DAX Total is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3382257#M127448</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am facing an issue with DAX Total,&lt;BR /&gt;&lt;BR /&gt;Here is my DAX&lt;BR /&gt;&lt;SPAN&gt;item cost for max date = var MaxDate = CALCULATE(MAX('Lookup Table'[transaction_date]),ALL('Lookup Table'[transaction_date])) RETURN&lt;BR /&gt;CALCULATE(SUMX('Lookup Table','Lookup Table'[Item Cost]),FILTER('Lookup Table','Lookup Table'[transaction_date] = MaxDate))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look at this, It is getting only that value is on MAX date instead of a total of both product&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 08:43:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3382257#M127448</guid>
      <dc:creator>Aazam</dc:creator>
      <dc:date>2023-08-16T08:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Total is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3382278#M127450</link>
      <description>&lt;P&gt;not sure why you are using sumx&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;item cost for max date = 
var MaxDate = CALCULATE(MAX('Lookup Table'[transaction_date]),ALL('Lookup Table'[transaction_date])) 
RETURN
CALCULATE(SUM('Lookup Table'[Item Cost]),FILTER('Lookup Table','Lookup Table'[transaction_date] = MaxDate))&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 08:30:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3382278#M127450</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-08-16T08:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Total is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3382328#M127453</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look at this, It is getting only that value is on MAX date instead of a total of both product&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 08:41:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3382328#M127453</guid>
      <dc:creator>Aazam</dc:creator>
      <dc:date>2023-08-16T08:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Total is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3382738#M127463</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="603669" data-lia-user-login="Aazam" class="lia-mention lia-mention-user"&gt;Aazam&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;item cost for max date =
SUMX (
    SUMMARIZE (
        'Lookup Table',
        'Lookup Table'[Item Code],
        'Lookup Table'[Item Category],
        'Lookup Table'[SKu],
        'Lookup Table'[Location Name]
    ),
    VAR MaxDate =
        CALCULATE (
            MAX ( 'Lookup Table'[transaction_date] ),
            ALL ( 'Lookup Table'[transaction_date] )
        )
    RETURN
        CALCULATE (
            SUMX ( 'Lookup Table', 'Lookup Table'[Item Cost] ),
            KEEPFILTERS ( 'Lookup Table'[transaction_date] = MaxDate )
        )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 16 Aug 2023 12:32:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3382738#M127463</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-08-16T12:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Total is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3382944#M127471</link>
      <description>&lt;P&gt;try afater the emasure&lt;BR /&gt;&lt;BR /&gt;Total =&amp;nbsp;&lt;BR /&gt;IF(HASONEVALUE([Item Code]),[Item Cost For Max Date] , SUMX(VALUES([Item Code]),[Item Cost For Max Date]))&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 14:10:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3382944#M127471</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-08-16T14:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Total is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3384764#M127526</link>
      <description>&lt;P&gt;Thank you for the solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Suggest me the learning material for DAXs&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 08:35:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3384764#M127526</guid>
      <dc:creator>Aazam</dc:creator>
      <dc:date>2023-08-17T08:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Total is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3384908#M127538</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="603669" data-lia-user-login="Aazam" class="lia-mention lia-mention-user"&gt;Aazam&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/books/the-definitive-guide-to-dax/" target="_blank"&gt;The Definitive Guide to DAX - SQLBI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 09:39:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3384908#M127538</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-08-17T09:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Total is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3385141#M127550</link>
      <description>&lt;P&gt;I have another question related to this,&lt;BR /&gt;&lt;BR /&gt;Total_Cost_Max is the multiplication of item_cost_for_max_date and item_on_hand&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total_Cost_MAX = &lt;/SPAN&gt;&lt;SPAN&gt;[item cost for max date]&lt;/SPAN&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;SPAN&gt;[Item_On_Hand_SUM]&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;But in total I want the sum of rows instead of the multiplication of columns.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 11:33:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3385141#M127550</guid>
      <dc:creator>Aazam</dc:creator>
      <dc:date>2023-08-17T11:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Total is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3385229#M127556</link>
      <description>&lt;P&gt;I resolved it by myself&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SUMX (
    SUMMARIZE (
        'Lookup Table',
        'INV Sku'[sku],
        'INV Categories'[name],
        'INV Items'[item_code],
        'INV Locations'[location_name]
    ),
    VAR item_cost_for_max_date =
        CALCULATE (
           [item cost for max date]
        )
    VAR item_on_hand =
    CALCULATE(
        [Item_On_Hand_SUM]
    )
    RETURN
       
            item_cost_for_max_date * item_on_hand
       
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 12:12:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Total-is-not-working/m-p/3385229#M127556</guid>
      <dc:creator>Aazam</dc:creator>
      <dc:date>2023-08-17T12:12:44Z</dc:date>
    </item>
  </channel>
</rss>

