<?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: Calculating a HitRate for various quotation status in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-a-HitRate-for-various-quotation-status/m-p/751040#M472799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gysbert,&lt;/P&gt;&lt;P&gt;Thanks for that reply.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This might be exactly what I need. &lt;/P&gt;&lt;P&gt;The addition *P(QuotationStatus) tells my calculation only to use the values that are possible within "QuotationStatus"? Is that it? So if I select "won" and "lost" as status, only the data that has either one of these two status is considered?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Dec 2014 10:38:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-17T10:38:33Z</dc:date>
    <item>
      <title>Calculating a HitRate for various quotation status</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-HitRate-for-various-quotation-status/m-p/751036#M472795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I'm fairly new to Qlikview and I try to create an analysis for the quotation processing times within our business unit.&lt;/P&gt;&lt;P&gt;My boss wants to see a HitRate for our quotations which we analyse in two ways:&lt;/P&gt;&lt;P&gt;1. the amount oriented HitRate:&lt;/P&gt;&lt;P&gt;--&amp;gt; amount of won quotations / (amount of won quotations + amount of lost quotations + amount of potentially lost quotations)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;2. the value oriented HitRate: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;--&amp;gt; summarized value of won quotations / (summarized value of won quotations + summarized value of lost quotations + summarized value of potentially lost quotations)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem needs a bit of background information explanation. Unfortunately, we have a huge amount of badly maintained data sets in our database (SAP). We need a "potentially lost" status for our quotations due to the fact that a huge amount of them is just open (=we neither got a corresponding order to the quotation, nor was the quotation yet marked as rejected). Due to that, we had to defined the potentially lost status to get more accurate numbers: If the quotation creation date is older than three months and there is neither a corresponding order, nor a rejection, the quotation is potentially lost (but was never updated in the system because our case handler didn't ask or our client didn't respond). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each data set (one line per quotation), I have this status field which defines the quote as WON, LOST, OPEN or POTENTIALLY LOST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when calculating the aforementioned HitRates, i work with the following data and definitions in my table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amount oriented data:&lt;/P&gt;&lt;P&gt;Quotations:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(QuotationNo)&lt;/P&gt;&lt;P&gt;Rejections:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(QuotationRFJ)&lt;/P&gt;&lt;P&gt;Rejections Real:&amp;nbsp;&amp;nbsp; Count({&amp;lt;QuotationStatus ={LOST}&amp;gt;}QuotationNo)+Count({&amp;lt;QuotationStatus ={POTLOST}&amp;gt;}QuotationNo)&lt;/P&gt;&lt;P&gt;Orders:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count (OrderNo)&lt;/P&gt;&lt;P&gt;HitRate Real:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count({&amp;lt;QuotationStatus ={WON}&amp;gt;}QuotationNo)/(Count({&amp;lt;QuotationStatus ={WON}&amp;gt;}QuotationNo)+Count({&amp;lt;QuotationStatus ={LOST}&amp;gt;}QuotationNo)+Count({&amp;lt;QuotationStatus ={POTLOST}&amp;gt;}QuotationNo))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the same, slightly changed for the value oriented comparison:&lt;/P&gt;&lt;P&gt;QValue:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum (QuotationValue)&lt;/P&gt;&lt;P&gt;OValue:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum (OrderValue)&lt;/P&gt;&lt;P&gt;RejValue:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;QuotationStatus = {Lost}&amp;gt;}QuotationValue)+(Sum({&amp;lt;QuotationStatus = {POTLOST}&amp;gt;}QuotationValue))&lt;/P&gt;&lt;P&gt;HitRate Real:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;QuotationStatus ={WON}&amp;gt;}OrderValue)/(Sum({&amp;lt;QuotationStatus ={WON}&amp;gt;}OrderValue)+Sum({&amp;lt;QuotationStatus ={LOST}&amp;gt;}QuotationValue)+Sum({&amp;lt;QuotationStatus ={POTLOST}&amp;gt;}QuotationValue))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This approach works nicely as long as I do not pre-select any data in any listbox of my dashboard. One listbox that I have is the QuotationStatus from above (won, open, lost, potentially lost).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when selecting data in the listbox, my HitRates are calculated incorrectly because with by using the way I used, the calculations for the HitRates always take the whole available data into consideration.&lt;/P&gt;&lt;P&gt;That means when I only want to look at won orders, the HitRate calculation should only count (or summarize) the values for the pre-selected category.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I thought I could do this with with the help of identifiers, but I either use the wrong one or I do something wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would really appreciate some helpful feedback resp. a hint what I am doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 09:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-HitRate-for-various-quotation-status/m-p/751036#M472795</guid>
      <dc:creator />
      <dc:date>2014-12-17T09:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a HitRate for various quotation status</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-HitRate-for-various-quotation-status/m-p/751037#M472796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bastian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason that you aren't able to apply this filter is because in the set analysis you are using, you explicitly state the parameters for status, which over-rides the current selection. Unfortunately I don't know a way around this issue, maybe if you gave a little more information around what specifically you are after, there might be a creative solution.&lt;/P&gt;&lt;P&gt;As a suggestion to reduce the size of your expressions, although the syntax appears to be incorrect, you can use the "- " modifier to denote a NOT within set analysis. So rather than needing to list all the states you can go:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;Count({&amp;lt;QuotationStatus ={WON}&amp;gt;}QuotationNo)/Count({&amp;lt;QuotationStatus = -{OPEN}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;QuotationNo&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;Just for ease of checking, if you include the QuotationStatus in quotation marks, so &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;QuotationStatus ={'WON'}, you don't get an error in the syntax checker, which can make it easier to check your results&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Edit: Forgot to include, if you keep your text fields in quotation marks, you can use wildcard markers, so you can use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;QuotationStatus ={'*LOST'} to include both LOST and POTLOST in a single expression. Again not solving your issue but hopefully helping to reduce the size and complexity of your expressions.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333339691162px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Tyler&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 10:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-HitRate-for-various-quotation-status/m-p/751037#M472796</guid>
      <dc:creator />
      <dc:date>2014-12-17T10:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a HitRate for various quotation status</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-HitRate-for-various-quotation-status/m-p/751038#M472797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you select WON as category then for example &lt;EM&gt;Rejections Real&lt;/EM&gt; should return value 0? If so try intersecting the hard coded set with the possible values resulting from your selection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count({&amp;lt;QuotationStatus ={LOST}&lt;STRONG&gt;*P(QuotationStatus)&lt;/STRONG&gt;&amp;gt;}QuotationNo)+Count({&amp;lt;QuotationStatus ={POTLOST}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;*P(QuotationStatus)&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt;}QuotationNo)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 10:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-HitRate-for-various-quotation-status/m-p/751038#M472797</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-12-17T10:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a HitRate for various quotation status</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-HitRate-for-various-quotation-status/m-p/751039#M472798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tyler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply and the hint concerning the NOT modifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concerning what I am after I though I already outlined that sufficiently &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;Well, I created a dashboard with the focus of analyzing quotation processing times. I depict how long it takes us to process a quotation. To make the data easier to compare I have a lot of categories and groupings such as: quotation value classes (value &amp;lt;=10k, &amp;lt;=30k, &amp;lt;=100k, &amp;lt;=1m, &amp;gt;1m), amount of material per quotation (&amp;lt;5 items, &amp;lt;20 items, &amp;lt;50 items, &amp;lt;100 items, &amp;gt;100 items) and I also have the aforementioned category for the quotation status (won = order to corresponding quotation existing, lost = offer rejected by client, open= no order and no feedback from client yet, potentially lost=no order and no feedback from client since 3+ months)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now at a certain point when playing with the dashboard and selecting data, I also want to only look at won or lost, or potentially lost offers. I know that if I select only won quotations, my amount oriented HitRate will be 100% but I still want to be able to compare the value oriented HitRate. As correctly observed by you, the definitions which I wrote for the HitRates explicitly state to include all items into the calculation that have the specific status which I mentioned above. BUT, as soon as I choose for example only offers that are in the category &amp;gt;1m and I want to see only quotations that have a corresponding order (which equals the definition for my "WON" status), the calculation for the HitRate still incorporates all potentially lost offers. That it should only do as long as I incorporate all quotation status in my current data analyses (won, lost, open and pot. lost). But as soon as I choose specific states (maybe just won or just lost and potentially lost) the HitRates should calculate accordingly. At least that is what I am trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not really sure if this additional explanations helps. So maybe some example numbers to make it more concrete:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALL quotation status selected:&lt;/P&gt;&lt;P&gt;100 offers, 50 orders, 10 rejected, 10 potentially lost, 30 open&lt;/P&gt;&lt;P&gt;Hit Rate is: 50/(50+10+10)= 71,4%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ONLY quotation status "WON" selected&lt;/P&gt;&lt;P&gt;50 offers, 50 orders (we are talking about the same data as above, but obviously we only have 50 offers left)&lt;/P&gt;&lt;P&gt;Hit Rate is now: 50/50=100%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This becomes even more important with the value HitRate:&lt;/P&gt;&lt;P&gt;Again, I only want to look at "WON" quotations to compare the quotation value and the actual order value (as it can happen that we give further reductions in the order). &lt;/P&gt;&lt;P&gt;Now again only these 50 offers should only be the basis for the calculation of the HitRate:&lt;/P&gt;&lt;P&gt;50 offers, value 50 million, 50 orders, value 45 million&lt;/P&gt;&lt;P&gt;Value HitRate: 45/50 = 90%&lt;/P&gt;&lt;P&gt;But my Hit Rate currently calculates this:&lt;/P&gt;&lt;P&gt;100 offers, value 100 million, 50 orders value 45 million, 10 rejection, value 10 million and 10 potentially lost, value 10 million&lt;/P&gt;&lt;P&gt;Value HitRate: 45/(45+10+10) = 63,2%&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;That calculation is correct, but it analyses all data in my data set (what it should do as long as I do not limit my selection by any grouping), instead of only calculating only with the "remaining" data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this additional description helps to understand what I am trying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Bastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 10:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-HitRate-for-various-quotation-status/m-p/751039#M472798</guid>
      <dc:creator />
      <dc:date>2014-12-17T10:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a HitRate for various quotation status</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-HitRate-for-various-quotation-status/m-p/751040#M472799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gysbert,&lt;/P&gt;&lt;P&gt;Thanks for that reply.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This might be exactly what I need. &lt;/P&gt;&lt;P&gt;The addition *P(QuotationStatus) tells my calculation only to use the values that are possible within "QuotationStatus"? Is that it? So if I select "won" and "lost" as status, only the data that has either one of these two status is considered?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 10:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-HitRate-for-various-quotation-status/m-p/751040#M472799</guid>
      <dc:creator />
      <dc:date>2014-12-17T10:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a HitRate for various quotation status</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-HitRate-for-various-quotation-status/m-p/751041#M472800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was already it. Quick and easy.&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 10:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-HitRate-for-various-quotation-status/m-p/751041#M472800</guid>
      <dc:creator />
      <dc:date>2014-12-17T10:42:56Z</dc:date>
    </item>
  </channel>
</rss>

