<?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: Am I using the proper function for this problem? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Am-I-using-the-proper-function-for-this-problem/m-p/595832#M478321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK YOU!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Mar 2014 15:30:51 GMT</pubDate>
    <dc:creator>neena123</dc:creator>
    <dc:date>2014-03-19T15:30:51Z</dc:date>
    <item>
      <title>Am I using the proper function for this problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Am-I-using-the-proper-function-for-this-problem/m-p/595830#M478319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have four facilities that are joined together under the dimension name Facility. In order to separate each facility to show the proper data I have to write the expression like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(Distinct if ([Turnaround Days] &amp;lt;=0 AND [Status]='Shipped' AND&amp;nbsp; [Facility]='Alpharetta',[Unique Order key], null()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That expression does work for the individual charts. However I want each facility to have two percent under each chart showing this year turnaround day times that are over 3+ days and last year 3+ turnaround days. Then I would like a text object like an arrow pointing up or down if the number has gotten higher or lower. This is how I have the expression written:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct if([Turnaround Days]&amp;gt;2 AND [Facility]='Alpharetta' AND [Status}='Shipped', [Unique Order Key], null()))/count(Distinct [Unique Order Key])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not giving me the average of the Alpharetta facility it is dividing it by ALL of the facilities turnaround Days that is over 2 but I want it to just stay in the facility I have assigned it too. So I started to write the expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct if([Turnaround Days]&amp;gt;2 AND [Facility]='Alpharetta' AND [Status]='Shipped, [Unique Order Key], null()))/count(Distinct [Unique Order Key] AND [Facility]='Alpharetta')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't give me a percent just a random number that I know is not correct. &lt;/P&gt;&lt;P&gt;I have attached a photo of the layout. The blue box is the percent of Turnaround Days &amp;gt;2. I have not set the year yet either and I need to know how to incorporate that into the expression as well. I want two percent under each facility like I had said before one for current year and one for last year. &lt;/P&gt;&lt;P&gt; How can I make this work? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 15:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Am-I-using-the-proper-function-for-this-problem/m-p/595830#M478319</guid>
      <dc:creator>neena123</dc:creator>
      <dc:date>2014-03-19T15:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Am I using the proper function for this problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Am-I-using-the-proper-function-for-this-problem/m-p/595831#M478320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your first expression can be written better using set analysis, and then we can also fix the second part:&lt;/P&gt;&lt;P&gt;=count({&amp;lt;[Turnaround Days]={'&amp;gt;2'},[Facility]={'Alpharetta'},[Status]={'Shipped'}&amp;gt;}distinct [Unique Order Key])/count({&amp;lt;[Facility]={'Alpharetta'}&amp;gt;}Distinct [Unique Order Key])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 15:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Am-I-using-the-proper-function-for-this-problem/m-p/595831#M478320</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-03-19T15:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Am I using the proper function for this problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Am-I-using-the-proper-function-for-this-problem/m-p/595832#M478321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK YOU!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 15:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Am-I-using-the-proper-function-for-this-problem/m-p/595832#M478321</guid>
      <dc:creator>neena123</dc:creator>
      <dc:date>2014-03-19T15:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Am I using the proper function for this problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Am-I-using-the-proper-function-for-this-problem/m-p/595833#M478322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for helping me. I have another question I have been trying to make the expression show current year and previous year how would I incorporate that into the expression? Is their a current year function? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 19:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Am-I-using-the-proper-function-for-this-problem/m-p/595833#M478322</guid>
      <dc:creator>neena123</dc:creator>
      <dc:date>2014-03-19T19:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Am I using the proper function for this problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Am-I-using-the-proper-function-for-this-problem/m-p/595834#M478323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Current Year:&lt;/P&gt;&lt;P&gt;=count({&amp;lt;[Turnaround Days]={'&amp;gt;2'},[Facility]={'Alpharetta'},[Status]={'Shipped'},[Date Field]={'=year([Date Field])=year(today()))'}&amp;gt;}distinct [Unique Order Key])/count({&amp;lt;[Facility]={'Alpharetta'},[Date Field]={'=year([Date Field])=year(today()))'}&amp;gt;}Distinct [Unique Order Key])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous Year:&lt;/P&gt;&lt;P&gt;=count({&amp;lt;[Turnaround Days]={'&amp;gt;2'},[Facility]={'Alpharetta'},[Status]={'Shipped'},[Date Field]={'=year([Date Field])=year(today())-1)'}&amp;gt;}distinct [Unique Order Key])/count({&amp;lt;[Facility]={'Alpharetta'},[Date Field]={'=year([Date Field])=year(today())-1)'}&amp;gt;}Distinct [Unique Order Key])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that [Date Field] cannot be a dimension on your chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 19:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Am-I-using-the-proper-function-for-this-problem/m-p/595834#M478323</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-03-19T19:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Am I using the proper function for this problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Am-I-using-the-proper-function-for-this-problem/m-p/595835#M478324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I have: =count({&amp;lt;[Turnaround Days]={'&amp;gt;2'}, [Facility]={'Alpharetta'}, [Ship Year]=('today())-1', [Status]={'Shipped'}&amp;gt;}distinct[Unique Order Key])/count({&amp;lt;[Facility]={'Alpharetta'}&amp;gt;}Distinct [Unique Order Key])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 19:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Am-I-using-the-proper-function-for-this-problem/m-p/595835#M478324</guid>
      <dc:creator>neena123</dc:creator>
      <dc:date>2014-03-19T19:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Am I using the proper function for this problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Am-I-using-the-proper-function-for-this-problem/m-p/595836#M478325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lol I was writing a reply before I saw this. Thank you so much for your time!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 19:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Am-I-using-the-proper-function-for-this-problem/m-p/595836#M478325</guid>
      <dc:creator>neena123</dc:creator>
      <dc:date>2014-03-19T19:32:48Z</dc:date>
    </item>
  </channel>
</rss>

