<?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 IF and OR in calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-and-OR-in-calculated-dimension/m-p/926799#M964501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Hello all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;((&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;KREDIT&lt;/SPAN&gt;/100)=0 &lt;SPAN style="color: #0000ff;"&gt;OR&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; (&lt;SPAN style="color: #800000;"&gt;DEBET&lt;/SPAN&gt;/100)=0 &lt;SPAN style="color: #0000ff;"&gt;OR&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; ((&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(NUMBERDRIVE&amp;gt;=1,((&lt;SPAN style="color: #800000;"&gt;KREDIT&lt;/SPAN&gt;/100)-(&lt;SPAN style="color: #800000;"&gt;DEBET&lt;/SPAN&gt;/100)))))/(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;KREDIT&lt;/SPAN&gt;/100))))&amp;gt;=0.25 &lt;SPAN style="color: #0000ff;"&gt;OR&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; ((&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(NUMBERDRIVE&lt;SPAN style="color: #800000;"&gt;&amp;gt;&lt;/SPAN&gt;=1,((&lt;SPAN style="color: #800000;"&gt;KREDIT&lt;/SPAN&gt;/100)-(&lt;SPAN style="color: #800000;"&gt;DEBET&lt;/SPAN&gt;/100)))))/(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;KREDIT&lt;/SPAN&gt;/100))))&amp;lt;=-0.25,((&lt;SPAN style="color: #800000;"&gt;NAME&lt;/SPAN&gt;)),&lt;SPAN style="color: #0000ff;"&gt;null&lt;/SPAN&gt;())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; )&amp;gt;='a',&lt;SPAN style="color: #800000;"&gt;NUMBER&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;null&lt;/SPAN&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;This calculated dimension in my standard table give as answer: mistake. How is that possible and is there somebody who can helps me?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Best regards, Li&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2015 12:09:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-07T12:09:28Z</dc:date>
    <item>
      <title>IF and OR in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-OR-in-calculated-dimension/m-p/926799#M964501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Hello all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;((&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;KREDIT&lt;/SPAN&gt;/100)=0 &lt;SPAN style="color: #0000ff;"&gt;OR&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; (&lt;SPAN style="color: #800000;"&gt;DEBET&lt;/SPAN&gt;/100)=0 &lt;SPAN style="color: #0000ff;"&gt;OR&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; ((&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(NUMBERDRIVE&amp;gt;=1,((&lt;SPAN style="color: #800000;"&gt;KREDIT&lt;/SPAN&gt;/100)-(&lt;SPAN style="color: #800000;"&gt;DEBET&lt;/SPAN&gt;/100)))))/(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;KREDIT&lt;/SPAN&gt;/100))))&amp;gt;=0.25 &lt;SPAN style="color: #0000ff;"&gt;OR&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; ((&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(NUMBERDRIVE&lt;SPAN style="color: #800000;"&gt;&amp;gt;&lt;/SPAN&gt;=1,((&lt;SPAN style="color: #800000;"&gt;KREDIT&lt;/SPAN&gt;/100)-(&lt;SPAN style="color: #800000;"&gt;DEBET&lt;/SPAN&gt;/100)))))/(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;KREDIT&lt;/SPAN&gt;/100))))&amp;lt;=-0.25,((&lt;SPAN style="color: #800000;"&gt;NAME&lt;/SPAN&gt;)),&lt;SPAN style="color: #0000ff;"&gt;null&lt;/SPAN&gt;())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt; )&amp;gt;='a',&lt;SPAN style="color: #800000;"&gt;NUMBER&lt;/SPAN&gt;,&lt;SPAN style="color: #0000ff;"&gt;null&lt;/SPAN&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;This calculated dimension in my standard table give as answer: mistake. How is that possible and is there somebody who can helps me?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Best regards, Li&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 12:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-OR-in-calculated-dimension/m-p/926799#M964501</guid>
      <dc:creator />
      <dc:date>2015-10-07T12:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: IF and OR in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/IF-and-OR-in-calculated-dimension/m-p/926800#M964503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because it is not well defined. You have a mix of naked field references and aggregations and it is not well defined how these should be calculated. Should the summation be made per transaction, per account, per month or per cost center? Compare with a SQL GROUP BY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution is to use an Aggr() function, where you define your grouping symbols and your aggregations separately:&lt;/P&gt;&lt;P&gt;=Aggr(&amp;lt;expression&amp;gt;, TransactionID)&lt;/P&gt;&lt;P&gt;or something similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See &lt;A href="https://community.qlik.com/qlik-blogpost/3676"&gt;Calculated Dimensions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4418"&gt;Pitfalls of the Aggr function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 14:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-and-OR-in-calculated-dimension/m-p/926800#M964503</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-10-07T14:30:33Z</dc:date>
    </item>
  </channel>
</rss>

