<?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 Previous User Selected Value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-User-Selected-Value/m-p/3469969#M132487</link>
    <description>&lt;P&gt;I don't think this is possible, but I thought I'd ask here in case I'm missing something. Imagine a scenario with a table that has a single column called &lt;EM&gt;Item&lt;/EM&gt;. In this column are the values A-E. Item is used in a slicer. I would like two measures: [Selected Item] and [Previously Selected Item]. The DAX for [Selected Item] is simple. In this example, if the user were to select the slicer option "D" and then subsequently change the selection in the slicer to option "B", is it possible to set up [Previously Selected Item] to return "D"? As far as I know, there is no history of the filter context, but I wouldn't be surprised if there was some some set of functions out there that would allow for this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;See the below screenshot for the desired result in the scenario described above:&lt;/P&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 11 Oct 2023 00:20:58 GMT</pubDate>
    <dc:creator>giammariam</dc:creator>
    <dc:date>2023-10-11T00:20:58Z</dc:date>
    <item>
      <title>Previous User Selected Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-User-Selected-Value/m-p/3469969#M132487</link>
      <description>&lt;P&gt;I don't think this is possible, but I thought I'd ask here in case I'm missing something. Imagine a scenario with a table that has a single column called &lt;EM&gt;Item&lt;/EM&gt;. In this column are the values A-E. Item is used in a slicer. I would like two measures: [Selected Item] and [Previously Selected Item]. The DAX for [Selected Item] is simple. In this example, if the user were to select the slicer option "D" and then subsequently change the selection in the slicer to option "B", is it possible to set up [Previously Selected Item] to return "D"? As far as I know, there is no history of the filter context, but I wouldn't be surprised if there was some some set of functions out there that would allow for this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;See the below screenshot for the desired result in the scenario described above:&lt;/P&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Oct 2023 00:20:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-User-Selected-Value/m-p/3469969#M132487</guid>
      <dc:creator>giammariam</dc:creator>
      <dc:date>2023-10-11T00:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Previous User Selected Value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-User-Selected-Value/m-p/3470405#M132501</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;As you suspected it is not possible for Power BI to "remember" the filter states user selects. This information isn't stored anywhere and is lost when the filter state changes.&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 06:17:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-User-Selected-Value/m-p/3470405#M132501</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2023-10-11T06:17:43Z</dc:date>
    </item>
  </channel>
</rss>

