<?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 conditional &amp; alt result in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-conditional-alt-result/m-p/1230956#M621968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help,.,.,that worked perfectly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2017 20:22:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-02-08T20:22:04Z</dc:date>
    <item>
      <title>Problem with conditional &amp; alt result</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-conditional-alt-result/m-p/1230954#M621966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this formula in one pivot table graph however the last result isn't giving me what I need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;alt(if((FABS(Sum ([UN DEVUELTAS]))/(Sum ([UN VENDIDAS])+Sum ([UN CANCELADAS])))&amp;gt;2,2,fabs(Sum ([UN DEVUELTAS]))/(Sum ([UN VENDIDAS])+Sum ([UN CANCELADAS]))),"X")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the basic formula is this: &lt;SPAN style="font-size: 13.3333px;"&gt;Sum ([UN DEVUELTAS])/(Sum ([UN VENDIDAS])+Sum ([UN CANCELADAS])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if this formula give me a result greater than 2, it should report 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;and if this formula is undetermined (9/0), it should report 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i use the formula&amp;nbsp; with 0 as "X", the original formula and the&amp;nbsp; first conditional works however the second conditional doesn't work and the others columns of the pivot table works also, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if i use the formula&amp;nbsp; with 1 as "X", nothing works (the original formula, the&amp;nbsp; first conditional &amp;amp; the second conditional &amp;amp; all the other columns of the pivot table, i don't know why the are affected by the result of this column)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;what should I change???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;the script of my table is like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;VENTAS:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FECHA DE FACTURA], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CODIGO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [UN VENDIDAS], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [UN CANCELADAS], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [UN DEVUELTAS], &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, header is 5 lines, table is HBRIEF_7534);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;thanks for your help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 20:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-conditional-alt-result/m-p/1230954#M621966</guid>
      <dc:creator />
      <dc:date>2017-02-07T20:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with conditional &amp; alt result</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-conditional-alt-result/m-p/1230955#M621967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(FABS(Sum ([UN DEVUELTAS]))/(Sum ([UN VENDIDAS])+Sum ([UN CANCELADAS]))&amp;gt;2,&lt;/P&gt;&lt;P&gt;2,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;alt(&lt;/STRONG&gt;fabs(Sum ([UN DEVUELTAS]))/(Sum([UN VENDIDAS])+Sum ([UN CANCELADAS]))&lt;STRONG&gt;,1)&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 08:29:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-conditional-alt-result/m-p/1230955#M621967</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-02-08T08:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with conditional &amp; alt result</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-conditional-alt-result/m-p/1230956#M621968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help,.,.,that worked perfectly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 20:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-conditional-alt-result/m-p/1230956#M621968</guid>
      <dc:creator />
      <dc:date>2017-02-08T20:22:04Z</dc:date>
    </item>
  </channel>
</rss>

