<?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: Measure to show above average percentage of dimensions on Card in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-above-average-percentage-of-dimensions-on-Card/m-p/2339326#M58995</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try a measure like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure =&lt;BR /&gt;var _overall = calculate([Avg Price], allselected()) //use all if needed &lt;BR /&gt;return &lt;BR /&gt;countx( filter(Values(customer[customer]), [Avg Price] &amp;gt; _overall), [customer])&lt;/P&gt;</description>
    <pubDate>Tue, 15 Feb 2022 10:12:00 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-02-15T10:12:00Z</dc:date>
    <item>
      <title>Measure to show above average percentage of dimensions on Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-above-average-percentage-of-dimensions-on-Card/m-p/2339256#M58991</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a report for a retailer. My Customer wants to see the percentage of channels for which the avg price is above the overall average price. In my sample it would be 40% (4 above/10 below). All based on a Sales table with multiple sales on each channel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e. for illustration on channel 80 of sample data the Average Price is 46.63 (all Revenue divided by Sales) and for all channels it is 51.10 so Channel 80 is below average. I got that part by using Allexcept but don't know how to count my Channels afterwards.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created sample Data here:&amp;nbsp;&lt;A href="https://we.tl/t-gxbtOcNfp1" target="_blank"&gt;https://we.tl/t-gxbtOcNfp1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now in SQL I would do this with a subquery. Is there a way to do this in DAX? Like for example with Calculatetable as a variable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance and appreciate recommendations for best practice on asking here. Doing this for the first time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 09:54:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-above-average-percentage-of-dimensions-on-Card/m-p/2339256#M58991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-15T09:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to show above average percentage of dimensions on Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-above-average-percentage-of-dimensions-on-Card/m-p/2339326#M58995</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try a measure like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure =&lt;BR /&gt;var _overall = calculate([Avg Price], allselected()) //use all if needed &lt;BR /&gt;return &lt;BR /&gt;countx( filter(Values(customer[customer]), [Avg Price] &amp;gt; _overall), [customer])&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 10:12:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-above-average-percentage-of-dimensions-on-Card/m-p/2339326#M58995</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-15T10:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to show above average percentage of dimensions on Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-above-average-percentage-of-dimensions-on-Card/m-p/2339387#M58997</link>
      <description>&lt;P&gt;Does the trick, thanks! Thought about countx before but could not make it work. Still I'm not 100% sure why this works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;overall computes the overall Average price - so far...&lt;/P&gt;&lt;P&gt;Then Countx counts my Customers (Channels in my example) where Avg Price &amp;gt; overall Average Price (Filter) and groups on Customer (Channel)???&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 10:36:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-above-average-percentage-of-dimensions-on-Card/m-p/2339387#M58997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-15T10:36:21Z</dc:date>
    </item>
  </channel>
</rss>

