<?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: nested if else logic help in qliksense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/nested-if-else-logic-help-in-qliksense/m-p/1781015#M60768</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/78229"&gt;@hosasahana&lt;/a&gt;&amp;nbsp;, please see if this works for you and if it is what you want theorically, it is always preferible to make things on script, before trying to do everything in expressions.&lt;/P&gt;&lt;P&gt;It is a concatenation of that three tables :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;id,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;deviceA as Device, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DateField,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CalculatedMeasure &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;From yoursource;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;concatenate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;id,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;deviceB as Device, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DateField,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CalculatedMeasure &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;From yoursource;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;concatenate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;id,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;deviceC as Device, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DateField,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CalculatedMeasure &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;From yoursource;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then, makes 2 tables to get the results about dates :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Not_Today:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Device,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;count(date) as Not_Today_Count&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;from A&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Where&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DateField &amp;lt; today()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Group By&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Device;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Today:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Device,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;count(date) as Today_Count&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;from A&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Where&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DateField &amp;gt;= today()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Group By&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Device;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;then you can make a formula like this&amp;nbsp; in your chart, using Device as dimension:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(Not_Today_Count) / sum ( total&amp;nbsp;Today_Count)&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2021 21:14:24 GMT</pubDate>
    <dc:creator>QFabian</dc:creator>
    <dc:date>2021-02-08T21:14:24Z</dc:date>
    <item>
      <title>nested if else logic help in qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/nested-if-else-logic-help-in-qliksense/m-p/1780870#M60761</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;Request help in nested if for a qlik logic I have.&lt;/P&gt;&lt;P&gt;I have 3 tables loaded , each table has a type of device in it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to take a count of device in each table divided by total count of devices from all 3 tables, including few other where clauses.&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;id&lt;/P&gt;&lt;P&gt;deviceA&amp;nbsp;&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;calculated measure&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;date&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;id&lt;/P&gt;&lt;P&gt;deviceB&amp;nbsp;&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;calculated measure&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;date&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:&lt;/P&gt;&lt;P&gt;id&lt;/P&gt;&lt;P&gt;deviceC&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;calculated measure&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;date&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can I get below output?&lt;/P&gt;&lt;P&gt;I want output like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;FONT color="#339966"&gt;if date&amp;nbsp; &amp;lt;today()) count(date)&amp;nbsp;&lt;/FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (&lt;FONT color="#339966"&gt;individual device count A/B/C)&amp;nbsp;&lt;/FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT color="#339966"&gt;count(ID)3 tables&lt;/FONT&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;FONT color="#339966"&gt;(individual device count) /count(ID)&lt;/FONT&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;regards,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Sahana&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 13:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/nested-if-else-logic-help-in-qliksense/m-p/1780870#M60761</guid>
      <dc:creator>hosasahana</dc:creator>
      <dc:date>2021-02-08T13:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: nested if else logic help in qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/nested-if-else-logic-help-in-qliksense/m-p/1781015#M60768</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/78229"&gt;@hosasahana&lt;/a&gt;&amp;nbsp;, please see if this works for you and if it is what you want theorically, it is always preferible to make things on script, before trying to do everything in expressions.&lt;/P&gt;&lt;P&gt;It is a concatenation of that three tables :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;id,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;deviceA as Device, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DateField,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CalculatedMeasure &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;From yoursource;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;concatenate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;id,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;deviceB as Device, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DateField,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CalculatedMeasure &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;From yoursource;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;concatenate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;id,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;deviceC as Device, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DateField,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CalculatedMeasure &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;From yoursource;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then, makes 2 tables to get the results about dates :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Not_Today:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Device,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;count(date) as Not_Today_Count&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;from A&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Where&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DateField &amp;lt; today()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Group By&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Device;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Today:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Device,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;count(date) as Today_Count&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;from A&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Where&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DateField &amp;gt;= today()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Group By&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Device;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;then you can make a formula like this&amp;nbsp; in your chart, using Device as dimension:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(Not_Today_Count) / sum ( total&amp;nbsp;Today_Count)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 21:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/nested-if-else-logic-help-in-qliksense/m-p/1781015#M60768</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2021-02-08T21:14:24Z</dc:date>
    </item>
  </channel>
</rss>

