<?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 Help with dates between two rows in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1404951#M595387</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with payroll cut off dates and would like to filter another table based on results between each cut off date. I'm not sure where to start, I've thought about creating columns to show the first and last dates of each "month" but that hasn't worked so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example, I'd want to select November 2020 on a slicer dropdown, and get every approved record between the 4th October and 31st October, for December is would be 1st November to 28th November, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently there is a date table which has a relationship to the Date column in the cut off table. The records I'd like to show are in another table which also has a relationship to the data table for a columns with an approved date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 13:58:07 GMT</pubDate>
    <dc:creator>craigdent</dc:creator>
    <dc:date>2020-09-30T13:58:07Z</dc:date>
    <item>
      <title>Help with dates between two rows</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1404951#M595387</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with payroll cut off dates and would like to filter another table based on results between each cut off date. I'm not sure where to start, I've thought about creating columns to show the first and last dates of each "month" but that hasn't worked so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example, I'd want to select November 2020 on a slicer dropdown, and get every approved record between the 4th October and 31st October, for December is would be 1st November to 28th November, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently there is a date table which has a relationship to the Date column in the cut off table. The records I'd like to show are in another table which also has a relationship to the data table for a columns with an approved date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 13:58:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1404951#M595387</guid>
      <dc:creator>craigdent</dc:creator>
      <dc:date>2020-09-30T13:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dates between two rows</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1405021#M595410</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="262012" data-lia-user-login="craigdent" class="lia-mention lia-mention-user"&gt;craigdent&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can have two measures with Start and End dates or use these techniques with FILTER function to filter the table.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Start Date = 
VAR _Date = SELECTEDVALUE(Table9[Date])
RETURN

CALCULATE(
    MAX(Table9[Date]),
    FILTER(
        ALL(Table9),
        Table9[Date] &amp;lt; _Date
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;End Date = 
SELECTEDVALUE(Table9[Date])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;If my answer was helpful, please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt; to help the other members find it&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Click on the &lt;STRONG&gt;Thumbs-Up icon &lt;/STRONG&gt;if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;&lt;FONT color="blue"&gt;YouTube&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp; &lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;&lt;FONT color="blue"&gt;LinkedIn&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 14:24:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1405021#M595410</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-09-30T14:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dates between two rows</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1405059#M595421</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="262012" data-lia-user-login="craigdent" class="lia-mention lia-mention-user"&gt;craigdent&lt;/a&gt; , Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure =&lt;BR /&gt;var _Mtd = CALCULATE(Max(Table[Date]),DATESMTD('Date'[Date]))&lt;BR /&gt;var _lmt = CALCULATE(Max(Table[Date]),DATESMTD(dateadd('Date'[Date],-1,MONTH))) +1&lt;/P&gt;
&lt;P&gt;return &lt;BR /&gt;calculate([measure], filter (all('Date') , 'Date'[Date]&amp;gt;= _lmt &amp;amp;&amp;amp; 'Date'[Date]&amp;lt;=_Mtd))&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 14:40:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1405059#M595421</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-30T14:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dates between two rows</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1407110#M595974</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to use this, would Table9 be the table that stores the cut off dates in my snip? Or is this the Date table itself?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using that table (Overtime Deadlines) but it didn't bring anything up when I used it.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 10:39:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1407110#M595974</guid>
      <dc:creator>craigdent</dc:creator>
      <dc:date>2020-10-01T10:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dates between two rows</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1407114#M595975</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't get this working either, I think because it assumes the next monthly cut off is the same day of the next month, however it varies depending on the lenght of the month and the next pay day (which could be earlier if it would fall on a weekend or bank holiday).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the [measure] on the last line kept coming up with a circular error warning, should I ignore that?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 10:43:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1407114#M595975</guid>
      <dc:creator>craigdent</dc:creator>
      <dc:date>2020-10-01T10:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dates between two rows</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1407124#M595978</link>
      <description>&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/262012" target="_blank"&gt;@craigdent&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;I did not take any dates table into my formula. You wanted to filter the table that you showed in the question based on the logic you mentioned. These formulas can be used to filter other tables. Why do not share a sample PBIX file with some sample data to check? Also, mention the expected result. &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;If my answer was helpful, please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt; to help the other members find it&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Click on the &lt;STRONG&gt;Thumbs-Up icon &lt;/STRONG&gt;if you like this reply &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;FONT color="blue"&gt;YouTube&lt;/FONT&gt;&lt;/A&gt;  &lt;A href="https://linkedin.com/in/fowmy" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;FONT color="blue"&gt;Linkedin&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 10:49:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1407124#M595978</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-10-01T10:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dates between two rows</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1407214#M596001</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="262012" data-lia-user-login="craigdent" class="lia-mention lia-mention-user"&gt;craigdent&lt;/a&gt;&amp;nbsp;,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 11:29:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1407214#M596001</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-10-01T11:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dates between two rows</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1407534#M596087</link>
      <description>&lt;P&gt;My .pbix can be found here:&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AkriJK144HMAgZ4OFbq8lT9-LYa8gQ?e=4g9jI4" target="_blank" rel="noopener"&gt;Overtime Report&lt;/A&gt;&amp;nbsp;- wasn't sure how to attached a file as I kept getting an error saying the file type is not supported!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, what I'd like is a dropdown slicer at the top with the Month from the Overtime Deadlines table which the filters the table based on the ApprovedDatestamp - the ApprovedDatestamp must be before the Date that the Month relates to, but after the previous Date above it.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 14:02:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1407534#M596087</guid>
      <dc:creator>craigdent</dc:creator>
      <dc:date>2020-10-01T14:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dates between two rows</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1411921#M597349</link>
      <description>&lt;P&gt;hi&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="262012" data-lia-user-login="craigdent" class="lia-mention lia-mention-user"&gt;craigdent&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm a little confused by your description, what is your &lt;STRONG&gt;expected output&lt;/STRONG&gt; in this sample pbix file.&lt;/P&gt;
&lt;P&gt;Can you give me an example based the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lin&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 02:30:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1411921#M597349</guid>
      <dc:creator>v-lili6-msft</dc:creator>
      <dc:date>2020-10-05T02:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dates between two rows</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1412702#M597586</link>
      <description>&lt;P&gt;Hi Lin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm looking for is a slicer visual which can select from the Date field in the Overtime Deadlines table, which will then filter the main Table visual for those records with an ApprovedDatestamp before the selected date, but on or after the previous Date.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 09:13:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1412702#M597586</guid>
      <dc:creator>craigdent</dc:creator>
      <dc:date>2020-10-05T09:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dates between two rows</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1414926#M598217</link>
      <description>&lt;P&gt;hi&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="262012" data-lia-user-login="craigdent" class="lia-mention lia-mention-user"&gt;craigdent&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you show us the expected output with an example in your sample pbix file, that will be a great help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lin&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 09:43:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Help-with-dates-between-two-rows/m-p/1414926#M598217</guid>
      <dc:creator>v-lili6-msft</dc:creator>
      <dc:date>2020-10-06T09:43:02Z</dc:date>
    </item>
  </channel>
</rss>

