<?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 Calculating Standard Deviation on Aggregate Values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Standard-Deviation-on-Aggregate-Values/m-p/2852060#M91477</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my current project, I have a column of Referral Dates, which I have divided into weeks using the following column:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Referral Week = 
var startdate = FORMAT('2022 Referral Database'[Referral Date] - weekday('2022 Referral Database'[Referral Date],3), "mmm dd")
var enddate = FORMAT('2022 Referral Database'[Referral Date] - weekday('2022 Referral Database'[Referral Date],3) +4, "mmm dd")
return startdate &amp;amp; " - " &amp;amp; enddate&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;With this new column, I've charted a line graph which shows the total Number of Referrals per Week. I would like to also include lines showing the Mean and +/- 1 Standard Deviation on this graph, but am having trouble figuring out how to tease out those values. The Mean is easy, I can add an Average Line. But to add the Standard Deviation lines, I need to make a measure which calculates the standard deviation of these aggregate values. STDEV.P only works if the values in the rows are already the aggregates, so it won't work here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expect that the solution will require GROUPBY or SUMMARIZE functions, but I can't get these to work from my testing.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 20:00:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-19T20:00:44Z</dc:date>
    <item>
      <title>Calculating Standard Deviation on Aggregate Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Standard-Deviation-on-Aggregate-Values/m-p/2852060#M91477</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my current project, I have a column of Referral Dates, which I have divided into weeks using the following column:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Referral Week = 
var startdate = FORMAT('2022 Referral Database'[Referral Date] - weekday('2022 Referral Database'[Referral Date],3), "mmm dd")
var enddate = FORMAT('2022 Referral Database'[Referral Date] - weekday('2022 Referral Database'[Referral Date],3) +4, "mmm dd")
return startdate &amp;amp; " - " &amp;amp; enddate&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;With this new column, I've charted a line graph which shows the total Number of Referrals per Week. I would like to also include lines showing the Mean and +/- 1 Standard Deviation on this graph, but am having trouble figuring out how to tease out those values. The Mean is easy, I can add an Average Line. But to add the Standard Deviation lines, I need to make a measure which calculates the standard deviation of these aggregate values. STDEV.P only works if the values in the rows are already the aggregates, so it won't work here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expect that the solution will require GROUPBY or SUMMARIZE functions, but I can't get these to work from my testing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 20:00:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Standard-Deviation-on-Aggregate-Values/m-p/2852060#M91477</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-19T20:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Standard Deviation on Aggregate Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Standard-Deviation-on-Aggregate-Values/m-p/2852156#M91488</link>
      <description>&lt;P&gt;Use the other version of STDEV -&amp;gt;&amp;nbsp;&lt;A href="https://dax.guide/stdevx-p/#:~:text=VAR-,STDEVX.P,-DAX%20Function%20(Statistical" target="_blank" rel="noopener"&gt;STDEVX.P or STDEVX.S&lt;/A&gt;. These are iterators that can work on any caclulated values.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 22:22:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Standard-Deviation-on-Aggregate-Values/m-p/2852156#M91488</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-10-19T22:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Standard Deviation on Aggregate Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Standard-Deviation-on-Aggregate-Values/m-p/2854031#M91639</link>
      <description>&lt;P&gt;I looked into STDEVX.P as well. It requires a calculation done on each row, which isn't what I'm looking for. I need to count how many rows are in each week, rather than count how many fit a given criterion. If there's a way to do this with STDEVX.P, I'm not aware of it.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 15:26:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-Standard-Deviation-on-Aggregate-Values/m-p/2854031#M91639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-20T15:26:15Z</dc:date>
    </item>
  </channel>
</rss>

