<?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 One conditional expression in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/One-conditional-expression-in-chart/m-p/643571#M235782</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody. Im new in Qlik and have some questions.&lt;/P&gt;&lt;P&gt;I have list boxes with multiple selection allowed:&lt;/P&gt;&lt;P&gt;-"Quarter" with 5 values&amp;nbsp; (1,2,3,4,5). 5-means Year(not aggr) value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create pie chart with next expression definition&lt;/P&gt;&lt;P&gt; Count({&amp;lt;[XXX]={'0'}&amp;gt;} [XXX])&lt;/P&gt;&lt;P&gt;But i have to add to this definition condition that related to listbox "Quarter".&lt;/P&gt;&lt;P&gt;I can show sql request to explain what i want&lt;/P&gt;&lt;P&gt;qlik ones looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select count(XXX) from dataset where Quarter_Field in "Quarter Listbox Values" &lt;/P&gt;&lt;P&gt;and XXX=0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i need something like&lt;/P&gt;&lt;P&gt;1. If Quarter_Listbox includes "5" then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select count(XXX) from dataset where Quarter_Field=5&lt;/P&gt;&lt;P&gt;and XXX=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.If Quarter_Listbox in (1,2,3,4) then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select count(XXX) from dataset where Quarter_Field=5&lt;/P&gt;&lt;P&gt;and (Another_field is null or ceil(month(Another_field)/3) in "Quarter Listbox Values")&lt;/P&gt;&lt;P&gt;and XXX=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 May 2014 16:59:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-22T16:59:05Z</dc:date>
    <item>
      <title>One conditional expression in chart</title>
      <link>https://community.qlik.com/t5/QlikView/One-conditional-expression-in-chart/m-p/643571#M235782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody. Im new in Qlik and have some questions.&lt;/P&gt;&lt;P&gt;I have list boxes with multiple selection allowed:&lt;/P&gt;&lt;P&gt;-"Quarter" with 5 values&amp;nbsp; (1,2,3,4,5). 5-means Year(not aggr) value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create pie chart with next expression definition&lt;/P&gt;&lt;P&gt; Count({&amp;lt;[XXX]={'0'}&amp;gt;} [XXX])&lt;/P&gt;&lt;P&gt;But i have to add to this definition condition that related to listbox "Quarter".&lt;/P&gt;&lt;P&gt;I can show sql request to explain what i want&lt;/P&gt;&lt;P&gt;qlik ones looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select count(XXX) from dataset where Quarter_Field in "Quarter Listbox Values" &lt;/P&gt;&lt;P&gt;and XXX=0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i need something like&lt;/P&gt;&lt;P&gt;1. If Quarter_Listbox includes "5" then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select count(XXX) from dataset where Quarter_Field=5&lt;/P&gt;&lt;P&gt;and XXX=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.If Quarter_Listbox in (1,2,3,4) then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select count(XXX) from dataset where Quarter_Field=5&lt;/P&gt;&lt;P&gt;and (Another_field is null or ceil(month(Another_field)/3) in "Quarter Listbox Values")&lt;/P&gt;&lt;P&gt;and XXX=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 16:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-conditional-expression-in-chart/m-p/643571#M235782</guid>
      <dc:creator />
      <dc:date>2014-05-22T16:59:05Z</dc:date>
    </item>
  </channel>
</rss>

