<?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: How to get correct total in matrix using measure with an if statement in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-correct-total-in-matrix-using-measure-with-an-if/m-p/2656113#M78504</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create new measure&lt;/P&gt;&lt;P&gt;SUMX ( VALUES (base[customer]), [discount] )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2022 15:46:47 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-07-22T15:46:47Z</dc:date>
    <item>
      <title>How to get correct total in matrix using measure with an if statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-correct-total-in-matrix-using-measure-with-an-if/m-p/2656068#M78498</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem calculating the total in a matrix visualization when using a measure with an if statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created this simplified model to ask this doubt (that’s why some numbers don’t make sense, it’s just to express it with more clarity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to create a measure that offers a 50% discount if the customers bought more than 40% regarding their target and no discount otherwise. Except just for customer C who will receive a 20% discount if he bought more than 10%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I send the screens of what I have tried so far. I created the measure that shows the correct discount for every customer but it doesn’t show the correct amount for the total.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Base:&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;Matrix and discount measure created:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 15:20:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-correct-total-in-matrix-using-measure-with-an-if/m-p/2656068#M78498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-22T15:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get correct total in matrix using measure with an if statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-correct-total-in-matrix-using-measure-with-an-if/m-p/2656113#M78504</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create new measure&lt;/P&gt;&lt;P&gt;SUMX ( VALUES (base[customer]), [discount] )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 15:46:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-correct-total-in-matrix-using-measure-with-an-if/m-p/2656113#M78504</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-22T15:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get correct total in matrix using measure with an if statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-correct-total-in-matrix-using-measure-with-an-if/m-p/2656967#M78606</link>
      <description>&lt;P&gt;It worked perfectly, thanks a lot!!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 15:49:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-correct-total-in-matrix-using-measure-with-an-if/m-p/2656967#M78606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-23T15:49:23Z</dc:date>
    </item>
  </channel>
</rss>

