<?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: Calculate number needed to obtain Percentage goal in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-needed-to-obtain-Percentage-goal/m-p/3154249#M113086</link>
    <description>&lt;P&gt;This worked great! Thank you! however, is there a chance to only show the aggregated positive values only?&lt;/P&gt;</description>
    <pubDate>Sun, 26 Mar 2023 07:34:35 GMT</pubDate>
    <dc:creator>Icky</dc:creator>
    <dc:date>2023-03-26T07:34:35Z</dc:date>
    <item>
      <title>Calculate number needed to obtain Percentage goal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-needed-to-obtain-Percentage-goal/m-p/1728313#M35774</link>
      <description>&lt;P&gt;First off if this is a double post I'm sorry, I submitted it earlier and it looks like it didn't go through...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might be more of a mathmatics question, but I figured I'd ask here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a dashboard that summarizes survey results... you know the ones you take when you get your car serviced and the beg you to give them nothing but 10's. In this case it's basically a thumbs up or thumbs down, which should be easier.&lt;/P&gt;&lt;P&gt;I need to calculate how many thumbs up it would take to get them to 98%. Basically I have the following calculated:&lt;BR /&gt;Current Score = 94.5%&lt;/P&gt;&lt;P&gt;Target Score = 98%&lt;/P&gt;&lt;P&gt;Percent to Target = 3.5%&lt;/P&gt;&lt;P&gt;And I need:&lt;/P&gt;&lt;P&gt;Number of thumbs up needed to reach target = ????&lt;/P&gt;&lt;P&gt;The denominator is simply the number of surveys returned. The numerator is number of surveys returned minus thumbs down.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially what my issue is say you have 50 surveys and a score of 50%, so each survey is 2% of the total. Your goal is 75%... at first look it would seem you would need 13, but when you add these new surveys in each one now accounts for 1.5873%, meaning 13 would get you to just 68%... how do I account for that?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 17:00:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-needed-to-obtain-Percentage-goal/m-p/1728313#M35774</guid>
      <dc:creator>ABR002</dc:creator>
      <dc:date>2021-03-17T17:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate number needed to obtain Percentage goal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-needed-to-obtain-Percentage-goal/m-p/1731322#M35879</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="237307" data-lia-user-login="ABR002" class="lia-mention lia-mention-user"&gt;ABR002&lt;/a&gt;&amp;nbsp;you're right, this requires a bit of algebra.&lt;/P&gt;
&lt;P&gt;Let's define the following variables, with your sample values in bracketrs:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;r&amp;nbsp;&lt;/EM&gt;= number of survey responses so far (50)&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;p&lt;/EM&gt; = number of positive survey responses so far (25)&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;T&lt;/EM&gt; = target positive proportion as a decimal (0.75 = 75%)&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;k&amp;nbsp;&lt;/EM&gt;= additional positive responses required to get to target (assuming only positive received from now on)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Then we need to solve this equation for&amp;nbsp;&lt;EM&gt;T&lt;/EM&gt;:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A little algebra gets you to the solution:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Using your example, if you had 25 positive responses out of 50, to get to a positive proportion of 0.75 would require:&lt;/P&gt;
&lt;P&gt;k = ( 0.75 * 50 - 25 ) / ( 1 - 0.75) = 50&lt;/P&gt;
&lt;P&gt;So 50 more positive responses would be required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can write this as a measure something like this, assuming you have measures for all the input variables:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Additional Positive Responses Required =
VAR Target = 0.75
VAR Positive = [Positive Responses]
VAR Total = [Total Responses]
VAR AdditionalPositiveRequired = ( Target * Total - Positive ) / ( 1 - Target )
RETURN
    AdditionalPositiveRequired
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Owen&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 21:08:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-needed-to-obtain-Percentage-goal/m-p/1731322#M35879</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2021-03-18T21:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate number needed to obtain Percentage goal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-needed-to-obtain-Percentage-goal/m-p/1731359#M35881</link>
      <description>&lt;P&gt;Thank you so much. Obviously I'm not a math major, so I may have done something a bit wrong. But when I used your example as a solution, it gave me the total number of responses I would need to be at (as in the lowest number of total responses it would be possible to reach the goal,) not the additional number it would need. Luckily I had manually figured the out the number it would need to be at yesterday so I immediatley recoginized the number, and simply subtracted the current positive count from your example and that got the number I was after. Either way thanks, I couldn't have done this without you.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 21:57:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-needed-to-obtain-Percentage-goal/m-p/1731359#M35881</guid>
      <dc:creator>ABR002</dc:creator>
      <dc:date>2021-03-18T21:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate number needed to obtain Percentage goal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-needed-to-obtain-Percentage-goal/m-p/3154249#M113086</link>
      <description>&lt;P&gt;This worked great! Thank you! however, is there a chance to only show the aggregated positive values only?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2023 07:34:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-needed-to-obtain-Percentage-goal/m-p/3154249#M113086</guid>
      <dc:creator>Icky</dc:creator>
      <dc:date>2023-03-26T07:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate number needed to obtain Percentage goal</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-needed-to-obtain-Percentage-goal/m-p/3853987#M150572</link>
      <description>&lt;P&gt;Would there be a way, or a formula used, to input something like this into an Excel Spreadsheet, where I could make mulptiple Spreadsheets for each Metric I am looking to track, and calculate, the number of survey responses needed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not looking to have all on one sheet, but multiple sheets containing one metric each. I am looking to create a presentation to explain the impact one negative survey can have and the importance of customer service (Like the gentlemen above, I am in the automotive industry and these surveys are vital)&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 14:01:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-needed-to-obtain-Percentage-goal/m-p/3853987#M150572</guid>
      <dc:creator>NathanHolowitz</dc:creator>
      <dc:date>2024-04-19T14:01:59Z</dc:date>
    </item>
  </channel>
</rss>

