<?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 Measure based on if statement from different aggregations in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-based-on-if-statement-from-different-aggregations/m-p/2694936#M81266</link>
    <description>&lt;P&gt;Yes, I have just edited the post and uploaded it, thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2022 10:32:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-08-11T10:32:42Z</dc:date>
    <item>
      <title>DAX Measure based on if statement from different aggregations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-based-on-if-statement-from-different-aggregations/m-p/2693668#M81190</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 using a measure with an if statement. I created this simplified model to ask this doubt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to create a measure that:&lt;/P&gt;&lt;P&gt;- offers a 50% discount on books if customers bought more than 40% regarding the previous year and no discount otherwise&lt;/P&gt;&lt;P&gt;- offers a 20% discount on the other products (pens and pencils) if customers bought more than 30% regarding the previous year and no discount otherwise&lt;/P&gt;&lt;P&gt;- even if the above is fulfilled for some products, there will be no discount if in the sum of all the products the buyer didn't buy more than 10% compared to the previous year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I send the screen of the matrix summarizing what I should achieve:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample data:&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/drive/folders/14_aZz5wd2W6SdXZoWwTfPX_JXQUBh2k4?usp=sharing" target="_self"&gt;https://drive.google.com/drive/folders/14_aZz5wd2W6SdXZoWwTfPX_JXQUBh2k4?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 10:28:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-based-on-if-statement-from-different-aggregations/m-p/2693668#M81190</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-11T10:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure based on if statement from different aggregations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-based-on-if-statement-from-different-aggregations/m-p/2694297#M81219</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;hi! can you paste the sample data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thx,&lt;/P&gt;
&lt;P&gt;BBF&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 07:19:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-based-on-if-statement-from-different-aggregations/m-p/2694297#M81219</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2022-08-11T07:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure based on if statement from different aggregations</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-based-on-if-statement-from-different-aggregations/m-p/2694936#M81266</link>
      <description>&lt;P&gt;Yes, I have just edited the post and uploaded it, thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 10:32:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-based-on-if-statement-from-different-aggregations/m-p/2694936#M81266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-11T10:32:42Z</dc:date>
    </item>
  </channel>
</rss>

