<?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: Average by a group in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-by-a-group/m-p/1856764#M39733</link>
    <description>&lt;P&gt;Hi again,&lt;BR /&gt;&lt;BR /&gt;The table shown in the example is the end-product which i seek to asctertain.&lt;BR /&gt;&lt;BR /&gt;Currently i have calculated the category sales value as follows:&lt;BR /&gt;= (Divide(sales,totalsales))*(divide(totalsales/category value))&lt;BR /&gt;&lt;BR /&gt;It is calculated per store and sums as intended to the given hierarchy of chains and wholesalers. I simply need to compare the individual store average to the average of the chain of stores to which it belongs. Example: a store may have a category share of 10%, whilst the average of all the stores within that chain is 15%. This one store is then underperforming and has an initial growth potential of 5%. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 May 2021 11:44:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-21T11:44:11Z</dc:date>
    <item>
      <title>Average by a group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-by-a-group/m-p/1856714#M39728</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've tried more than 20 other solutions on similar problemt - none have worked so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a measure calculating the average category value share for each chain of stores (as seen below). this will then allow me to calculate any potentiale an underperforming store possesses.&lt;/P&gt;&lt;P&gt;The category value share is already calculated (measure).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Currently the wholesaler, chain and stores are stored in separate columns of the same table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example below:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;category value share&lt;/TD&gt;&lt;TD&gt;category value share (chain)&lt;/TD&gt;&lt;TD&gt;Potentiale&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Chain&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;- Store 1&lt;/TD&gt;&lt;TD&gt;5%&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;TD&gt;5%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;- Store 2&lt;/TD&gt;&lt;TD&gt;15%&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following tables are used:&lt;/P&gt;&lt;P&gt;Table1 = Store data&lt;/P&gt;&lt;P&gt;Table2 = Category sales data&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have tried - among many others - the following:&lt;BR /&gt;= calculate(Table1[category value share],table1[chain])&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sincerely&lt;BR /&gt;Andreas D.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 10:57:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-by-a-group/m-p/1856714#M39728</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-21T10:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Average by a group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-by-a-group/m-p/1856742#M39730</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;, Did you try the below measure?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;calculate(AVERAGE(Table1[category value share]),ALL(table1[store]))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 11:19:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-by-a-group/m-p/1856742#M39730</guid>
      <dc:creator>SivaMani</dc:creator>
      <dc:date>2021-05-21T11:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Average by a group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-by-a-group/m-p/1856746#M39731</link>
      <description>&lt;P&gt;Hi Siva,&lt;BR /&gt;&lt;BR /&gt;When using the average function it does not recognize the category value share measure.&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 11:22:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-by-a-group/m-p/1856746#M39731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-21T11:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Average by a group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-by-a-group/m-p/1856751#M39732</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;, Is it already a measure? If yes, the AVERAGE function doesn't require&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;calculate([category value share],ALL(table1[store]))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 21 May 2021 11:29:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-by-a-group/m-p/1856751#M39732</guid>
      <dc:creator>SivaMani</dc:creator>
      <dc:date>2021-05-21T11:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Average by a group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-by-a-group/m-p/1856764#M39733</link>
      <description>&lt;P&gt;Hi again,&lt;BR /&gt;&lt;BR /&gt;The table shown in the example is the end-product which i seek to asctertain.&lt;BR /&gt;&lt;BR /&gt;Currently i have calculated the category sales value as follows:&lt;BR /&gt;= (Divide(sales,totalsales))*(divide(totalsales/category value))&lt;BR /&gt;&lt;BR /&gt;It is calculated per store and sums as intended to the given hierarchy of chains and wholesalers. I simply need to compare the individual store average to the average of the chain of stores to which it belongs. Example: a store may have a category share of 10%, whilst the average of all the stores within that chain is 15%. This one store is then underperforming and has an initial growth potential of 5%. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 11:44:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-by-a-group/m-p/1856764#M39733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-21T11:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Average by a group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-by-a-group/m-p/1856792#M39735</link>
      <description>&lt;P&gt;Upon using your measure i get the following:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need every store to take the average of the chain ("Bilka" in this case)&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 11:50:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-by-a-group/m-p/1856792#M39735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-21T11:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Average by a group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-by-a-group/m-p/1856873#M39738</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;, It should work. I hope Bilka is just another value under the chain column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If possible, share the pbix possible. will have a look.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 12:30:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-by-a-group/m-p/1856873#M39738</guid>
      <dc:creator>SivaMani</dc:creator>
      <dc:date>2021-05-21T12:30:33Z</dc:date>
    </item>
  </channel>
</rss>

