<?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: If value equals X then display rows a, b and c in matrix visual else in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-equals-X-then-display-rows-a-b-and-c-in-matrix-visual/m-p/2881728#M93301</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465993" data-lia-user-login="EMSSS22" class="lia-mention lia-mention-user"&gt;EMSSS22&lt;/a&gt; , if these are row values, you can control them using measures.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Switch(selectedvalues(Value[Value]),&lt;/P&gt;
&lt;P&gt;"X", calculate([Measure], filter(Table, Table[Metric] in {" MPC Current", "MPC Budget", "MPC Variance"}) ,&lt;/P&gt;
&lt;P&gt;[Measure]&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2022 03:00:47 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-11-03T03:00:47Z</dc:date>
    <item>
      <title>If value equals X then display rows a, b and c in matrix visual else</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-equals-X-then-display-rows-a-b-and-c-in-matrix-visual/m-p/2881306#M93278</link>
      <description>&lt;P&gt;Someone please help me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to show data in a matrix depending on a value in another column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If value = x - I need to show rows MPC Current, MPC Budget, MPC Variance, NCR Current, NCR Budget, NCR Variance&lt;/P&gt;&lt;P&gt;else&amp;nbsp;&lt;/P&gt;&lt;P&gt;If value = y - I need to show all other rows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Am I going about this the wrong way? How do I do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 21:10:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-equals-X-then-display-rows-a-b-and-c-in-matrix-visual/m-p/2881306#M93278</guid>
      <dc:creator>EMSSS22</dc:creator>
      <dc:date>2022-11-02T21:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: If value equals X then display rows a, b and c in matrix visual else</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-equals-X-then-display-rows-a-b-and-c-in-matrix-visual/m-p/2881728#M93301</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465993" data-lia-user-login="EMSSS22" class="lia-mention lia-mention-user"&gt;EMSSS22&lt;/a&gt; , if these are row values, you can control them using measures.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Switch(selectedvalues(Value[Value]),&lt;/P&gt;
&lt;P&gt;"X", calculate([Measure], filter(Table, Table[Metric] in {" MPC Current", "MPC Budget", "MPC Variance"}) ,&lt;/P&gt;
&lt;P&gt;[Measure]&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 03:00:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-equals-X-then-display-rows-a-b-and-c-in-matrix-visual/m-p/2881728#M93301</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-11-03T03:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: If value equals X then display rows a, b and c in matrix visual else</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-equals-X-then-display-rows-a-b-and-c-in-matrix-visual/m-p/2882137#M93322</link>
      <description>&lt;P&gt;Hi，&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465993" data-lia-user-login="EMSSS22" class="lia-mention lia-mention-user"&gt;EMSSS22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add a custom filter measure and drag it to visual filter pane to filter data.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;filter =
SWITCH (
    SELECTEDVALUE ( Slicer[Value] ),
    "x",
        IF (
            SELECTEDVALUE ( Sheet1[row] )
                IN {
                "MPC Current",
                "MPC Budget",
                "MPC Variance",
                "NCR Current",
                "NCR Budget",
                "NCR Variance"
            },
            1,
            0
        ),
    "y",
        IF (
            NOT SELECTEDVALUE ( Sheet1[row] )
                IN {
                "MPC Current",
                "MPC Budget",
                "MPC Variance",
                "NCR Current",
                "NCR Budget",
                "NCR Variance"
            },
            1,
            0
        ),
    1
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please check my attached pbix for more details.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 07:43:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-equals-X-then-display-rows-a-b-and-c-in-matrix-visual/m-p/2882137#M93322</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-11-03T07:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: If value equals X then display rows a, b and c in matrix visual else</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-equals-X-then-display-rows-a-b-and-c-in-matrix-visual/m-p/2897443#M94265</link>
      <description>&lt;P&gt;Thats great thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way of making the slicer automatically detect whether it's 0 or 1 based off another field? rather then manually having to select the right number?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look forward to hearing back and thanks for all the help!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 11:43:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-equals-X-then-display-rows-a-b-and-c-in-matrix-visual/m-p/2897443#M94265</guid>
      <dc:creator>EMSSS22</dc:creator>
      <dc:date>2022-11-10T11:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: If value equals X then display rows a, b and c in matrix visual else</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-equals-X-then-display-rows-a-b-and-c-in-matrix-visual/m-p/2898850#M94337</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465993" data-lia-user-login="EMSSS22" class="lia-mention lia-mention-user"&gt;EMSSS22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand correctly, you don't want to use slicers to control data filtering. If so, please delete the slicer and&lt;/P&gt;
&lt;P&gt;replace 'SELECTEDVALUE(Slicer[Value])' with 'SELECTEDVALUE(Table[Another field])' in the original formula.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 01:50:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-value-equals-X-then-display-rows-a-b-and-c-in-matrix-visual/m-p/2898850#M94337</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-11-11T01:50:06Z</dc:date>
    </item>
  </channel>
</rss>

