<?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: Change X Axis Dynamically in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1040167#M488564</link>
    <description>&lt;P&gt;&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;&amp;nbsp;I had thought of that idea, but for a simple user experience, I'm trying to make it one click on a filter they will already use.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2020 19:42:38 GMT</pubDate>
    <dc:creator>jmhoskinson</dc:creator>
    <dc:date>2020-04-21T19:42:38Z</dc:date>
    <item>
      <title>Change X Axis Dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1037763#M487782</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wanting to dynamically change my X axis for a bar chart. If the Regions filter has an option selected, I want to X axis to show account executives; if the Regions filter is not filtered, I want the X axis to show the regions (see attached pics). I've seen &lt;A href="https://community.powerbi.com/t5/Desktop/Dynamic-change-in-X-Axis/m-p/86167" target="_blank" rel="noopener"&gt;the other threads,&lt;/A&gt; and they won't work for my situation - I don't want to change my data model because it's pretty fragile. I want to do this entirely with DAX.&lt;/P&gt;&lt;P&gt;I've taken a few stabs at it (mostly combinations of IF/SWITCH(TRUE()) and ISFILTERED), but I'm struggling with my result not being scalar. Any help?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 22:24:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1037763#M487782</guid>
      <dc:creator>jmhoskinson</dc:creator>
      <dc:date>2020-04-20T22:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Change X Axis Dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1037917#M487829</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="154198" data-lia-user-login="jmhoskinson" class="lia-mention lia-mention-user"&gt;jmhoskinson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the structure of your model?&lt;/P&gt;
&lt;P&gt;Please share me a dummy PBIX file, removing sensitive information, for test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 01:56:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1037917#M487829</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2020-04-21T01:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change X Axis Dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1038016#M487867</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="154198" data-lia-user-login="jmhoskinson" class="lia-mention lia-mention-user"&gt;jmhoskinson&lt;/a&gt; , You might have to use a bookmark for this&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 03:02:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1038016#M487867</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-04-21T03:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change X Axis Dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1040161#M488562</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="164362" data-lia-user-login="Icey" class="lia-mention lia-mention-user"&gt;Icey&lt;/a&gt;&amp;nbsp;I'm not seeing an option to upload my dummy file. Am I missing it?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 19:41:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1040161#M488562</guid>
      <dc:creator>jmhoskinson</dc:creator>
      <dc:date>2020-04-21T19:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Change X Axis Dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1040167#M488564</link>
      <description>&lt;P&gt;&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;&amp;nbsp;I had thought of that idea, but for a simple user experience, I'm trying to make it one click on a filter they will already use.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 19:42:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1040167#M488564</guid>
      <dc:creator>jmhoskinson</dc:creator>
      <dc:date>2020-04-21T19:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Change X Axis Dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1040478#M488657</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="154198" data-lia-user-login="jmhoskinson" class="lia-mention lia-mention-user"&gt;jmhoskinson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend you to upload your dummy file to OneDrive for Business and then paste the link here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 01:26:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1040478#M488657</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2020-04-22T01:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change X Axis Dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1043904#M489770</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="154198" data-lia-user-login="jmhoskinson" class="lia-mention lia-mention-user"&gt;jmhoskinson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please share me the link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 09:38:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1043904#M489770</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2020-04-23T09:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change X Axis Dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1044310#M489914</link>
      <description>&lt;P&gt;ok that's wierd. I posted it yesterday... I guess it didn't go through... use this &lt;A href="https://thegordiangroup-my.sharepoint.com/:u:/g/personal/j_hoskinson_gordian_com/EbfzpmMN8_FLoRHKRFz_Gf0BCD763gfrbievpGZL3kDI3Q?e=RSQdWD" target="_self"&gt;link&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 12:52:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1044310#M489914</guid>
      <dc:creator>jmhoskinson</dc:creator>
      <dc:date>2020-04-23T12:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change X Axis Dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1046623#M490710</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="154198" data-lia-user-login="jmhoskinson" class="lia-mention lia-mention-user"&gt;jmhoskinson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create tables.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RegionAccount =
VAR t1 =
    SUMMARIZE ( Users, Users[Region], Users[Account Executive] )
VAR t2 =
    ADDCOLUMNS ( t1, "Axis Dimension", "Region", "Axis Value", [Region] )
VAR t3 =
    ADDCOLUMNS (
        t1,
        "Axis Dimension", "Account Executive",
        "Axis Value", [Account Executive]
    )
RETURN
    UNION ( t2, t3 )
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Region = DISTINCT(Users[Region])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Account Executive = DISTINCT(Users[Account Executive])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Create relationships.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Create measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Axis Dimension Selected =
SWITCH (
    TRUE (),
    ISFILTERED ( Users[Region] ), "Region",
    ISFILTERED ( Users[Account Executive] ), "Account Executive"
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;CountDeal = COUNT(Deals[Deal Owner])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Count =
IF (
    NOT ( ISBLANK ( [Axis Dimension Selected] ) ),
    SWITCH (
        [Axis Dimension Selected],
        "Region", CALCULATE (
            [CountDeal],
            USERELATIONSHIP ( RegionAccount[Account Executive], 'Account Executive'[Account Executive] ),
            FILTER ( RegionAccount, [Axis Dimension] &amp;lt;&amp;gt; "Region" )
        ),
        "Account Executive", CALCULATE (
            [CountDeal],
            USERELATIONSHIP ( RegionAccount[Region], Region[Region] ),
            FILTER ( RegionAccount, [Axis Dimension] &amp;lt;&amp;gt; "Account Executive" )
        )
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. Create visuals.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5. Test.&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;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 09:45:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1046623#M490710</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2020-04-24T09:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change X Axis Dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1047342#M490958</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="164362" data-lia-user-login="Icey" class="lia-mention lia-mention-user"&gt;Icey&lt;/a&gt;&amp;nbsp;and&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;&amp;nbsp;- I really appreciate the help, but my requirement is that I can't be doing anything new to my data model.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 15:21:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Change-X-Axis-Dynamically/m-p/1047342#M490958</guid>
      <dc:creator>jmhoskinson</dc:creator>
      <dc:date>2020-04-24T15:21:24Z</dc:date>
    </item>
  </channel>
</rss>

