<?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: Problem with If expression in Pie chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187930#M885776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the calculation dimension should say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(srnumber &amp;gt;3 ,'All', srnumber)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: Calculated dimension are not very efficient.&lt;/P&gt;&lt;P&gt;it would be better to create a new field at the script level using the same logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load:&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If(number &amp;gt;3 ,'All', &lt;/SPAN&gt;srnumber&lt;SPAN style="font-size: 13.3333px;"&gt;) As&amp;nbsp; YourPreferedName&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="font-weight: inherit; font-style: inherit; font-family: 'comic sans ms', sans-serif;"&gt;&lt;BR /&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="font-weight: inherit; font-style: inherit; font-family: 'comic sans ms', sans-serif;"&gt;&lt;BR /&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="font-weight: inherit; font-style: inherit; font-family: 'comic sans ms', sans-serif;"&gt;&lt;BR /&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="font-weight: inherit; font-style: inherit; font-family: 'comic sans ms', sans-serif;"&gt;&lt;BR /&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="font-weight: inherit; font-style: inherit; font-family: 'comic sans ms', sans-serif;"&gt;Feeling Qlikngry?&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;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="8342" data-objecttype="102" href="https://community.qlik.com/docs/DOC-8342" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;How To /Missing Manual(25 articles)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2016 21:25:31 GMT</pubDate>
    <dc:creator>robert_mika</dc:creator>
    <dc:date>2016-09-19T21:25:31Z</dc:date>
    <item>
      <title>Problem with If expression in Pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187928#M885774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a query regarding the Pie Chart . As per my scenario I have to segregate the values of pie as follow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If srnumber is =1 then One&lt;/P&gt;&lt;P&gt;If srnumber is =2 then Two&lt;/P&gt;&lt;P&gt;If srnumber is =3 then Three&lt;/P&gt;&lt;P&gt;If srnumber is &amp;gt;=3 then 'All'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first 3 condition can be achieved but in the last case I am unable to rectify the issue or what is going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;Thanks in advance , any help is appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187928#M885774</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with If expression in Pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187929#M885775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187929#M885775</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2016-09-19T18:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with If expression in Pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187930#M885776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the calculation dimension should say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(srnumber &amp;gt;3 ,'All', srnumber)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: Calculated dimension are not very efficient.&lt;/P&gt;&lt;P&gt;it would be better to create a new field at the script level using the same logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load:&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If(number &amp;gt;3 ,'All', &lt;/SPAN&gt;srnumber&lt;SPAN style="font-size: 13.3333px;"&gt;) As&amp;nbsp; YourPreferedName&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="font-weight: inherit; font-style: inherit; font-family: 'comic sans ms', sans-serif;"&gt;&lt;BR /&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="font-weight: inherit; font-style: inherit; font-family: 'comic sans ms', sans-serif;"&gt;&lt;BR /&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="font-weight: inherit; font-style: inherit; font-family: 'comic sans ms', sans-serif;"&gt;&lt;BR /&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="font-weight: inherit; font-style: inherit; font-family: 'comic sans ms', sans-serif;"&gt;&lt;BR /&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="font-weight: inherit; font-style: inherit; font-family: 'comic sans ms', sans-serif;"&gt;Feeling Qlikngry?&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;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="8342" data-objecttype="102" href="https://community.qlik.com/docs/DOC-8342" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;How To /Missing Manual(25 articles)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 21:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187930#M885776</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2016-09-19T21:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with If expression in Pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187931#M885777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Neelam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st of all thanks for reply. the condition which you used by that we can not see that how many records are there in the specific pie. Hence, it is partially correct to get the desired output. By the way I get the solution by adding calculated field as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Srnumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=3 ,3,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Srnumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=1 ,1,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Srnumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=2 ,2,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Srnumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;gt;=3 ,'All',&lt;BR /&gt; )))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 13:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187931#M885777</guid>
      <dc:creator />
      <dc:date>2016-09-20T13:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with If expression in Pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187932#M885778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So did it work or you are still working on the measure part???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 16:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187932#M885778</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2016-09-20T16:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with If expression in Pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187933#M885779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for being picky:&lt;/P&gt;&lt;P&gt;Is that really correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;Srnumber=3&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; ,3,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Srnumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;=1 ,1,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Srnumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;=2 ,2,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;Srnumber&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&amp;gt;&lt;/SPAN&gt;=3&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; ,'All',&lt;BR /&gt;))))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 21:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187933#M885779</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2016-09-20T21:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with If expression in Pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187934#M885780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Robert ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes It is correct.we have to create calculated dimension using the above formula and in expressions we have to give the count for srnumber (i.e. Count(srnumber)).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 04:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187934#M885780</guid>
      <dc:creator />
      <dc:date>2016-09-21T04:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with If expression in Pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187935#M885781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does Robert Mika Expression suitable for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or exactly, see this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(srnumber =1,'One',If(srnumber =2,'Two',If(srnumber =3,'Three',If(srnumber &amp;gt;3,'All'))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/138130_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 06:31:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187935#M885781</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-21T06:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with If expression in Pie chart</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187936#M885782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My concern was related to the calculation:&lt;/P&gt;&lt;P&gt;Yuu got &amp;gt;=3 and =3.&lt;/P&gt;&lt;P&gt;This way some of the values are being calculated twice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 21:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-expression-in-Pie-chart/m-p/1187936#M885782</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2016-09-21T21:33:00Z</dc:date>
    </item>
  </channel>
</rss>

