<?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 Calculate Annual Flat Rate on Monthly Graph in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Annual-Flat-Rate-on-Monthly-Graph/m-p/3192082#M115779</link>
    <description>&lt;P&gt;I'm having some difficulty in calculating a flat annual rate on a monthly graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have three tables:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Complaint Table: breakdown of product complaints&lt;/LI&gt;&lt;LI&gt;Date Table&lt;/LI&gt;&lt;LI&gt;Case Table: breakdown of number of product cases by date&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Complaint Table is related to Date Table through a creation date field while the Case Table is related to the Date Table through case date field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a combo line and stacked column chart where the bars are the number of complaints, the line is the complaint rate, and the x-axis is date displayed on a year-month level:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to add two &lt;STRONG&gt;flat&lt;/STRONG&gt; lines to the graph:&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A flat average complaint rate for the year&lt;/LI&gt;&lt;LI&gt;3x the standard deviation of the complaint rate for the year&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm just not sure how to calculate on an&amp;nbsp;&lt;EM&gt;annual&amp;nbsp;&lt;/EM&gt;basis when the graph is displayed on a&amp;nbsp;&lt;EM&gt;monthly&lt;/EM&gt; basis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Complaints =
CALCULATE (
    DISTINCTCOUNT ( 'Complaint Table'[Complaint ID] ),
    'Complaint Table'[Is this a complaint?] = "Yes"
) + 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FT Complaint Rate = 'Complaint Table'[Complaints] / SUM('Case Table'[Total Cases])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2023 18:08:07 GMT</pubDate>
    <dc:creator>PurpleWave22</dc:creator>
    <dc:date>2023-04-17T18:08:07Z</dc:date>
    <item>
      <title>Calculate Annual Flat Rate on Monthly Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Annual-Flat-Rate-on-Monthly-Graph/m-p/3192082#M115779</link>
      <description>&lt;P&gt;I'm having some difficulty in calculating a flat annual rate on a monthly graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have three tables:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Complaint Table: breakdown of product complaints&lt;/LI&gt;&lt;LI&gt;Date Table&lt;/LI&gt;&lt;LI&gt;Case Table: breakdown of number of product cases by date&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Complaint Table is related to Date Table through a creation date field while the Case Table is related to the Date Table through case date field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a combo line and stacked column chart where the bars are the number of complaints, the line is the complaint rate, and the x-axis is date displayed on a year-month level:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to add two &lt;STRONG&gt;flat&lt;/STRONG&gt; lines to the graph:&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A flat average complaint rate for the year&lt;/LI&gt;&lt;LI&gt;3x the standard deviation of the complaint rate for the year&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm just not sure how to calculate on an&amp;nbsp;&lt;EM&gt;annual&amp;nbsp;&lt;/EM&gt;basis when the graph is displayed on a&amp;nbsp;&lt;EM&gt;monthly&lt;/EM&gt; basis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Complaints =
CALCULATE (
    DISTINCTCOUNT ( 'Complaint Table'[Complaint ID] ),
    'Complaint Table'[Is this a complaint?] = "Yes"
) + 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FT Complaint Rate = 'Complaint Table'[Complaints] / SUM('Case Table'[Total Cases])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 18:08:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Annual-Flat-Rate-on-Monthly-Graph/m-p/3192082#M115779</guid>
      <dc:creator>PurpleWave22</dc:creator>
      <dc:date>2023-04-17T18:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Annual Flat Rate on Monthly Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Annual-Flat-Rate-on-Monthly-Graph/m-p/3192749#M115832</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="547315" data-lia-user-login="PurpleWave22" class="lia-mention lia-mention-user"&gt;PurpleWave22&lt;/a&gt;&amp;nbsp;Please try this measure&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Complaints =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Complaint Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Complaint ID]&lt;/SPAN&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Complaint Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Is this a complaint?]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Complaint Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Year&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;) + &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="547315" data-lia-user-login="PurpleWave22" class="lia-mention lia-mention-user"&gt;PurpleWave22&lt;/a&gt;&amp;nbsp;i hope this help you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Apr 2023 06:01:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Annual-Flat-Rate-on-Monthly-Graph/m-p/3192749#M115832</guid>
      <dc:creator>Mahesh0016</dc:creator>
      <dc:date>2023-04-18T06:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Annual Flat Rate on Monthly Graph</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Annual-Flat-Rate-on-Monthly-Graph/m-p/3194407#M115924</link>
      <description>&lt;P&gt;That worked! Thanks so much for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 19:39:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Annual-Flat-Rate-on-Monthly-Graph/m-p/3194407#M115924</guid>
      <dc:creator>PurpleWave22</dc:creator>
      <dc:date>2023-04-18T19:39:06Z</dc:date>
    </item>
  </channel>
</rss>

