<?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 Issue using SELECTEDVALUE for selecting a specific date. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-using-SELECTEDVALUE-for-selecting-a-specific-date/m-p/3180149#M114949</link>
    <description>&lt;P&gt;This code returns the correct value in a table "visual"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But this to a column in table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sDate = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;selectedDate&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SelDates&lt;/SPAN&gt;&lt;SPAN&gt;[ListedDate]&lt;/SPAN&gt;&lt;SPAN&gt;) -&lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;selectedDate&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Apr 2023 16:20:40 GMT</pubDate>
    <dc:creator>nabullock</dc:creator>
    <dc:date>2023-04-10T16:20:40Z</dc:date>
    <item>
      <title>Issue using SELECTEDVALUE for selecting a specific date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-using-SELECTEDVALUE-for-selecting-a-specific-date/m-p/3180149#M114949</link>
      <description>&lt;P&gt;This code returns the correct value in a table "visual"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But this to a column in table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sDate = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;selectedDate&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SelDates&lt;/SPAN&gt;&lt;SPAN&gt;[ListedDate]&lt;/SPAN&gt;&lt;SPAN&gt;) -&lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;selectedDate&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 16:20:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-using-SELECTEDVALUE-for-selecting-a-specific-date/m-p/3180149#M114949</guid>
      <dc:creator>nabullock</dc:creator>
      <dc:date>2023-04-10T16:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issue using SELECTEDVALUE for selecting a specific date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-using-SELECTEDVALUE-for-selecting-a-specific-date/m-p/3180191#M114955</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="184703" data-lia-user-login="nabullock" class="lia-mention lia-mention-user"&gt;nabullock&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You just need a CALCULATE:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sDate =
VAR selectedDate =
    CALCULATE ( SELECTEDVALUE ( SelDates[ListedDate] ) ) - 30
RETURN
    selectedDate&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;If this solves your question, Please give it a thumbs up and accept it as a solution to make it easier for the others to find what they are looking for.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;Regards,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;Loran&lt;/FONT&gt;&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>Mon, 10 Apr 2023 17:06:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-using-SELECTEDVALUE-for-selecting-a-specific-date/m-p/3180191#M114955</guid>
      <dc:creator>MohammadLoran25</dc:creator>
      <dc:date>2023-04-10T17:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue using SELECTEDVALUE for selecting a specific date.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-using-SELECTEDVALUE-for-selecting-a-specific-date/m-p/3180540#M114972</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 21:29:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-using-SELECTEDVALUE-for-selecting-a-specific-date/m-p/3180540#M114972</guid>
      <dc:creator>nabullock</dc:creator>
      <dc:date>2023-04-10T21:29:10Z</dc:date>
    </item>
  </channel>
</rss>

