<?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 Unique - Complex DAX Challenge for Matrix Visual Specific for Columns &amp;amp; Total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Complex-DAX-Challenge-for-Matrix-Visual-Specific-for/m-p/2270833#M55278</link>
    <description>&lt;P&gt;This one has got me perplexed.&lt;/P&gt;&lt;P&gt;How do you create the DAX Measure Value for a matrix that does the following for the Totals?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Does the normal Summing for the columns&lt;/LI&gt;&lt;LI&gt;Does a special calculation for the Total column&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Example Table Would Be&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DAX Total column formula is (Current + Mid-Tier) - Legacy&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Person&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;U&gt;L&lt;/U&gt;&lt;/STRONG&gt;egacy&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;U&gt;M&lt;/U&gt;&lt;/STRONG&gt;id-Tier&lt;/TD&gt;&lt;TD&gt;&lt;U&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/U&gt;urrent&lt;/TD&gt;&lt;TD&gt;DAX Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;-2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TOTAL&lt;/TD&gt;&lt;TD&gt;12&amp;nbsp; (Sum Total)&lt;/TD&gt;&lt;TD&gt;4&amp;nbsp; (Sum Total)&lt;/TD&gt;&lt;TD&gt;12&amp;nbsp; (Sum Total)&lt;/TD&gt;&lt;TD&gt;4&amp;nbsp; (Calc Total (C+M)-L&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2022 05:23:15 GMT</pubDate>
    <dc:creator>ScottBrown</dc:creator>
    <dc:date>2022-01-07T05:23:15Z</dc:date>
    <item>
      <title>Unique - Complex DAX Challenge for Matrix Visual Specific for Columns &amp; Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Complex-DAX-Challenge-for-Matrix-Visual-Specific-for/m-p/2270833#M55278</link>
      <description>&lt;P&gt;This one has got me perplexed.&lt;/P&gt;&lt;P&gt;How do you create the DAX Measure Value for a matrix that does the following for the Totals?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Does the normal Summing for the columns&lt;/LI&gt;&lt;LI&gt;Does a special calculation for the Total column&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Example Table Would Be&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DAX Total column formula is (Current + Mid-Tier) - Legacy&lt;/LI&gt;&lt;/UL&gt;&lt;P&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<guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Complex-DAX-Challenge-for-Matrix-Visual-Specific-for/m-p/2270833#M55278</guid>
      <dc:creator>ScottBrown</dc:creator>
      <dc:date>2022-01-07T05:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unique - Complex DAX Challenge for Matrix Visual Specific for Columns &amp; Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Complex-DAX-Challenge-for-Matrix-Visual-Specific-for/m-p/2270850#M55279</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="120067" data-lia-user-login="ScottBrown" class="lia-mention lia-mention-user"&gt;ScottBrown&lt;/a&gt; , if these are value of column say Tier and you column of value is value &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new measure =&lt;/P&gt;
&lt;P&gt;if((isinscope([Tier])), sum(Table[Value]) ,&lt;BR /&gt;Switch(true(),&lt;BR /&gt;max(Table[Tier]) = "Legacy" , -1 * sum(Table[Value]) , &lt;BR /&gt;sum(Table[Value]) ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If they are measure&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then new measure&lt;/P&gt;
&lt;P&gt;([Current] + [Mid-Tier]) - [Legacy]&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 05:36:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Complex-DAX-Challenge-for-Matrix-Visual-Specific-for/m-p/2270850#M55279</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-07T05:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unique - Complex DAX Challenge for Matrix Visual Specific for Columns &amp; Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Complex-DAX-Challenge-for-Matrix-Visual-Specific-for/m-p/2276540#M55582</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="120067" data-lia-user-login="ScottBrown" class="lia-mention lia-mention-user"&gt;ScottBrown&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try the following formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
var _sum = SUM ( 'Table'[Value] )
return 
    IF (
        ISFILTERED ( 'Table'[Category] ),
        _sum,
        _sum - 2 * CALCULATE ( SUM ( 'Table'[Value] ), 'Table'[Category] = "Legacy" )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Winniz&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 03:05:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Unique-Complex-DAX-Challenge-for-Matrix-Visual-Specific-for/m-p/2276540#M55582</guid>
      <dc:creator>v-kkf-msft</dc:creator>
      <dc:date>2022-01-11T03:05:19Z</dc:date>
    </item>
  </channel>
</rss>

