<?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 Single Average Value in Power Pivot / DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Single-Average-Value-in-Power-Pivot-DAX/m-p/4137510#M164347</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've got a data set of product sales and volumes.&lt;/P&gt;&lt;P&gt;The data is at week, product and customer level.&lt;/P&gt;&lt;P&gt;The 1st 13 weeks are my BASE VOLUMES and I want to calculate the average volumes for the combined 13 weeks and then track future weekly VOLUMES against the base average.&lt;/P&gt;&lt;P&gt;I also have a column in my data called "Timeframe" which identifies anything in the 1st 13 weeks as "Base Data" and anything after as "Live"&lt;/P&gt;&lt;P&gt;I'm trying to write a DAX formula that gives me the average weekly volumes so I have a single value as the average for the 1st 13 weeks.&lt;/P&gt;&lt;P&gt;When I pull my measure into my pivot it gives me the weekly average figure (so a different figure for each week) rather than the combined 13 week average. (the average figure needs to be consistent so it can be used in a line chart as the average)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying various versions of this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!--  StartFragment   --&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;AverageBaseQty:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;&lt;SPAN class=""&gt;(t_volumes[EACHES]) ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;'t_volumes'[Timeframe] = &lt;/SPAN&gt;&lt;SPAN class=""&gt;"Baseline"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;) /13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 11:51:09 GMT</pubDate>
    <dc:creator>matratus28</dc:creator>
    <dc:date>2024-09-06T11:51:09Z</dc:date>
    <item>
      <title>Single Average Value in Power Pivot / DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Single-Average-Value-in-Power-Pivot-DAX/m-p/4137510#M164347</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've got a data set of product sales and volumes.&lt;/P&gt;&lt;P&gt;The data is at week, product and customer level.&lt;/P&gt;&lt;P&gt;The 1st 13 weeks are my BASE VOLUMES and I want to calculate the average volumes for the combined 13 weeks and then track future weekly VOLUMES against the base average.&lt;/P&gt;&lt;P&gt;I also have a column in my data called "Timeframe" which identifies anything in the 1st 13 weeks as "Base Data" and anything after as "Live"&lt;/P&gt;&lt;P&gt;I'm trying to write a DAX formula that gives me the average weekly volumes so I have a single value as the average for the 1st 13 weeks.&lt;/P&gt;&lt;P&gt;When I pull my measure into my pivot it gives me the weekly average figure (so a different figure for each week) rather than the combined 13 week average. (the average figure needs to be consistent so it can be used in a line chart as the average)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying various versions of this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!--  StartFragment   --&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;AverageBaseQty:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;&lt;SPAN class=""&gt;(t_volumes[EACHES]) ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;'t_volumes'[Timeframe] = &lt;/SPAN&gt;&lt;SPAN class=""&gt;"Baseline"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;) /13&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 11:51:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Single-Average-Value-in-Power-Pivot-DAX/m-p/4137510#M164347</guid>
      <dc:creator>matratus28</dc:creator>
      <dc:date>2024-09-06T11:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Single Average Value in Power Pivot / DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Single-Average-Value-in-Power-Pivot-DAX/m-p/4137577#M164351</link>
      <description>&lt;P&gt;This is what I'm trying to achieve&lt;img /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 12:31:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Single-Average-Value-in-Power-Pivot-DAX/m-p/4137577#M164351</guid>
      <dc:creator>matratus28</dc:creator>
      <dc:date>2024-09-06T12:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Single Average Value in Power Pivot / DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Single-Average-Value-in-Power-Pivot-DAX/m-p/4137584#M164353</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="615168" data-lia-user-login="matratus28" class="lia-mention lia-mention-user"&gt;matratus28&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to share the data after masking/removing pii information to have a look at it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 12:37:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Single-Average-Value-in-Power-Pivot-DAX/m-p/4137584#M164353</guid>
      <dc:creator>AnkitKukreja</dc:creator>
      <dc:date>2024-09-06T12:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Single Average Value in Power Pivot / DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Single-Average-Value-in-Power-Pivot-DAX/m-p/4137845#M164361</link>
      <description>&lt;P&gt;I found a solution that looks for all the volumes if in the week is before 202514 and divides by 13&lt;BR /&gt;That then overrides the week in the pivot table and gives just the average for the entire 13 weeks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;BaseAverageEACHES:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;&lt;SPAN class=""&gt;(t_volumes[EACHES]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;t_volumes[Timeframe] =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;"Baseline"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;t_volumes[Week] &amp;lt;=202513&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;) /13&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 14:26:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Single-Average-Value-in-Power-Pivot-DAX/m-p/4137845#M164361</guid>
      <dc:creator>matratus28</dc:creator>
      <dc:date>2024-09-06T14:26:47Z</dc:date>
    </item>
  </channel>
</rss>

