<?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 a slicer to show a specific column in matrix visual in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-slicer-to-show-a-specific-column-in-matrix-visual/m-p/3881035#M151495</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="734864" data-lia-user-login="hctrgrc" class="lia-mention lia-mention-user"&gt;hctrgrc&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;You have the right idea!&lt;/P&gt;
&lt;P&gt;The Table data is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please follow these steps:&lt;/P&gt;
&lt;P&gt;1. Use the following DAX expression to create a measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales = 
 VAR _a = SELECTEDVALUE('Table 2'[Currency])
 VAR _b = IF(_a = "USD",SUM('Table'[Sales for USD]),SUM('Table'[Sales for MXP]))
 RETURN _b&lt;/LI-CODE&gt;
&lt;P&gt;2.Final output&lt;/P&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;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2024 02:27:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-01T02:27:21Z</dc:date>
    <item>
      <title>Using a slicer to show a specific column in matrix visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-slicer-to-show-a-specific-column-in-matrix-visual/m-p/3880780#M151492</link>
      <description>&lt;P&gt;Hello, I'm new to Power BI and I've recently come across a scenario where I have two sales columns, each one is a different currency. I would like to have a matrix visual and a slicer on top where you can choose which currency to show. This would show in the matrix the correct income column.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have [Ventas_MXP] and [Ventas_USD]. These are my sales columns for USD and MXP (Mexican peso).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I would like to select USD in the Currency slicer and filter from the matrix that sales column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking of creating a new column and maybe using the Dax function "SELECTEDVALUE"? I'm not sure if this is the best way to do so.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 23:29:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-slicer-to-show-a-specific-column-in-matrix-visual/m-p/3880780#M151492</guid>
      <dc:creator>hctrgrc</dc:creator>
      <dc:date>2024-04-30T23:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using a slicer to show a specific column in matrix visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-slicer-to-show-a-specific-column-in-matrix-visual/m-p/3881035#M151495</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="734864" data-lia-user-login="hctrgrc" class="lia-mention lia-mention-user"&gt;hctrgrc&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;You have the right idea!&lt;/P&gt;
&lt;P&gt;The Table data is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please follow these steps:&lt;/P&gt;
&lt;P&gt;1. Use the following DAX expression to create a measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales = 
 VAR _a = SELECTEDVALUE('Table 2'[Currency])
 VAR _b = IF(_a = "USD",SUM('Table'[Sales for USD]),SUM('Table'[Sales for MXP]))
 RETURN _b&lt;/LI-CODE&gt;
&lt;P&gt;2.Final output&lt;/P&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;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 02:27:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-slicer-to-show-a-specific-column-in-matrix-visual/m-p/3881035#M151495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-01T02:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using a slicer to show a specific column in matrix visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-slicer-to-show-a-specific-column-in-matrix-visual/m-p/3886365#M151605</link>
      <description>&lt;P&gt;Thank you very much! It worked just as you showed!&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 14:08:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-slicer-to-show-a-specific-column-in-matrix-visual/m-p/3886365#M151605</guid>
      <dc:creator>hctrgrc</dc:creator>
      <dc:date>2024-05-02T14:08:33Z</dc:date>
    </item>
  </channel>
</rss>

