<?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 calculate price change using a constant price that changes on slicer date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-price-change-using-a-constant-price-that/m-p/3313474#M123920</link>
    <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="579233" data-lia-user-login="TealSA" class="lia-mention lia-mention-user"&gt;TealSA&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can create a calendar table separately and have no relationship to the primary table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table2 =
CALENDAR(
    DATE(2023,3,1),DATE(2023,12,31))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Want to see this instead =
var _mindate=
MINX(ALLSELECTED('Table2'),[Date1])
return
SUMX(
    FILTER(ALL('Table'),
    'Table'[MyDateField]=_mindate),[Happening])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Difference Column =
MAX('Table'[Happening]) - [Want to see this instead]&lt;/LI-CODE&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jul 2023 02:18:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-07-04T02:18:29Z</dc:date>
    <item>
      <title>How to calculate price change using a constant price that changes on slicer date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-price-change-using-a-constant-price-that/m-p/3298190#M122930</link>
      <description>&lt;P&gt;Hi! Looking for a solution. Here is the scenario:&lt;/P&gt;&lt;P&gt;1. I have a date slicer, upon selection it gives me the price of my product.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I get the price that is associated with the Min Date on the slicer&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. I use that price to calculate the price change for all the products with the date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;something like (Curr Price - Base Price)/ Base Price.&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. What I am doing is : Get the basedate =&amp;nbsp;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'mytable'&lt;/SPAN&gt;&lt;SPAN&gt;[Datecol]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'mytable'&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Get the base price :&amp;nbsp;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(MyTable&lt;/SPAN&gt;&lt;SPAN&gt;[ProdPrice]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(MyTable&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Mytable&lt;/SPAN&gt;&lt;SPAN&gt;[DateCol]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;= &lt;/SPAN&gt;&lt;SPAN&gt;BaseDt&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I see Base Price only for BaseDate Month, instead I want to see that constant price for all the months after that BaseDt till 06/2023. But it is blank.&amp;nbsp; Any help here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 15:40:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-price-change-using-a-constant-price-that/m-p/3298190#M122930</guid>
      <dc:creator>TealSA</dc:creator>
      <dc:date>2023-06-22T15:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate price change using a constant price that changes on slicer date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-price-change-using-a-constant-price-that/m-p/3300233#M123064</link>
      <description>&lt;P&gt;&amp;nbsp;HI , I am looking to get this to happen:&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 17:10:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-price-change-using-a-constant-price-that/m-p/3300233#M123064</guid>
      <dc:creator>TealSA</dc:creator>
      <dc:date>2023-06-23T17:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate price change using a constant price that changes on slicer date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-price-change-using-a-constant-price-that/m-p/3313474#M123920</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="579233" data-lia-user-login="TealSA" class="lia-mention lia-mention-user"&gt;TealSA&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can create a calendar table separately and have no relationship to the primary table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table2 =
CALENDAR(
    DATE(2023,3,1),DATE(2023,12,31))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Want to see this instead =
var _mindate=
MINX(ALLSELECTED('Table2'),[Date1])
return
SUMX(
    FILTER(ALL('Table'),
    'Table'[MyDateField]=_mindate),[Happening])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Difference Column =
MAX('Table'[Happening]) - [Want to see this instead]&lt;/LI-CODE&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 02:18:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-price-change-using-a-constant-price-that/m-p/3313474#M123920</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-04T02:18:29Z</dc:date>
    </item>
  </channel>
</rss>

