<?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: Fixed Chart Comparator in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-Chart-Comparator/m-p/1392845#M25548</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;Perfect!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Sep 2020 10:50:03 GMT</pubDate>
    <dc:creator>Mat42</dc:creator>
    <dc:date>2020-09-24T10:50:03Z</dc:date>
    <item>
      <title>Fixed Chart Comparator</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-Chart-Comparator/m-p/1384591#M25318</link>
      <description>&lt;P&gt;This feels like it should be simple, but for the life of me I can't work out how to do it.&lt;/P&gt;&lt;P&gt;Let's say I have a very simple table containing the following entries:&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;Name&lt;/TD&gt;&lt;TD&gt;Sales Figures&lt;/TD&gt;&lt;TD&gt;Yearly Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Dave&lt;/TD&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;1119&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Susan&lt;/TD&gt;&lt;TD&gt;223&lt;/TD&gt;&lt;TD&gt;1436&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Linda&lt;/TD&gt;&lt;TD&gt;578&lt;/TD&gt;&lt;TD&gt;2007&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mike&lt;/TD&gt;&lt;TD&gt;342&lt;/TD&gt;&lt;TD&gt;1996&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Steve&lt;/TD&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Company Average&lt;/TD&gt;&lt;TD&gt;413&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2134&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I want to create is a simple, 2 bar horizontal bar graph to compare staff details against the Company Average. The slicer will contain staff names and when I choose a name, I want it to display the Company Average as a fixed comparator so that it will always be visible on the chart, but the staff name will change with the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a couple of example images.&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;I've tried various things and I just can't work it out...which feels stupid because it must be simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 13:20:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-Chart-Comparator/m-p/1384591#M25318</guid>
      <dc:creator>Mat42</dc:creator>
      <dc:date>2020-09-21T13:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Chart Comparator</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-Chart-Comparator/m-p/1385614#M25339</link>
      <description>&lt;P&gt;You don't need to include the Company average in your data if you can also compute it on the fly. But if that is not possible then you can still make it work by using a separate measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Sales Average := CALCULATE(sum(Performance[Sales Figures]),Performance[Name]="Company Average")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then add the Sales Figures value and the new measure to the Values well.&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 23:23:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-Chart-Comparator/m-p/1385614#M25339</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-09-21T23:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Chart Comparator</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-Chart-Comparator/m-p/1389993#M25463</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;, that's brilliant and works as I need it to. Quick related follow-up question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because this is part of a larger report I'm slowly building up, I'm adding new sections every day and I now have 2 tables: the simple data table I explained before, and a new table called 'Names' that I've created to only contain (unsurprisingly) staff names.&amp;nbsp;I've joined the Names table to the data table using a one-to-one relationship.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I follow your instructions, then produce a slicer containing staff names using the original data table, the chart displays correctly. However, if I create a slicer using the new Names table the Sales Average data disappears off the chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something that needs changing in the measure?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 10:55:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-Chart-Comparator/m-p/1389993#M25463</guid>
      <dc:creator>Mat42</dc:creator>
      <dc:date>2020-09-23T10:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Chart Comparator</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-Chart-Comparator/m-p/1390026#M25465</link>
      <description>&lt;P&gt;Change the relationship to 1:M from Names to Data. Then change the measure to compute the company average properly as I mentioned initially.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 11:11:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-Chart-Comparator/m-p/1390026#M25465</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-09-23T11:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Chart Comparator</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-Chart-Comparator/m-p/1392845#M25548</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;Perfect!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 10:50:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fixed-Chart-Comparator/m-p/1392845#M25548</guid>
      <dc:creator>Mat42</dc:creator>
      <dc:date>2020-09-24T10:50:03Z</dc:date>
    </item>
  </channel>
</rss>

