<?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: Formula Help in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Help/m-p/2851029#M91385</link>
    <description>&lt;P&gt;IN addition this is the formula I use in excel that works.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=IF(DATEVALUE(Calendar Day)&amp;lt;EOMONTH(DATEVALUE(Marketing Intro Date),36),Product Sales,0)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 10:19:44 GMT</pubDate>
    <dc:creator>Kate47537</dc:creator>
    <dc:date>2022-10-19T10:19:44Z</dc:date>
    <item>
      <title>Formula Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Help/m-p/2849970#M91315</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to calculate products sales based on a 3 year (vitality date) (meaning the product has a start date and we measure sales from that date 36 months forward and then we stop tracking sales, I cannot seem to get the product sales to adust based on the 36 month window from start date, we do however want the product sales to aggregate, meaning we want current year to allow fall off of expired materials (each month) but allow the any new materials to come on well product sales.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Kate&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 22:55:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Help/m-p/2849970#M91315</guid>
      <dc:creator>Kate47537</dc:creator>
      <dc:date>2022-10-18T22:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Help/m-p/2850099#M91321</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458597" data-lia-user-login="Kate47537" class="lia-mention lia-mention-user"&gt;Kate47537&lt;/a&gt; , Seem like you need sum data based on sales date. If you have date table joined already with first date you can join(inactive) sales date also and use userelationship in measure &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi" target="_blank"&gt;https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The information you have provided is not making the problem clear to me. Can you please explain with an example. &lt;BR /&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;BR /&gt;&lt;STRONG&gt;Appreciate your Kudos.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 02:00:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Help/m-p/2850099#M91321</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-10-19T02:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Help/m-p/2851017#M91383</link>
      <description>&lt;P&gt;I was trying to build using the below if Statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the follwoing fields:&amp;nbsp; Product Sales,&amp;nbsp;Marketing Intro Date,&amp;nbsp;and Calendar Day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If(today()&amp;lt;EOMONTH(Daily Sales[Marketing Intro Date],36), Daily Sales[Product Sales],0)&lt;/P&gt;&lt;P&gt;but I believe I am missing the reference to Calendar Day.&amp;nbsp; Because what I would like is adjusted sales to return with product sales for any marketing intro date with a date greater then 36 months only.&lt;/P&gt;&lt;P&gt;the adjusted sales would be only the items we sold within that 36 month time frame.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 10:17:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Help/m-p/2851017#M91383</guid>
      <dc:creator>Kate47537</dc:creator>
      <dc:date>2022-10-19T10:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Help/m-p/2851029#M91385</link>
      <description>&lt;P&gt;IN addition this is the formula I use in excel that works.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=IF(DATEVALUE(Calendar Day)&amp;lt;EOMONTH(DATEVALUE(Marketing Intro Date),36),Product Sales,0)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 10:19:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Help/m-p/2851029#M91385</guid>
      <dc:creator>Kate47537</dc:creator>
      <dc:date>2022-10-19T10:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Help/m-p/2851091#M91389</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458597" data-lia-user-login="Kate47537" class="lia-mention lia-mention-user"&gt;Kate47537&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;NewMeasure =
VAR CurrentDate =
    MAX ( 'Calendar'[Date] )
RETURN
    SUMX (
        'Daily Sales',
        IF (
            CurrentDate &amp;lt; EOMONTH ( 'Daily Sales'[Marketing Intro Date], 36 ),
            'Daily Sales'[Product Sales],
            0
        )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Oct 2022 10:37:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Formula-Help/m-p/2851091#M91389</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-10-19T10:37:30Z</dc:date>
    </item>
  </channel>
</rss>

