<?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: multiple if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936051#M970839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use acumulative option in the chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Sep 2015 16:36:54 GMT</pubDate>
    <dc:creator>ecolomer</dc:creator>
    <dc:date>2015-09-11T16:36:54Z</dc:date>
    <item>
      <title>multiple if</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936045#M970833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;hello&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;i am new in qlikview&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;i have year dimension,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;i want to show below expression&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(year=1391,count(if (mid(employee_date,1,4)&amp;lt;=1391&amp;nbsp; ,personel_code)),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(year=1392,count(if (mid(employee_date,1,4)&amp;lt;=1392&amp;nbsp; ,personel_code)),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(year=1393,count(if (mid(employee_date,1,4)&amp;lt;=1393&amp;nbsp; ,personel_code))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;)))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;how can i show this ??&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 15:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936045#M970833</guid>
      <dc:creator />
      <dc:date>2015-09-11T15:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: multiple if</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936046#M970834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think you can simplify it at the script level by using an expression like below.&lt;/P&gt;&lt;P&gt;1. Create a new field such as Flag_emp, to create a flag per record where '1' indicates those records where the Year = Year of Employee_date&lt;/P&gt;&lt;P&gt;2. Load Year, ,&lt;/P&gt;&lt;P&gt;if(Year = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;mid(employee_date,1,4),1,0) as Flag_emp from &amp;lt;data srouce&amp;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.3333px;"&gt;3. Use this field in your chart expression like below&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.3333px;"&gt;Dimension: Year&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.3333px;"&gt;Expression: count({&amp;lt;Flag_emp={1}&amp;gt;} personal_code)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 15:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936046#M970834</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2015-09-11T15:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: multiple if</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936047#M970835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is likely best solved with a data model change. Could you attach a sample QVW where you are encountering the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 15:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936047#M970835</guid>
      <dc:creator>dclark0699</dc:creator>
      <dc:date>2015-09-11T15:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: multiple if</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936048#M970836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain more your question, please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 15:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936048#M970836</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2015-09-11T15:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: multiple if</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936049#M970837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks alot &lt;/P&gt;&lt;P&gt;but how to create new field ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 16:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936049#M970837</guid>
      <dc:creator />
      <dc:date>2015-09-11T16:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: multiple if</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936050#M970838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a bar chart&lt;/P&gt;&lt;P&gt;dimension is year&lt;/P&gt;&lt;P&gt;i want to show number of personal in each year&lt;/P&gt;&lt;P&gt;number of my personal in each year is :&lt;/P&gt;&lt;P&gt;1392=10&lt;/P&gt;&lt;P&gt;1393=12&lt;/P&gt;&lt;P&gt;i want when i select 1393 in listbox , bar cahrt show 22 &lt;/P&gt;&lt;P&gt;it means that when i select 1393 , equal no. of personal in 1392 + no. of personal in 1393&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 16:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936050#M970838</guid>
      <dc:creator />
      <dc:date>2015-09-11T16:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: multiple if</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936051#M970839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use acumulative option in the chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 16:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936051#M970839</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2015-09-11T16:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: multiple if</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936052#M970840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Variable&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMaxYear &lt;/SPAN&gt;= Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3332996368408px;"&gt;mid(employee_date,1,4)&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Set Analysis:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Count({$&amp;lt; Year ={'&amp;lt;=$(=vMaxYear)'}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3332996368408px;"&gt;personel_code&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 17:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-if/m-p/936052#M970840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-11T17:05:13Z</dc:date>
    </item>
  </channel>
</rss>

