<?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: Conditional multiplication in Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1555806#M456995</link>
    <description>Anybody who could help me with this?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot&lt;BR /&gt;Philipp</description>
    <pubDate>Wed, 13 Mar 2019 08:52:55 GMT</pubDate>
    <dc:creator>daumkep</dc:creator>
    <dc:date>2019-03-13T08:52:55Z</dc:date>
    <item>
      <title>Conditional multiplication in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1555084#M456992</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I have the following situation:&lt;/P&gt;&lt;P&gt;I have a stable table "Overview" with different values for different symptoms.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 841px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7742i8A7B7CAA97707055/image-size/large?v=v2&amp;amp;px=999" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I now want to calculate an overall score for each patient. the score shall multiply all LR+/LR- scores of all symptoms of each patient. If a patient has a symptom, it shall multiply LR+, otherwise LR-.&lt;/P&gt;&lt;P&gt;Some examples:&lt;BR /&gt;Patient A has symptoms 'Hypertension' and 'Obesity' =&amp;gt; Score(A) = 1,126*1,333 = 1.5&lt;BR /&gt;Patient B has no symptoms =&amp;gt; Score(B) = 0,857*0,5 = 0,42&lt;BR /&gt;Patient C has symptom 'Obesity', but no 'Hypertension' = &amp;gt; Score(C) = 1,126 * 0,5 = 0,563&lt;/P&gt;&lt;P&gt;The formula I search for, needs to do something like this:&lt;/P&gt;&lt;P&gt;for eachPatient in Patient:&lt;BR /&gt;&amp;nbsp; score(eachPatient) = 1&lt;BR /&gt;&amp;nbsp; for symptom in symptoms:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if symptom in PatientSymptoms:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; score = score*LR+&lt;BR /&gt;&amp;nbsp;&amp;nbsp; else:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; score = score*LR-&lt;/P&gt;&lt;P&gt;The output table shall look like this:&lt;BR /&gt;A;1.5&lt;BR /&gt;B;0.42&lt;BR /&gt;C;0.563&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;Does somebody know how to do this and could give me advise on it?&lt;/P&gt;&lt;P&gt;Thanks a lot for your help&lt;/P&gt;&lt;P&gt;Philipp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 23:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1555084#M456992</guid>
      <dc:creator>daumkep</dc:creator>
      <dc:date>2019-03-11T23:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional multiplication in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1555112#M456993</link>
      <description>HI Philipp,&lt;BR /&gt;Can you please elaborate this,&lt;BR /&gt;Some examples:&lt;BR /&gt;Patient A has symptoms 'Hypertension' and 'Obesity' =&amp;gt; Score(A) = 1,126*1,333 = 1.5&lt;BR /&gt;Patient B has no symptoms =&amp;gt; Score(B) = 0,857*0,5 = 0,42&lt;BR /&gt;Patient C has symptom 'Obesity', but no 'Hypertension' = &amp;gt; Score(C) = 1,126 * 0,5 = 0,563&lt;BR /&gt;What is score(A) , score(B) as they are in list box</description>
      <pubDate>Tue, 12 Mar 2019 04:59:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1555112#M456993</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-03-12T04:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional multiplication in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1555195#M456994</link>
      <description>&lt;P&gt;Hi Shubham,&lt;/P&gt;&lt;P&gt;the scores are exactly, what I try to calculate. They are not yet in a listbox, but I try to bring them in one.&lt;/P&gt;&lt;P&gt;I have the table 'Overview' which is so far independent of the listboxes PatientSymptoms and Patient. I try to create another listbox (or something similar) which contains 2 columns, one for the Patients (A, B, C...) and one for the score. The Score shall calculate somehow like this:&lt;/P&gt;&lt;P&gt;=Product(If(Symptom = PatientSymptoms;then LR+;else LR-))&lt;/P&gt;&lt;P&gt;So it shall contain the following numbers:&lt;/P&gt;&lt;P&gt;A;1.5&lt;BR /&gt;B;0.42&lt;BR /&gt;C;0.563&lt;/P&gt;&lt;P&gt;So for Patient A, who has both Symptoms 'Obesity' and 'Hypertension', it shall multiply 1,126*1,333. For Patient B who has no symptoms, it shall multiply 0,857*0,5. Patient C who has 'Obesity', but no 'Hypertension' 1,126*0,5&lt;/P&gt;&lt;P&gt;I hope it is it easier to understand now? Thank you very much for your help.&lt;/P&gt;&lt;P&gt;All the best&lt;BR /&gt;Philipp&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 08:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1555195#M456994</guid>
      <dc:creator>daumkep</dc:creator>
      <dc:date>2019-03-12T08:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional multiplication in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1555806#M456995</link>
      <description>Anybody who could help me with this?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot&lt;BR /&gt;Philipp</description>
      <pubDate>Wed, 13 Mar 2019 08:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1555806#M456995</guid>
      <dc:creator>daumkep</dc:creator>
      <dc:date>2019-03-13T08:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional multiplication in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1555814#M456996</link>
      <description>Sorry Daumkep, I didn't receive your last notification.&lt;BR /&gt;Can you share sample data so that I can try this with your data</description>
      <pubDate>Wed, 13 Mar 2019 09:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1555814#M456996</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-03-13T09:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional multiplication in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1555857#M456997</link>
      <description>&lt;P&gt;Hi Shubam,&lt;/P&gt;&lt;P&gt;sure. I sitll use the personal Qlikview edition, but with a Server edition you can still open it, right? Enclosed is also the little Excel sheet that I imported. Please let me know if you have any questions on it. Thanks a lot for you help.&lt;/P&gt;&lt;P&gt;Philipp&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 10:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1555857#M456997</guid>
      <dc:creator>daumkep</dc:creator>
      <dc:date>2019-03-13T10:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional multiplication in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1555866#M456998</link>
      <description>&lt;P&gt;NO I cannot open tha file but let me try.&lt;/P&gt;&lt;P&gt;Also in Prevalence tab you don't have data of LR , so I will add that data as per your snapshot.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 10:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1555866#M456998</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-03-13T10:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional multiplication in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1556004#M456999</link>
      <description>Is your LR data fixed?&lt;BR /&gt;Is it in excel sheet,if yes does it gone change in future?</description>
      <pubDate>Wed, 13 Mar 2019 13:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1556004#M456999</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-03-13T13:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional multiplication in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1556051#M457000</link>
      <description>&lt;P&gt;Yes, it is pretty much fixed (at least there is no drilldown when you click on patients. The values Apriori, Sensitivity, Specificity, LR+ and LR+ are computed based on the 'Prevalence' attribute, but that's pretty it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 896px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7913i0F2FA544A9A56247/image-size/large?v=v2&amp;amp;px=999" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 14:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1556051#M457000</guid>
      <dc:creator>daumkep</dc:creator>
      <dc:date>2019-03-13T14:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional multiplication in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1556915#M457002</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/63064"&gt;@daumkep&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Sorry for late reply, I was working on your data.&lt;/P&gt;&lt;P&gt;You need to connect both data to make them work together like this,&lt;/P&gt;&lt;PRE&gt; AA:
LOAD Patient, 
     Symptom
FROM
[C:\Users\KT3028\Downloads\DemoData.xlsx]
(ooxml, embedded labels, table is Symptoms);
join(AA)
BB:
LOAD Symptom, 
     Prevalence, 
     [LR+], 
     [LR-]
FROM
[C:\Users\KT3028\Downloads\DemoData.xlsx]
(ooxml, embedded labels, table is Prevalence);&lt;/PRE&gt;&lt;P&gt;Then data will be like this,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="ggg.png" style="width: 199px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8095iE2FBE26CCF5764D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ggg.png" alt="ggg.png" /&gt;&lt;/span&gt;&lt;/P&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am unable to make it in list box or table but able to make it in different text boxes but I think it is not correct as patient number will be dynamic.&lt;/P&gt;&lt;P&gt;Hope this will help you at least up to some extent.&lt;/P&gt;&lt;P&gt;='A - '&amp;amp; only(if(Symptom='Obesity',[LR+]))*only(if(Symptom='Hypertension',[LR+]))&lt;/P&gt;&lt;P&gt;='B - '&amp;amp; (if(isNull(Symptom),only(if(Symptom='Obesity',[LR-]))*only(if(Symptom='Hypertension',[LR-]))))&lt;/P&gt;&lt;P&gt;='C - '&amp;amp; only(if(Symptom='Obesity',[LR+]))*only(if(Symptom='Hypertension',[LR-]))&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shubham&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 05:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1556915#M457002</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-03-15T05:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional multiplication in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1560123#M457003</link>
      <description>Hi Shubham,&lt;BR /&gt;&lt;BR /&gt;thanks a lot for your help. It's not exactly what I was looking for (in reality, the number of Symptoms are in the order of hundreds), but it was nevertheless helpful. I guess that I might have to calculate the values outside of Qlik in a script and load it afterwards.&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;Philipp</description>
      <pubDate>Fri, 22 Mar 2019 13:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-multiplication-in-Qlikview/m-p/1560123#M457003</guid>
      <dc:creator>daumkep</dc:creator>
      <dc:date>2019-03-22T13:59:03Z</dc:date>
    </item>
  </channel>
</rss>

