<?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: Creating a Target Based of calculations in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Creating-a-Target-Based-of-calculations/m-p/1798547#M64635</link>
    <description>&lt;P&gt;Hi Alex, sorry, I forgot to add the "/52" to make the average:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count(&lt;EM&gt;[TOTAL]&lt;/EM&gt; { $&amp;lt;Financial_Year ={'2020/2021'}&amp;gt;} Customer_ID)/52&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And you have two ways to avoid dimensions to affect this value: one is using a variable, another is using a TOTAL qualifier&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Apr 2021 18:14:35 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2021-04-10T18:14:35Z</dc:date>
    <item>
      <title>Creating a Target Based of calculations</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-Target-Based-of-calculations/m-p/1798413#M64622</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to Qlik sense and need a little bit of help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to insert a static target based off of the average number of customers&amp;nbsp; from a financial year over 52 weeks. I believe I need to count the total amount of customers id's first, then sum them, then divide it by 52 weeks to get the average.&lt;/P&gt;&lt;P&gt;So in excel terms it would be IF(&amp;nbsp;Financial_Year ='2020/2021', Sum(count(Customer_ID)/52)," ")&lt;/P&gt;&lt;P&gt;I then would need to create and upper and lower target with a 5% variance each way&amp;nbsp;&lt;/P&gt;&lt;P&gt;If have the first part created using set analysis: Count({ $&amp;lt;Financial_Year ={'2020/2021'}&amp;gt;}count(Customer_ID)&lt;/P&gt;&lt;P&gt;I have a calendar variable that breaks down our financial weeks that I am using to plot on the graph.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Open to all suggestions, and really appreciate the help.&lt;/P&gt;&lt;P&gt;Below is a graph of how I envisage it to look.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alex-wb_0-1617985372157.png" style="width: 724px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52751i35F85323197163B6/image-dimensions/724x389?v=v2" width="724" height="389" role="button" title="alex-wb_0-1617985372157.png" alt="alex-wb_0-1617985372157.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am open to any suggestions and appreciate the help&amp;nbsp; :).&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 16:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-Target-Based-of-calculations/m-p/1798413#M64622</guid>
      <dc:creator>alex-wb</dc:creator>
      <dc:date>2021-04-09T16:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Target Based of calculations</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-Target-Based-of-calculations/m-p/1798501#M64630</link>
      <description>&lt;P&gt;Hi, you can have a variable that stores the value, like a variable vCustomers2021 with value:&lt;/P&gt;&lt;P&gt;=&lt;SPAN&gt;Count({ $&amp;lt;Financial_Year ={'2020/2021'}&amp;gt;} Customer_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The the upper limit will be: $(vCustomers2021)*1.05 and the lower&amp;nbsp;$(vCustomers2021)*0.95&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can also use TOTAL qualifier to ignore dimensions:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count(TOTAL { $&amp;lt;Financial_Year ={'2020/2021'}&amp;gt;} Customer_ID)*1.05&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Apr 2021 08:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-Target-Based-of-calculations/m-p/1798501#M64630</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-04-10T08:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Target Based of calculations</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-Target-Based-of-calculations/m-p/1798502#M64631</link>
      <description>&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;Thanks for the reply. Are you saying I should create the basic counts as a variable, so I can then aggregate them in a sum, and then average them out?&lt;/P&gt;&lt;P&gt;Really appreciate the response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Apr 2021 08:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-Target-Based-of-calculations/m-p/1798502#M64631</guid>
      <dc:creator>alex-wb</dc:creator>
      <dc:date>2021-04-10T08:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Target Based of calculations</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-Target-Based-of-calculations/m-p/1798547#M64635</link>
      <description>&lt;P&gt;Hi Alex, sorry, I forgot to add the "/52" to make the average:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count(&lt;EM&gt;[TOTAL]&lt;/EM&gt; { $&amp;lt;Financial_Year ={'2020/2021'}&amp;gt;} Customer_ID)/52&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And you have two ways to avoid dimensions to affect this value: one is using a variable, another is using a TOTAL qualifier&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Apr 2021 18:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-Target-Based-of-calculations/m-p/1798547#M64635</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-04-10T18:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Target Based of calculations</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-Target-Based-of-calculations/m-p/1798646#M64651</link>
      <description>&lt;P&gt;Hi Ruben, thanks for the help, I really appreciate it. I am going to try your suggestions now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 07:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-Target-Based-of-calculations/m-p/1798646#M64651</guid>
      <dc:creator>alex-wb</dc:creator>
      <dc:date>2021-04-12T07:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Target Based of calculations</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-Target-Based-of-calculations/m-p/1800026#M64803</link>
      <description>&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;I realised that this can be done by using reference lines. I also didn't need to aggregate the count to sum. Thanks for the help though, much appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 09:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-Target-Based-of-calculations/m-p/1800026#M64803</guid>
      <dc:creator>alex-wb</dc:creator>
      <dc:date>2021-04-16T09:45:06Z</dc:date>
    </item>
  </channel>
</rss>

