<?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 Selected Period VS previous Period in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Period-VS-previous-Period/m-p/1263404#M21104</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I need some help on below question. I have a table which contains different comments for different weeks, we do not necessarily have comment each week. However, there is ID for each week that we put comment there, like what you can see in below data. I want to have a slicer to select a date and then in another table we see the comments for both selected period and previous one. Thanks in advance.&lt;BR /&gt;Raha&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;StatusComments&lt;/TD&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5/04/2020&lt;/TD&gt;&lt;TD&gt;com1&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;26/04/2020&lt;/TD&gt;&lt;TD&gt;com2&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10/05/2020&lt;/TD&gt;&lt;TD&gt;com3&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7/06/2020&lt;/TD&gt;&lt;TD&gt;come4&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/07/2020&lt;/TD&gt;&lt;TD&gt;com5&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Thu, 30 Jul 2020 23:44:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-30T23:44:29Z</dc:date>
    <item>
      <title>Selected Period VS previous Period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Period-VS-previous-Period/m-p/1263404#M21104</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I need some help on below question. I have a table which contains different comments for different weeks, we do not necessarily have comment each week. However, there is ID for each week that we put comment there, like what you can see in below data. I want to have a slicer to select a date and then in another table we see the comments for both selected period and previous one. Thanks in advance.&lt;BR /&gt;Raha&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;StatusComments&lt;/TD&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5/04/2020&lt;/TD&gt;&lt;TD&gt;com1&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;26/04/2020&lt;/TD&gt;&lt;TD&gt;com2&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10/05/2020&lt;/TD&gt;&lt;TD&gt;com3&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7/06/2020&lt;/TD&gt;&lt;TD&gt;come4&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/07/2020&lt;/TD&gt;&lt;TD&gt;com5&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 30 Jul 2020 23:44:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Period-VS-previous-Period/m-p/1263404#M21104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T23:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Period VS previous Period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Period-VS-previous-Period/m-p/1263474#M21106</link>
      <description>&lt;P&gt;Can anyone help me?please?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 01:45:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Period-VS-previous-Period/m-p/1263474#M21106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-31T01:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Period VS previous Period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Period-VS-previous-Period/m-p/1263548#M21107</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , for WOW or any custom period you can so it using RANK.&lt;/P&gt;
&lt;P&gt;Power BI — WTD Questions— Time Intelligence 4–5&lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure you have a separate date or period table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Normal period&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — YTD Questions — Time Intelligence 1–5&lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a&lt;/A&gt;&lt;BR /&gt;Power BI — QTD Questions — Time Intelligence 2–5&lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839&lt;/A&gt;&lt;BR /&gt;Power BI — MTD Questions — Time Intelligence 3–5 &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer : &lt;BR /&gt;&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions&lt;/A&gt; &lt;BR /&gt;&lt;A href="https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi" target="_blank"&gt;https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;See if my webinar on Time Intelligence can help: &lt;A href="https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-YTD-LYTD-Week-Over-Week/m-p/1051626#M184" target="_blank"&gt;https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-YTD-LYTD-Week-Over-Week/m-p/1051626#M184&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Appreciate your Kudos.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 02:28:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Period-VS-previous-Period/m-p/1263548#M21107</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-07-31T02:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Period VS previous Period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Period-VS-previous-Period/m-p/1263580#M21109</link>
      <description>&lt;P&gt;First step: create a calculated table and feed it into the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;Table 2 = values(Comments[Date])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second step: create a measure&lt;/P&gt;&lt;LI-CODE lang="java"&gt;Visible := 
var s = SELECTEDVALUE('Table 2'[Date])
var c = max(Comments[ID])
var t = CALCULATE(max(Comments[ID]),all(Comments),Comments[Date]=s)
return c=t || c=t-1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Third step: use the measure to control the visibility of the comments in your table visual&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;</description>
      <pubDate>Fri, 31 Jul 2020 02:42:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Period-VS-previous-Period/m-p/1263580#M21109</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-31T02:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Period VS previous Period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Period-VS-previous-Period/m-p/1263665#M21116</link>
      <description>&lt;P&gt;Thanks so much, that was what I needed. But I can not just filter on true value. Not sure how I should do it. It is showing both true and false values.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 03:46:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Period-VS-previous-Period/m-p/1263665#M21116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-31T03:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Period VS previous Period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Period-VS-previous-Period/m-p/1263696#M21119</link>
      <description>&lt;P&gt;under "Filters in this visual"&amp;nbsp; set the "Visible"&amp;nbsp; filter to "True"&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 04:07:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Period-VS-previous-Period/m-p/1263696#M21119</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-31T04:07:13Z</dc:date>
    </item>
  </channel>
</rss>

