<?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: Problem with total statement in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-total-statement/m-p/1616775#M32579</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Does this measure work?&lt;/P&gt;
&lt;P&gt;=If(hasonevalue(&lt;SPAN&gt;HASONEVALUE('Tabelle1 (2)'[Month]),[Without negativ Values],sumx(summarize(values('Tabelle1 (2)'[Month]),'Tabelle1 (2)'[Month],"ABCD",[Without negativ Values]),[abcd]))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jan 2021 12:11:45 GMT</pubDate>
    <dc:creator>Ashish_Mathur</dc:creator>
    <dc:date>2021-01-22T12:11:45Z</dc:date>
    <item>
      <title>Problem with total statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-total-statement/m-p/1616741#M32578</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;i have a problem with my total statement. I have seen that others have got the same issues, but i can't use their solution for my measure. &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19851" data-lia-user-login="Ashish_Mathur" class="lia-mention lia-mention-user"&gt;Ashish_Mathur&lt;/a&gt; You were able to help someone else with a similar problem. Do you have a solution for that? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;I have to measure "Product 1 sum at last" - "Product 1 sum at first". I only want to consider the positive values in my result of the measure "Without negative Values". I have attached a screenshot for you and the measures. I tried a Hasonefilter, but it does not work. Do you have a solution for my problem? You would help me a lot. Kind regards Lennard .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Product 1 sum "at first" = CALCULATE(SUM('Tabelle1 (2)'[Produkt 1 sum]),'Tabelle1 (2)'[first/ last]="@first")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Product 1 sum "at last" = CALCULATE(SUM('Tabelle1 (2)'[Produkt 1 sum]),'Tabelle1 (2)'[first/ last]="@last")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Without negativ Values = IF(HASONEVALUE('Tabelle1 (2)'[Month]), IF([@last - @first]&amp;gt;0,[@last - @first],0))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Jan 2021 11:56:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-total-statement/m-p/1616741#M32578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-22T11:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with total statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-total-statement/m-p/1616775#M32579</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Does this measure work?&lt;/P&gt;
&lt;P&gt;=If(hasonevalue(&lt;SPAN&gt;HASONEVALUE('Tabelle1 (2)'[Month]),[Without negativ Values],sumx(summarize(values('Tabelle1 (2)'[Month]),'Tabelle1 (2)'[Month],"ABCD",[Without negativ Values]),[abcd]))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 12:11:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-total-statement/m-p/1616775#M32579</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2021-01-22T12:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with total statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-total-statement/m-p/1616809#M32581</link>
      <description>&lt;P&gt;Unfortunately not, i get this error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Too many arguments were passed to the HASONEVALUE function. A maximum of 1 arguments are allowed for the function."&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 12:32:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-total-statement/m-p/1616809#M32581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-22T12:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with total statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-total-statement/m-p/1617768#M32626</link>
      <description>&lt;P&gt;Remove the second HASONEVALUE&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 00:11:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-total-statement/m-p/1617768#M32626</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2021-01-23T00:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with total statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-total-statement/m-p/1618087#M32638</link>
      <description>&lt;P&gt;Thanks a lot. It works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 10:50:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-total-statement/m-p/1618087#M32638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-23T10:50:50Z</dc:date>
    </item>
  </channel>
</rss>

