<?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: Averagex and other &amp;quot;x&amp;quot; functions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-and-other-quot-x-quot-functions/m-p/835308#M6163</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="49826" data-lia-user-login="nsadams87xx" class="lia-mention lia-mention-user"&gt;nsadams87xx&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;[Total Sales including tax] = SUMX(Sales, Sales[Extended Amount]+Sales[Tax Amount])&lt;BR /&gt;&lt;BR /&gt;When to use iterators rather the aggregators such as SUM()&lt;BR /&gt;&lt;BR /&gt;When the data doesn't contain the line total. If you have table[Price Per Unit]*table [Quantity] and there is no column that contains that product. You can't sum both columns and then multiply them. Use SUMX.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;However if there is a total column for each line, like [Total Sales], then you could use SUM(table[Total Sales])&lt;BR /&gt;&lt;BR /&gt;These are two brief examples.&amp;nbsp; Sometimes you can use SUMX () instead of CALCULATE(). Probably a lot of it is personal preference, however it might be worth it to learn the X functions and add another arrow to your quiver.&amp;nbsp; There are also a lot of discussions in blogs and YouTube that may be worthwhile to look at for your edification.&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>Sat, 02 Nov 2019 00:22:22 GMT</pubDate>
    <dc:creator>Nathaniel_C</dc:creator>
    <dc:date>2019-11-02T00:22:22Z</dc:date>
    <item>
      <title>Averagex and other "x" functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-and-other-quot-x-quot-functions/m-p/835122#M6153</link>
      <description>&lt;P&gt;Hey Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been working with Power BI for about a year now and I keep seeing and reading articles and contributions about how averagex() and other X functions are so important and fundamental to smart development.&amp;nbsp; However I haven't really come across a situation where I feel like average() wouldn't work for me.&amp;nbsp; I feel like I may be misunderstanding what averagex does then.&amp;nbsp; My understanding of averagex() is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Averagex() will take an expression such as sum() and then average those sum() results over an entire table such as dates.&amp;nbsp; So would an applicable example of that be the average order of total part numbers ordered per day?&amp;nbsp; Or even per Month for that matter if I decided to use value('month') in place of a static table?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 17:29:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-and-other-quot-x-quot-functions/m-p/835122#M6153</guid>
      <dc:creator>nsadams87xx</dc:creator>
      <dc:date>2019-11-01T17:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Averagex and other "x" functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-and-other-quot-x-quot-functions/m-p/835308#M6163</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="49826" data-lia-user-login="nsadams87xx" class="lia-mention lia-mention-user"&gt;nsadams87xx&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;[Total Sales including tax] = SUMX(Sales, Sales[Extended Amount]+Sales[Tax Amount])&lt;BR /&gt;&lt;BR /&gt;When to use iterators rather the aggregators such as SUM()&lt;BR /&gt;&lt;BR /&gt;When the data doesn't contain the line total. If you have table[Price Per Unit]*table [Quantity] and there is no column that contains that product. You can't sum both columns and then multiply them. Use SUMX.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;However if there is a total column for each line, like [Total Sales], then you could use SUM(table[Total Sales])&lt;BR /&gt;&lt;BR /&gt;These are two brief examples.&amp;nbsp; Sometimes you can use SUMX () instead of CALCULATE(). Probably a lot of it is personal preference, however it might be worth it to learn the X functions and add another arrow to your quiver.&amp;nbsp; There are also a lot of discussions in blogs and YouTube that may be worthwhile to look at for your edification.&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>Sat, 02 Nov 2019 00:22:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-and-other-quot-x-quot-functions/m-p/835308#M6163</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-11-02T00:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Averagex and other "x" functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-and-other-quot-x-quot-functions/m-p/836332#M6208</link>
      <description>&lt;P&gt;Thank you Nathaniel.&amp;nbsp; I think I was relatively on the right track then.&amp;nbsp; I have always used calculate because I feel like I had more control over my data like that.&amp;nbsp; Basically the entire time I have been thinking "what's really the difference between sumx or averagex and using calculate using sum or average?"&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 14:35:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-and-other-quot-x-quot-functions/m-p/836332#M6208</guid>
      <dc:creator>nsadams87xx</dc:creator>
      <dc:date>2019-11-04T14:35:57Z</dc:date>
    </item>
  </channel>
</rss>

