<?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 Slicers with 2 dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3910559#M152302</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="585150" data-lia-user-login="johnbasha33" class="lia-mention lia-mention-user"&gt;johnbasha33&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to drop one of the columns of end date or start date and store it in a table of calculations and put it into the slicer as shown in the following figure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;End day table = SUMMARIZE('Table','Table'[End Date])&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I created the following two metrics:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;share price of end date = 
VAR _end_day = SELECTEDVALUE('End day table'[End Date])
RETURN CALCULATE(SUM('Table'[Share Price]),FILTER(ALL('Table'),'Table'[End Date]=_end_day))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;share price of start date = 
VAR _start_day = SELECTEDVALUE('Table'[Start Date])
RETURN CALCULATE(SUM('Table'[Share Price]),FILTER(
    ALL('Table'),
    'Table'[Start Date]=_start_day
)
)&lt;/LI-CODE&gt;&lt;P&gt;I use both metrics in the table visual:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The results are as follows:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;hackcrr&lt;/P&gt;&lt;P&gt;If this post helps, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 May 2024 11:02:44 GMT</pubDate>
    <dc:creator>hackcrr</dc:creator>
    <dc:date>2024-05-11T11:02:44Z</dc:date>
    <item>
      <title>Dynamic Slicers with 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3901146#M152019</link>
      <description>&lt;P&gt;Hi there esteemed community members.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a scenario as below&lt;BR /&gt;below is a sample data, i have share prices for Apple for different dates.&lt;/P&gt;&lt;P&gt;i duplicated date column as start date and end date.&lt;/P&gt;&lt;P&gt;i want to use these 2 dates as 2 slicers.&lt;/P&gt;&lt;P&gt;if user select start date and end date.&lt;/P&gt;&lt;P&gt;bottom table should display what is the share price of start date and end date in 2 columns.&lt;/P&gt;&lt;P&gt;basically i need 2 measures.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have been trying with calender table and different methods. it only works for start date, as soon as i select start date end date slicer unable to select.&amp;nbsp; any thoughts on this how to achieve ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&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;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="93408" data-lia-user-login="mwegener" class="lia-mention lia-mention-user"&gt;mwegener&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="107764" data-lia-user-login="Arul" class="lia-mention lia-mention-user"&gt;Arul&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Company&lt;/TD&gt;&lt;TD&gt;Share Price&lt;/TD&gt;&lt;TD&gt;Start Date&lt;/TD&gt;&lt;TD&gt;End Date&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;$10.&lt;/TD&gt;&lt;TD&gt;1/5/2024&lt;/TD&gt;&lt;TD&gt;1/5/2024&lt;/TD&gt;&lt;TD&gt;1/5/2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;$15.&lt;/TD&gt;&lt;TD&gt;5/5/2024&lt;/TD&gt;&lt;TD&gt;5/5/2024&lt;/TD&gt;&lt;TD&gt;5/5/2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;$23.&lt;/TD&gt;&lt;TD&gt;12/5/2024&lt;/TD&gt;&lt;TD&gt;12/5/2024&lt;/TD&gt;&lt;TD&gt;12/5/2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;$25.&lt;/TD&gt;&lt;TD&gt;5/15/2024&lt;/TD&gt;&lt;TD&gt;5/15/2024&lt;/TD&gt;&lt;TD&gt;5/15/2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;$32.&lt;/TD&gt;&lt;TD&gt;5/18/2024&lt;/TD&gt;&lt;TD&gt;5/18/2024&lt;/TD&gt;&lt;TD&gt;5/18/2024&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 08 May 2024 06:20:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3901146#M152019</guid>
      <dc:creator>johnbasha33</dc:creator>
      <dc:date>2024-05-08T06:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Slicers with 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3901159#M152022</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="585150" data-lia-user-login="johnbasha33" class="lia-mention lia-mention-user"&gt;johnbasha33&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Could give us an example of what do you need in your visual and in which visual?&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 06:24:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3901159#M152022</guid>
      <dc:creator>Arul</dc:creator>
      <dc:date>2024-05-08T06:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Slicers with 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3901233#M152025</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="107764" data-lia-user-login="Arul" class="lia-mention lia-mention-user"&gt;Arul&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;i am trying below, i want to see the start date price and end date price in a table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 07:01:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3901233#M152025</guid>
      <dc:creator>johnbasha33</dc:creator>
      <dc:date>2024-05-08T07:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Slicers with 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3901274#M152027</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="585150" data-lia-user-login="johnbasha33" class="lia-mention lia-mention-user"&gt;johnbasha33&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Do you want them in two visuals?&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 07:12:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3901274#M152027</guid>
      <dc:creator>Arul</dc:creator>
      <dc:date>2024-05-08T07:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Slicers with 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3901784#M152045</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="107764" data-lia-user-login="Arul" class="lia-mention lia-mention-user"&gt;Arul&lt;/a&gt;&amp;nbsp;no, in a single visual with 2 columns, share price of start date and share price of end date&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 10:10:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3901784#M152045</guid>
      <dc:creator>johnbasha33</dc:creator>
      <dc:date>2024-05-08T10:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Slicers with 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3910559#M152302</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="585150" data-lia-user-login="johnbasha33" class="lia-mention lia-mention-user"&gt;johnbasha33&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to drop one of the columns of end date or start date and store it in a table of calculations and put it into the slicer as shown in the following figure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;End day table = SUMMARIZE('Table','Table'[End Date])&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I created the following two metrics:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;share price of end date = 
VAR _end_day = SELECTEDVALUE('End day table'[End Date])
RETURN CALCULATE(SUM('Table'[Share Price]),FILTER(ALL('Table'),'Table'[End Date]=_end_day))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;share price of start date = 
VAR _start_day = SELECTEDVALUE('Table'[Start Date])
RETURN CALCULATE(SUM('Table'[Share Price]),FILTER(
    ALL('Table'),
    'Table'[Start Date]=_start_day
)
)&lt;/LI-CODE&gt;&lt;P&gt;I use both metrics in the table visual:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The results are as follows:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;hackcrr&lt;/P&gt;&lt;P&gt;If this post helps, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 11:02:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3910559#M152302</guid>
      <dc:creator>hackcrr</dc:creator>
      <dc:date>2024-05-11T11:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Slicers with 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3912143#M152329</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can unpivot Start date and end date columns, so you will get values column in which all dates will be stored ,&lt;BR /&gt;now you can use values column in between slicer and get share price from date range&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 May 2024 19:05:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3912143#M152329</guid>
      <dc:creator>GauravAher73</dc:creator>
      <dc:date>2024-05-12T19:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Slicers with 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3912610#M152337</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="732712" data-lia-user-login="GauravAher73" class="lia-mention lia-mention-user"&gt;GauravAher73&lt;/a&gt;&amp;nbsp; this seems to be a working solution, i am surprised it is that simple. would you please share me the pbix for the same? i will review it and will mark it as solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 04:11:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3912610#M152337</guid>
      <dc:creator>johnbasha33</dc:creator>
      <dc:date>2024-05-13T04:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Slicers with 2 dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3912615#M152338</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="740391" data-lia-user-login="hackcrr" class="lia-mention lia-mention-user"&gt;hackcrr&lt;/a&gt;&amp;nbsp; thanks for your time in looking into this, this seems to be a workable solution, let me review it a bit and will confirm.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 04:13:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Slicers-with-2-dates/m-p/3912615#M152338</guid>
      <dc:creator>johnbasha33</dc:creator>
      <dc:date>2024-05-13T04:13:40Z</dc:date>
    </item>
  </channel>
</rss>

