<?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 of yearly percent in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/826291#M5809</link>
    <description>How can i upload a file ?</description>
    <pubDate>Wed, 23 Oct 2019 13:09:22 GMT</pubDate>
    <dc:creator>Ritaf</dc:creator>
    <dc:date>2019-10-23T13:09:22Z</dc:date>
    <item>
      <title>average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/823197#M5685</link>
      <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'am trying to calculate a Average Percentage of Total Monthly Sales from Total yearly Sales in Last 5&amp;nbsp; complete Years .&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00FF00"&gt;I&lt;FONT color="#0000FF"&gt; calculted an monthly sales by formula:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;month_year_sales=CALCULATE([totalSales$],ALLEXCEPT(dimDate,dimDate[Month of Year),FILTER(dimDate,[year]&amp;lt;&amp;gt;[this year]))&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;For yearly sales with great assist from this forum i used:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;complete_year_sales = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var _this_year = year(TODAY())&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(TOTALYTD(sum(Sales[totalsales),ENDOFYEAR(dimDate[date]),ABS(year(sales[sale's date])&amp;lt;&amp;gt;_this_year))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;For percenatge i used:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Percent_of_yearly_Purchase = CALCULATE([month_year_sales]/[complete_year_sales],ALLSELECTED(dimDate[year]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;and for averaged percentage i tried to use&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Percent_of_yearly_Purchase / distinctcount(years)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I see that the average isn't working and the problem begind in total of percentage , how can i fix it?&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 11:27:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/823197#M5685</guid>
      <dc:creator>Ritaf</dc:creator>
      <dc:date>2019-10-21T11:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/823387#M5690</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="115491" data-lia-user-login="Ritaf" class="lia-mention lia-mention-user"&gt;Ritaf&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Not sure if&amp;nbsp; I understand what you are trying to do. Look at the total of [completeYearSales]. You may need to insert a column that would give you the sum of those sales. Or use the sum of the [monthYearSales] as that would be your real total,yes? Also the average of the sums is not the sum of the averages. Perhaps you might give us what you would expect the results to be.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 13:21:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/823387#M5690</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-10-21T13:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/823452#M5692</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for respending. I need an average percent of every month by all comlete years like on attached picture.&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 14:15:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/823452#M5692</guid>
      <dc:creator>Ritaf</dc:creator>
      <dc:date>2019-10-21T14:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/823689#M5708</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="115491" data-lia-user-login="Ritaf" class="lia-mention lia-mention-user"&gt;Ritaf&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Maybe we can get&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="106637" data-lia-user-login="jdbuchanan71" class="lia-mention lia-mention-user"&gt;jdbuchanan71&lt;/a&gt;&amp;nbsp; to step in here.&lt;/P&gt;&lt;P&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 17:45:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/823689#M5708</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-10-21T17:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/823747#M5713</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="159166" data-lia-user-login="Nathaniel_C" class="lia-mention lia-mention-user"&gt;Nathaniel_C&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at the AVERAGEX function.&amp;nbsp; It will end up being something like.&lt;/P&gt;
&lt;PRE&gt;Percent of yearly purchase =
AVERAGEX (
    VALUES ( dates[MonthYear] ),
    CALCULATE (
        DIVIDE ( [month_year_sales], [complete_year_sales] ),
        ALLSELECTED ( dimDate[year] )
    )
)
&lt;/PRE&gt;
&lt;P&gt;Which will show the correct % on the month but at the total level will show the average.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 18:39:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/823747#M5713</guid>
      <dc:creator>jdbuchanan71</dc:creator>
      <dc:date>2019-10-21T18:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/824200#M5726</link>
      <description>&lt;P&gt;It worked!!! Thank you !!!!:heart:&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 05:49:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/824200#M5726</guid>
      <dc:creator>Ritaf</dc:creator>
      <dc:date>2019-10-22T05:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/824381#M5731</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;following this solution , how can i always show a "total" for last 5 years without slicer's effect.&lt;/P&gt;&lt;P&gt;I need it to "predict" a a sum of dynamic target. My real case isn't an sales , but the percent of economy from purchasing deals of purchase managers, like on attached table.&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 08:00:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/824381#M5731</guid>
      <dc:creator>Ritaf</dc:creator>
      <dc:date>2019-10-22T08:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/824893#M5749</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="115491" data-lia-user-login="Ritaf" class="lia-mention lia-mention-user"&gt;Ritaf&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In those yellow cells, what is the expected value?&amp;nbsp; Show the number and what fields you used to caluclate it.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 13:13:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/824893#M5749</guid>
      <dc:creator>jdbuchanan71</dc:creator>
      <dc:date>2019-10-22T13:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/826130#M5802</link>
      <description>&lt;P&gt;Something like logiks in attached pic. I think i have to make some summerise table , i just dont know how to do this&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 10:13:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/826130#M5802</guid>
      <dc:creator>Ritaf</dc:creator>
      <dc:date>2019-10-23T10:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/826284#M5808</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="115491" data-lia-user-login="Ritaf" class="lia-mention lia-mention-user"&gt;Ritaf&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please share your excel file with the example data.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 13:04:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/826284#M5808</guid>
      <dc:creator>jdbuchanan71</dc:creator>
      <dc:date>2019-10-23T13:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/826291#M5809</link>
      <description>How can i upload a file ?</description>
      <pubDate>Wed, 23 Oct 2019 13:09:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/826291#M5809</guid>
      <dc:creator>Ritaf</dc:creator>
      <dc:date>2019-10-23T13:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/826292#M5810</link>
      <description>&lt;P&gt;You can save it to OneDrive or DropBox and share the link here&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 13:10:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/826292#M5810</guid>
      <dc:creator>jdbuchanan71</dc:creator>
      <dc:date>2019-10-23T13:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/826296#M5811</link>
      <description>Ok , i will build pbix with data which i can share ,and i will do it</description>
      <pubDate>Wed, 23 Oct 2019 13:14:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/826296#M5811</guid>
      <dc:creator>Ritaf</dc:creator>
      <dc:date>2019-10-23T13:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/827105#M5833</link>
      <description>&lt;P&gt;there is a link to pbix and to excel file (just a data&amp;nbsp; example without measures).&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/drive/folders/1I9R1wwtLYc1sHTifl4UqO23fKxSlEx0V" target="_blank"&gt;https://drive.google.com/drive/folders/1I9R1wwtLYc1sHTifl4UqO23fKxSlEx0V&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 07:43:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/827105#M5833</guid>
      <dc:creator>Ritaf</dc:creator>
      <dc:date>2019-10-24T07:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/830013#M5967</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="115491" data-lia-user-login="Ritaf" class="lia-mention lia-mention-user"&gt;Ritaf&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm having some trouble figuring out what you are looking for and what you want to show on which lines.&lt;/P&gt;
&lt;P&gt;In you example excel file you say Jan - Sep is 60% of the yearly total.&amp;nbsp; &lt;BR /&gt;Do you mean it is 60% of the 5 year average yearly amount? Is that only for completed years so it would be the average of 2014 - 2018?&lt;BR /&gt;Also, you include an 18% number in your calc, where is that 18% coming from?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the sample data needs to include all the data you used in your excel calc. The 5 years of amounts that you use to get your average so we can understand what date range your are considering 5 years.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 13:39:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/830013#M5967</guid>
      <dc:creator>jdbuchanan71</dc:creator>
      <dc:date>2019-10-28T13:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: average of yearly percent</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/832238#M6038</link>
      <description>&lt;P&gt;Hi, it 's too complicate , so we gave up.&lt;/P&gt;&lt;P&gt;However this case showed me that i have a seruous problem with dealing with contexts/ filters "games" , i wil post my questions clearly as another post.&lt;/P&gt;&lt;P&gt;Thank you very much for your attemps to help.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 07:36:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/average-of-yearly-percent/m-p/832238#M6038</guid>
      <dc:creator>Ritaf</dc:creator>
      <dc:date>2019-10-30T07:36:22Z</dc:date>
    </item>
  </channel>
</rss>

