<?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: Setting default value for 'between' (start and end date) date slicer in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Setting-default-value-for-between-start-and-end-date-date-slicer/m-p/3077831#M41229</link>
    <description>&lt;P&gt;Any help will be appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2023 13:48:05 GMT</pubDate>
    <dc:creator>shishanki</dc:creator>
    <dc:date>2023-02-13T13:48:05Z</dc:date>
    <item>
      <title>Setting default value for 'between' (start and end date) date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Setting-default-value-for-between-start-and-end-date-date-slicer/m-p/3068800#M41108</link>
      <description>&lt;P&gt;I need a date slicer (between-mode) that selects the most recent 24 houra data by default... while still allowing end-users to pick any other period (for both start and end dates).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I've seen, this is impossible to accomplish in PowerBI. Is that true?&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 13:48:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Setting-default-value-for-between-start-and-end-date-date-slicer/m-p/3068800#M41108</guid>
      <dc:creator>shishanki</dc:creator>
      <dc:date>2023-02-13T13:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Setting default value for 'between' (start and end date) date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Setting-default-value-for-between-start-and-end-date-date-slicer/m-p/3077831#M41229</link>
      <description>&lt;P&gt;Any help will be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 13:48:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Setting-default-value-for-between-start-and-end-date-date-slicer/m-p/3077831#M41229</guid>
      <dc:creator>shishanki</dc:creator>
      <dc:date>2023-02-13T13:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Setting default value for 'between' (start and end date) date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Setting-default-value-for-between-start-and-end-date-date-slicer/m-p/3082917#M41276</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/452689"&gt;@shishanki&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know, Power BI doesn't support us to set default date in slicer currently.&lt;/P&gt;
&lt;P&gt;Your demand is a good idea, while it is not supported to implement in Power BI currently.&lt;BR /&gt;You can vote up this idea for this function：&lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=7aa2d431-ebcb-ea11-bf21-281878e62223" target="_self"&gt;Set default date in slicer&lt;/A&gt;&lt;BR /&gt;Or you can submit a new idea to improve the Power BI.&lt;BR /&gt;It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a workaround to achieve your goal by unrelated DimDate table and measure. By this way, you need to create two unrelated date tables for rangestart and rangeend.&lt;/P&gt;
&lt;P&gt;My Sample:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_0-1676535891061.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/872806i7E81539B56EA92FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_0-1676535891061.png" alt="RicoZhou_0-1676535891061.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Data model:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_1-1676535901743.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/872807i83AE3BA831086C77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_1-1676535901743.png" alt="RicoZhou_1-1676535901743.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Filter M = 
VAR _RANGESTART =
    SELECTEDVALUE ( RangeStart[Date] )
VAR _RANGEEND =
    SELECTEDVALUE ( RangeEnd[Date] )
VAR _CURRENTDATE =
    MAX ( 'Table'[Date] )
RETURN
    IF (
        ISFILTERED ( RangeStart[Date] ) &amp;amp;&amp;amp; ISFILTERED ( RangeEnd[Date] ),
        IF ( _CURRENTDATE &amp;gt;= _RANGESTART &amp;amp;&amp;amp; _CURRENTDATE &amp;lt;= _RANGEEND, 1, 0 ),
        IF ( _CURRENTDATE = TODAY (), 1, 0 )
    )&lt;/LI-CODE&gt;
&lt;P&gt;Add this measure into visual level filter and set it to show items when value =1.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_2-1676535937644.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/872808iC245266A111B1647/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_2-1676535937644.png" alt="RicoZhou_2-1676535937644.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_3-1676535961411.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/872809iD4DE76605BD3E594/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_3-1676535961411.png" alt="RicoZhou_3-1676535961411.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 08:28:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Setting-default-value-for-between-start-and-end-date-date-slicer/m-p/3082917#M41276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-16T08:28:10Z</dc:date>
    </item>
  </channel>
</rss>

