<?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: Using SELECTVALUE to return previous related incident in a Matrix Table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-SELECTVALUE-to-return-previous-related-incident-in-a/m-p/3636272#M140672</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if whether I understood your question correctly, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file if it suits your requirement.&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;&lt;img /&gt;&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;Responsible App Measure: =
VAR _selectedapp =
    DISTINCT ( Slicer[ResponsibleApp] )
RETURN
    MAXX (
        FILTER ( Data, Data[ResponsibleApp] IN _selectedapp ),
        Data[ResponsibleApp]
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2024 15:57:43 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2024-01-12T15:57:43Z</dc:date>
    <item>
      <title>Using SELECTVALUE to return previous related incident in a Matrix Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-SELECTVALUE-to-return-previous-related-incident-in-a/m-p/3635719#M140651</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been struggling with this one for quite some time and was hoping someone could help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have a table that contains major incident data including incident numbers and responsible application (that caused the issue). For simplicity sake the table looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;IncidentNumber&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;ResponsibleApp&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1.1.23&lt;/TD&gt;&lt;TD&gt;INC1&lt;/TD&gt;&lt;TD&gt;App1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2.1.23&lt;/TD&gt;&lt;TD&gt;INC2&lt;/TD&gt;&lt;TD&gt;App2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3.1.23&lt;/TD&gt;&lt;TD&gt;INC3&lt;/TD&gt;&lt;TD&gt;App1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4.1.23&lt;/TD&gt;&lt;TD&gt;INC4&lt;/TD&gt;&lt;TD&gt;App1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5.1.23&lt;/TD&gt;&lt;TD&gt;INC5&lt;/TD&gt;&lt;TD&gt;App3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Outcome&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have a report page with a slicer were the user is able to select the IncidentNumber. I want to create a table in the report to display all the previous incidents that are related to the same ResponsibleApp for the incident they have chosen in the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: If a user selects INC1 in the slicer, the table would display the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;IncidentNumber&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;ResponsibleApp&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;INC1&lt;/TD&gt;&lt;TD&gt;App1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;INC3&lt;/TD&gt;&lt;TD&gt;App1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;INC4&lt;/TD&gt;&lt;TD&gt;App1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible? Any help would be greatly appreciated on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 11:27:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-SELECTVALUE-to-return-previous-related-incident-in-a/m-p/3635719#M140651</guid>
      <dc:creator>LFORS</dc:creator>
      <dc:date>2024-01-12T11:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using SELECTVALUE to return previous related incident in a Matrix Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-SELECTVALUE-to-return-previous-related-incident-in-a/m-p/3636272#M140672</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if whether I understood your question correctly, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file if it suits your requirement.&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;&lt;img /&gt;&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;Responsible App Measure: =
VAR _selectedapp =
    DISTINCT ( Slicer[ResponsibleApp] )
RETURN
    MAXX (
        FILTER ( Data, Data[ResponsibleApp] IN _selectedapp ),
        Data[ResponsibleApp]
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 15:57:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-SELECTVALUE-to-return-previous-related-incident-in-a/m-p/3636272#M140672</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-01-12T15:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using SELECTVALUE to return previous related incident in a Matrix Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-SELECTVALUE-to-return-previous-related-incident-in-a/m-p/3636889#M140715</link>
      <description>&lt;P&gt;You are a life saver, this worked. Thanks alot, I really appreciate this!&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2024 01:33:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-SELECTVALUE-to-return-previous-related-incident-in-a/m-p/3636889#M140715</guid>
      <dc:creator>LFORS</dc:creator>
      <dc:date>2024-01-13T01:33:03Z</dc:date>
    </item>
  </channel>
</rss>

