<?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: Show 30 days data in visual before the date selected in date slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-30-days-data-in-visual-before-the-date-selected-in-date/m-p/1527731#M29945</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried you logic but it is giving me only two dates. It will be more helpful , if you could share a sample PBI file for the same.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2020 05:20:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-12-02T05:20:27Z</dc:date>
    <item>
      <title>Show 30 days data in visual before the date selected in date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-30-days-data-in-visual-before-the-date-selected-in-date/m-p/1527090#M29916</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a date slicer and a line chart. My requirement is on selecting a date in date slicer , 30 days of data should be displayed in line chart ahead of date selected in date slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If someone came across same scenario. Please suggest the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vaishali&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 18:24:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-30-days-data-in-visual-before-the-date-selected-in-date/m-p/1527090#M29916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-01T18:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Show 30 days data in visual before the date selected in date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-30-days-data-in-visual-before-the-date-selected-in-date/m-p/1527228#M29929</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;, the solution is a bit tricky given the fact that filter (selection of a date in the slicer) propogates from slicer to chart,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;New Measure =
VAR __date_selected = MAX ( 'Calendar'[Date] ) // assuming there exists a calendar table in your model, and Calendar[Date] is sliced

VAR __period = DATESINPERIOD ( 'Calendar'[Date], __date_selected, -30, DAY )

VAR __inbetween =
    CALCULATE ( MAX ( factTable[Date] ), ALL ( 'Calendar'[Date] ) ) IN __period // slcier must be removed in order to keep all other dates in sight

RETURN
    IF ( __inbetween, [Old Measure] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 20:57:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-30-days-data-in-visual-before-the-date-selected-in-date/m-p/1527228#M29929</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-12-01T20:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Show 30 days data in visual before the date selected in date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-30-days-data-in-visual-before-the-date-selected-in-date/m-p/1527580#M29938</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , You can get the last 30 days like the example with help from the date table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rolling 30 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],max('Date'[Date],-12,DAY)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this will not give trend for last 30 Days. Follow the approach in the video&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=duMSovyosXE" target="_blank"&gt;https://www.youtube.com/watch?v=duMSovyosXE&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 02:40:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-30-days-data-in-visual-before-the-date-selected-in-date/m-p/1527580#M29938</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-12-02T02:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Show 30 days data in visual before the date selected in date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-30-days-data-in-visual-before-the-date-selected-in-date/m-p/1527708#M29944</link>
      <description>&lt;P&gt;&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;&amp;nbsp; Thanks for the logic&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logic is working fine but still the chart is showing data only for the date selected in the slicer and not of past 12 or 30 days.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 04:51:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-30-days-data-in-visual-before-the-date-selected-in-date/m-p/1527708#M29944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-02T04:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Show 30 days data in visual before the date selected in date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-30-days-data-in-visual-before-the-date-selected-in-date/m-p/1527731#M29945</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried you logic but it is giving me only two dates. It will be more helpful , if you could share a sample PBI file for the same.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 05:20:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-30-days-data-in-visual-before-the-date-selected-in-date/m-p/1527731#M29945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-02T05:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Show 30 days data in visual before the date selected in date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-30-days-data-in-visual-before-the-date-selected-in-date/m-p/1528444#M29956</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;, as you wish, I attached &lt;A href="https://1drv.ms/u/s!AsDP3LYI8umsgUUt_5G7dH2YvK2H?e=YaCfpM" target="_blank" rel="noopener"&gt;&lt;EM&gt;&lt;STRONG&gt;a pbix file&lt;/STRONG&gt;&lt;/EM&gt;&lt;/A&gt; for your reference.&lt;/P&gt;&lt;P&gt;It's a simplified project I was once engaged in. It's with more flexibilities to display previous 1 ~ 30 days before a chosen date.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 10:56:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-30-days-data-in-visual-before-the-date-selected-in-date/m-p/1528444#M29956</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-12-02T10:56:38Z</dc:date>
    </item>
  </channel>
</rss>

