<?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: Dynamic end date slicer based on start date slicer selection in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-end-date-slicer-based-on-start-date-slicer-selection/m-p/2206741#M51970</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;Thanks for sharing your solution here, it will help the others in the community find the solution easily if they face the same problem with you. Much appreciated!&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Thu, 25 Nov 2021 01:21:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-11-25T01:21:04Z</dc:date>
    <item>
      <title>Dynamic end date slicer based on start date slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-end-date-slicer-based-on-start-date-slicer-selection/m-p/2196036#M51439</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to have two slicers as start_date and end_date. I want to custom end_date list based on start_date slicer selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to create a end_date table by passing selectedvalue from start_date slicer like below but selectedvalue is returning null&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;end_date_table = 
var selected_start_date = SELECTEDVALUE(start_date_table[Start Date])
return 
ADDCOLUMNS(
    CALENDAR(format(selected_start_date, "YYYYMMDD"), DATE(2021,8,30)),
    "End Date", FORMAT([Date], "YYYY-MM-DD")
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Error:&amp;nbsp;Cannot convert value '' of type Text to type Date.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to follow this solution by creating parameters still could't achieve the desired solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Passing-Parameters-in-measures/m-p/208276" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Desktop/Passing-Parameters-in-measures/m-p/208276&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;pbix file link - removed&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 20:25:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-end-date-slicer-based-on-start-date-slicer-selection/m-p/2196036#M51439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-24T20:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic end date slicer based on start date slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-end-date-slicer-based-on-start-date-slicer-selection/m-p/2196327#M51454</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , you can not create a new&amp;nbsp; table based on slicer value &lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 10:03:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-end-date-slicer-based-on-start-date-slicer-selection/m-p/2196327#M51454</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-11-18T10:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic end date slicer based on start date slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-end-date-slicer-based-on-start-date-slicer-selection/m-p/2197460#M51516</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;&amp;nbsp; Is there a workaround? or how do I make sure my end_date values are always greater than start_date values. I can't have a single slicer for a date. I need to have two slicers as I have to pass these values to the M query as a parameter.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 21:20:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-end-date-slicer-based-on-start-date-slicer-selection/m-p/2197460#M51516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-18T21:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic end date slicer based on start date slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-end-date-slicer-based-on-start-date-slicer-selection/m-p/2203359#M51760</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please review the solution in the following thread and check whether that is what you want.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Dependent-date-slicers/td-p/1485956" target="_self"&gt;&lt;STRONG&gt;Dependent date slicers&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;1. Create two calendar tables: Calendar A and Calendar B.&lt;/P&gt;
&lt;img /&gt;
&lt;P&gt;2. On page 1, create a date slicer with 'Calendar A'[Start of Month] as field. Copy the date slicer to page 2 and sync these two slicers as below. Hide the slicer on page 2.&lt;/P&gt;
&lt;img /&gt;
&lt;P&gt;3. Create measures:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;Selected Date = SELECTEDVALUE('Calendar A'[Start Of Month])&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;Measure = IF(MAX('Calendar B'[Start Of Month])&amp;lt;=[Selected Date],1,0)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;4. On page 2, create a new date slicer with 'Calendar B'[Start of Month] as field. Add Measure into this slicer's visual filter and set value is 1.&amp;nbsp;&lt;/P&gt;
&lt;img /&gt;
&lt;P&gt;5. The values may not be selected automatically, so I show "Select all" option in the slicer for user to select all the dates before the date selected on page 1.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 09:34:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-end-date-slicer-based-on-start-date-slicer-selection/m-p/2203359#M51760</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-23T09:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic end date slicer based on start date slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-end-date-slicer-based-on-start-date-slicer-selection/m-p/2206493#M51941</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;. The above approach works. But got below error when I tried to bind a parameter to start date and end date&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;&lt;P&gt;Solution to my question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;start_date_table = 
ADDCOLUMNS(
    CALENDAR(DATE(2021,8,1), DATE(2021,8,30)),
    "Start Date", FORMAT([Date], "YYYY-MM-DD")
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;end_date_table = 
ADDCOLUMNS(
    CALENDAR(DATE(2021,8,1), DATE(2021,8,30)),
    "End Date", FORMAT([Date], "YYYY-MM-DD")
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure = IF(MAX(end_date_table[End Date]) &amp;gt;= [selected_start_date], 1, 0)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;selected_start_date = SELECTEDVALUE(start_date_table[Start Date])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On page1, create a slicer with Start Date&lt;/P&gt;&lt;P&gt;Copy paste the slicer to page two&lt;/P&gt;&lt;P&gt;You get a pop up asking for sync - click sync&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then on page two create slicer with End Date&lt;/P&gt;&lt;P&gt;drag on drop measure field into the End Date slicer and set measure is 1. Apply filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hide the page 1&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 23:52:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-end-date-slicer-based-on-start-date-slicer-selection/m-p/2206493#M51941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-24T23:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic end date slicer based on start date slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-end-date-slicer-based-on-start-date-slicer-selection/m-p/2206741#M51970</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;Thanks for sharing your solution here, it will help the others in the community find the solution easily if they face the same problem with you. Much appreciated!&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 01:21:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-end-date-slicer-based-on-start-date-slicer-selection/m-p/2206741#M51970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-25T01:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic end date slicer based on start date slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-end-date-slicer-based-on-start-date-slicer-selection/m-p/2208279#M52049</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting the below error when I tried to bind a parameter to start date and end date. Can you please help?&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>Thu, 25 Nov 2021 19:38:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-end-date-slicer-based-on-start-date-slicer-selection/m-p/2208279#M52049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-25T19:38:17Z</dc:date>
    </item>
  </channel>
</rss>

