<?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: Power BI SWITCH in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SWITCH/m-p/2383063#M61648</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365018" data-lia-user-login="ruxandraalina" class="lia-mention lia-mention-user"&gt;ruxandraalina&lt;/a&gt; , Seem like you need axis slicer. &lt;/P&gt;
&lt;P&gt;One is to add both of them on axis, As ask user to drill using parallel line&lt;/P&gt;
&lt;P&gt;The second is enable personalization&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other are bookmark and unpivot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Axis Slicer &lt;BR /&gt;Three approaches from Guyinacube &lt;A href="https://www.youtube.com/watch?v=dYmzb5UMkXw" target="_blank"&gt;https://www.youtube.com/watch?v=dYmzb5UMkXw&lt;/A&gt;&lt;BR /&gt;Dynamically change chart axis in Power BI &lt;BR /&gt;bookmark -https://blog.crossjoin.co.uk/2018/04/20/dynamically-changing-a-chart-axis-in-power-bi-using-bookmarks-and-buttons/ &lt;BR /&gt;&lt;A href="https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive" target="_blank"&gt;https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=6jeSIRpjv0M" target="_blank"&gt;https://www.youtube.com/watch?v=6jeSIRpjv0M&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://datamonkeysite.com/2020/10/22/change-dimension-dynamically-using-parameter-in-powerbi/" target="_blank"&gt;https://datamonkeysite.com/2020/10/22/change-dimension-dynamically-using-parameter-in-powerbi/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2022 08:46:31 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-03-09T08:46:31Z</dc:date>
    <item>
      <title>Power BI SWITCH</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SWITCH/m-p/2382991#M61642</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a turnover table where I calculate numerous turnover-related metrics inside a single measure using the switch() formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;All Metrics = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;category&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FIRSTNONBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'0_Categories'[Category]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;metric&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;category&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"% Turnover"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[% Turnover]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"% Turnover Voluntary"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[% Turnover Voluntary]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"% Turnover Involuntary"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[% Turnover Involuntary]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"% Turnover Other"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[% Turnover Other])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return metric&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The reason I am using the switch formula is because I wanted to create a matrix where all these metrics are on a row level (+months on the column level).&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;For further analysis, I also need to calculate turnover (=the All metrics measure) by country, language, etc. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Instead of creating 10 different matrixes (one for each field), I am wondering if I can use the switch function (or anything else) to create a slicer for these categories. Basically, if the user selects country, then he gets a matrix with turnover by country and by month; if the user selects language, then he gets turnover by language and by month, and so on.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can anyone help me?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Mar 2022 08:15:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SWITCH/m-p/2382991#M61642</guid>
      <dc:creator>ruxandraalina</dc:creator>
      <dc:date>2022-03-09T08:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI SWITCH</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SWITCH/m-p/2383063#M61648</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365018" data-lia-user-login="ruxandraalina" class="lia-mention lia-mention-user"&gt;ruxandraalina&lt;/a&gt; , Seem like you need axis slicer. &lt;/P&gt;
&lt;P&gt;One is to add both of them on axis, As ask user to drill using parallel line&lt;/P&gt;
&lt;P&gt;The second is enable personalization&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other are bookmark and unpivot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Axis Slicer &lt;BR /&gt;Three approaches from Guyinacube &lt;A href="https://www.youtube.com/watch?v=dYmzb5UMkXw" target="_blank"&gt;https://www.youtube.com/watch?v=dYmzb5UMkXw&lt;/A&gt;&lt;BR /&gt;Dynamically change chart axis in Power BI &lt;BR /&gt;bookmark -https://blog.crossjoin.co.uk/2018/04/20/dynamically-changing-a-chart-axis-in-power-bi-using-bookmarks-and-buttons/ &lt;BR /&gt;&lt;A href="https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive" target="_blank"&gt;https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=6jeSIRpjv0M" target="_blank"&gt;https://www.youtube.com/watch?v=6jeSIRpjv0M&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://datamonkeysite.com/2020/10/22/change-dimension-dynamically-using-parameter-in-powerbi/" target="_blank"&gt;https://datamonkeysite.com/2020/10/22/change-dimension-dynamically-using-parameter-in-powerbi/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 08:46:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SWITCH/m-p/2383063#M61648</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-09T08:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI SWITCH</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SWITCH/m-p/2383216#M61666</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;First approach from Guyinacube worked!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 09:56:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-SWITCH/m-p/2383216#M61666</guid>
      <dc:creator>ruxandraalina</dc:creator>
      <dc:date>2022-03-09T09:56:51Z</dc:date>
    </item>
  </channel>
</rss>

