<?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 for counting sales in the 90 days after an appointment date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877888#M93046</link>
    <description>&lt;P&gt;ok, shouldn't be the problem with present date because of the&amp;nbsp;&lt;STRONG&gt;&amp;lt;=&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you maybe have some sample data which I could copy to test it on my machine?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 17:21:16 GMT</pubDate>
    <dc:creator>lukiz84</dc:creator>
    <dc:date>2022-11-01T17:21:16Z</dc:date>
    <item>
      <title>DAX measure for counting sales in the 90 days after an appointment date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877594#M93011</link>
      <description>&lt;P&gt;I have a PBI report comprising of (amongst other things):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sales table&lt;/LI&gt;&lt;LI&gt;Date Table&lt;/LI&gt;&lt;LI&gt;Appointment dates and practice names&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to find a measure that will allow me to create a table to show all the appointments in the last year and a measure to calculate how many sales&amp;nbsp; (£) happened in the 90 days AFTER that specific appointment date.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Practice name&lt;/TD&gt;&lt;TD&gt;Date of appointment&lt;/TD&gt;&lt;TD&gt;Sales in 90 days after appointment date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;XXX&lt;/TD&gt;&lt;TD&gt;1 june 2022&lt;/TD&gt;&lt;TD&gt;£45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;YYY&lt;/TD&gt;&lt;TD&gt;7th October 2022&lt;/TD&gt;&lt;TD&gt;£0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 01 Nov 2022 14:54:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877594#M93011</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2022-11-01T14:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for counting sales in the 90 days after an appointment date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877687#M93023</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales =
    VAR DateOfApp = SELECTEDVALUE('AppointmentDates'[Date of appointment])
    RETURN
       CALCULATE(
          SUM(Sales[Amount]),
          Sales[Date] &amp;gt;= DateOfApp &amp;amp;&amp;amp;
          Sales[Date] &amp;lt;= DateOfApp + 90
       )
    &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 15:46:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877687#M93023</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2022-11-01T15:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for counting sales in the 90 days after an appointment date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877716#M93027</link>
      <description>&lt;P&gt;Thank you - that does indeed return a result, but that seems to only give me appointments from before 90 days ago? i e the most recent appointment it shows is in July this year - when I know they run right up to today?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 15:57:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877716#M93027</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2022-11-01T15:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for counting sales in the 90 days after an appointment date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877738#M93028</link>
      <description>&lt;P&gt;In your sample only the july one has sales afterwards... do the other appointments have sales? if not, the measure returns blank and then it's not shown on the matrix. If you use this measure, you should see all the appointsments, even if there were no sales:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales =
    VAR DateOfApp = SELECTEDVALUE('AppointmentDates'[Date of appointment])
    RETURN
       CALCULATE(
          SUM(Sales[Amount]),
          Sales[Date] &amp;gt;= DateOfApp &amp;amp;&amp;amp;
          Sales[Date] &amp;lt;= DateOfApp + 90
       ) + 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 16:05:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877738#M93028</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2022-11-01T16:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for counting sales in the 90 days after an appointment date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877760#M93031</link>
      <description>&lt;P&gt;Some will have sales and some will not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it is only showing appointments that were more than 90 days ago (i.e. not showing recent appointments, some of which will also have sales). I guess because the 90- day period is not finished yet. I think it needs to count up to present day but I am not sure how to do that? i./e.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales =
    VAR DateOfApp = SELECTEDVALUE('AppointmentDates'[Date of appointment])
    RETURN
       CALCULATE(
          SUM(Sales[Amount]),
          Sales[Date] &amp;gt;= DateOfApp &amp;amp;&amp;amp;
          Sales[Date] &amp;lt;= DateOfApp + 90 (or present day)
       ) + 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 16:14:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877760#M93031</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2022-11-01T16:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for counting sales in the 90 days after an appointment date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877769#M93033</link>
      <description>&lt;P&gt;"will have sales" -&amp;gt; do they have them in your data NOW? if not, nothing is returned. Just add the + 0 to the Calculate function and you will see _all_ appointments &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 16:15:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877769#M93033</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2022-11-01T16:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for counting sales in the 90 days after an appointment date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877777#M93035</link>
      <description>&lt;P&gt;Some of them DO currently have sales &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; (not will have - poor use of english by me there)&lt;/P&gt;&lt;P&gt;I have added the + 0 and still the appointments only show up to 29/07/22.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 16:17:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877777#M93035</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2022-11-01T16:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for counting sales in the 90 days after an appointment date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877888#M93046</link>
      <description>&lt;P&gt;ok, shouldn't be the problem with present date because of the&amp;nbsp;&lt;STRONG&gt;&amp;lt;=&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you maybe have some sample data which I could copy to test it on my machine?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 17:21:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2877888#M93046</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2022-11-01T17:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for counting sales in the 90 days after an appointment date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2880140#M93181</link>
      <description>&lt;P&gt;It Helps a little, do you have the appointment date on the matrix or the date from the date table? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 12:44:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2880140#M93181</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2022-11-02T12:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for counting sales in the 90 days after an appointment date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2880168#M93186</link>
      <description>&lt;P&gt;The appointment date is in the appointment table.&lt;/P&gt;&lt;P&gt;The date in the Sales table is only obtained on 1st of each month so is 1st July, 1st August only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 12:53:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2880168#M93186</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2022-11-02T12:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for counting sales in the 90 days after an appointment date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2880179#M93188</link>
      <description>&lt;P&gt;No, i mean which field do you have on the&amp;nbsp;&lt;STRONG&gt;matrix&lt;/STRONG&gt; where you add the measure... Date from the&amp;nbsp;&lt;STRONG&gt;Date table&lt;/STRONG&gt; or appointment date from the appointments table?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 12:58:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2880179#M93188</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2022-11-02T12:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for counting sales in the 90 days after an appointment date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2880192#M93190</link>
      <description>&lt;P&gt;I think it is working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thanks you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 13:04:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2880192#M93190</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2022-11-02T13:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for counting sales in the 90 days after an appointment date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2880203#M93191</link>
      <description>&lt;P&gt;how? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 13:07:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2880203#M93191</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2022-11-02T13:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for counting sales in the 90 days after an appointment date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2880207#M93193</link>
      <description>&lt;P&gt;Ah i see! it's a table &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I have the following columns:&lt;BR /&gt;Practice Name&amp;nbsp;&amp;nbsp; Appointment date (from appointment table) and the measure.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 13:07:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/2880207#M93193</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2022-11-02T13:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for counting sales in the 90 days after an appointment date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/4590329#M175817</link>
      <description>&lt;P&gt;Hi - I am back working on this again. I have it working but is there a way to work out the sales made from the 1st of the month the appointment was in i.e.&lt;/P&gt;&lt;P&gt;Appointment date is 23rd february but i want to look for sales from 1st february and then 40 days on from there?&lt;BR /&gt;&lt;BR /&gt;Our sales data all comes in dated 1st of each month, so I need to be able to include sales from the 1st of the month the appointment was in..&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 15:13:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-counting-sales-in-the-90-days-after-an/m-p/4590329#M175817</guid>
      <dc:creator>gingerclaire</dc:creator>
      <dc:date>2025-02-28T15:13:22Z</dc:date>
    </item>
  </channel>
</rss>

