<?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: Different formula in total row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3075379#M106908</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;GM pct total =&lt;BR /&gt;SUMX (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;Sales,&lt;BR /&gt;Geography[ContinentName],&lt;BR /&gt;Product[ProductName],&lt;BR /&gt;'Date'[Year]&lt;BR /&gt;),&lt;BR /&gt;[GM pct]&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2023 20:15:50 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-02-10T20:15:50Z</dc:date>
    <item>
      <title>Different formula in total row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3063399#M105966</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I want a column that uses one calculation on each row and subtotal row, but a different calculation on the total row.&lt;/P&gt;&lt;P&gt;Example from Contoso sample data set:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In the Total row in the right hand column, I want to show the totals of the percentages at Continent level -- in this case 57.23+57.33+57.50 = 172.06. &amp;nbsp;(I know it's not a realistic example, but it matches something I'm trying to do with real data.)&lt;/P&gt;&lt;P&gt;The [GM pct] variable is just showing Gross Margin as a % of Sales:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I've got this far with the formula for my total:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I know that the IF(HASONEVALUE()) part is working. But I can't find the syntax to sum the values of [GM pct].&lt;/P&gt;&lt;P&gt;Note that [GM pct] is a MEASURE not a column, so I can't use SUM. The visual is summarising a lot of rows in the fact table, and contains a lot of other logic in measures that I don't want to have to recreate by building a new table.&lt;/P&gt;&lt;P&gt;Thanks for any help &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 13:18:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3063399#M105966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-06T13:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Different formula in total row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3063649#M105986</link>
      <description>&lt;P&gt;hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;DIV&gt;measure=&lt;/DIV&gt;&lt;DIV&gt;IF(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;HASONEVALUE(Geography[ContinentName]),&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; [GM pct],&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; CALCULATE([GM pct], ALL(Geography[ContinentName]))&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Feb 2023 11:27:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3063649#M105986</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-06T11:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Different formula in total row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3063888#M106012</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;. Thanks a lot for trying to help! Your formula returns the same thing as mine -- 57.41%. I've added the definition of [GM pct] into my first post, so you can see what it's doing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I need my second measure to be summing the values at subtotal level ... somehow! But I don't know how to do that. Thanks again &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 13:21:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3063888#M106012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-06T13:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Different formula in total row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3065703#M106142</link>
      <description>&lt;P&gt;I guess a shorter version of my question is:&lt;/P&gt;&lt;P&gt;Can you manipulate the values of MEASURES at different total levels in a visualisation?&lt;/P&gt;&lt;P&gt;I know you can do it to COLUMN values, with SUM and SUMX.&lt;/P&gt;&lt;P&gt;But I’m not sure that DAX has any functions that will allow me to manipulate a MEASURE in this way.&lt;/P&gt;&lt;P&gt;Thanks for any comments &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 08:36:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3065703#M106142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-07T08:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Different formula in total row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3066047#M106163</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please use&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;GM pct total =
SUMX ( VALUES ( Geography[ContinentName] ), [GM pct] )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Feb 2023 11:21:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3066047#M106163</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-07T11:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Different formula in total row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3075346#M106906</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks *SO* much for your reply, that worked perfectly!&lt;/P&gt;&lt;P&gt;Unfortunately I now have a more complicated version of the same puzzle.&lt;/P&gt;&lt;P&gt;Your formula is in the blue cells, and gives exactly what I wanted.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But I now need a second calculation with a different formula, for the red column.&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The calculation I have so far is this one:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am getting the right results in cells A, B, C — summing up the values at Product.Category level. So, for example, cell B is the sum of the calculations for all the Categories within Europe. That’s what I need.&lt;/P&gt;&lt;P&gt;But in the Grand Total row I also need a sum of A+B+C, which here should be 10.3438.&lt;/P&gt;&lt;P&gt;I can’t get my head around what I would need for that …&lt;/P&gt;&lt;P&gt;Huge thanks again for any help &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 20:00:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3075346#M106906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-10T20:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Different formula in total row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3075379#M106908</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;GM pct total =&lt;BR /&gt;SUMX (&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;Sales,&lt;BR /&gt;Geography[ContinentName],&lt;BR /&gt;Product[ProductName],&lt;BR /&gt;'Date'[Year]&lt;BR /&gt;),&lt;BR /&gt;[GM pct]&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 20:15:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3075379#M106908</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-10T20:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Different formula in total row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3075400#M106910</link>
      <description>&lt;P&gt;I'm speechless. Thank you so much&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;.&lt;BR /&gt;(I took out the last dimension from the SUMMARIZE to make it exactly what I needed, but I can probably use your formula as well anyway!)&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 20:23:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Different-formula-in-total-row/m-p/3075400#M106910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-10T20:23:13Z</dc:date>
    </item>
  </channel>
</rss>

