<?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: Calculated Dimension with multiple isnull() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-multiple-isnull/m-p/1744678#M590914</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/15522"&gt;@henrybergemann&lt;/a&gt;&amp;nbsp; I would suggest to move your if condition in load script instead because in calculated dimension you may need to use aggr function to work properly . You can do something like below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(len(trim(Kündigung_Bestätigt))=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and len(trim([TR5 Update]))=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and len(trim(MachinemoveDocno))=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and len(trim(ActivityCodeMachine))=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,'Offen','No') as Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then you can simply call Flag field in your dimension&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 10:14:32 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-09-17T10:14:32Z</dc:date>
    <item>
      <title>Calculated Dimension with multiple isnull()</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-multiple-isnull/m-p/1744628#M590909</link>
      <description>&lt;P&gt;Hello Community&lt;/P&gt;&lt;P&gt;i have a Question about this Topic:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Calculated Dimension looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(len(trim(Kündigung_Bestätigt))=0&lt;BR /&gt;and len(trim([TR5 Update]))=0&lt;BR /&gt;and len(trim(MachinemoveDocno))=0&lt;BR /&gt;and len(trim(ActivityCodeMachine))=0&lt;BR /&gt;,'Offen','No')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Would like to make a dimension when all these Field are Empty, it should give me "Offen" But the Calculated Dimension only shows me a Blank Field.&amp;nbsp; (In my Example alle Fields are Empty, so it should give me "Offen"&lt;/P&gt;&lt;P&gt;(I also tried isNull(Field))&lt;/P&gt;&lt;P&gt;When i only make one Statement like&lt;/P&gt;&lt;P&gt;=if(len(trim(Kündigung_Bestätigt))=0,'Offen','No')&lt;/P&gt;&lt;P&gt;it works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where is may Mistake?&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Henry&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 08:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-multiple-isnull/m-p/1744628#M590909</guid>
      <dc:creator>henrybergemann</dc:creator>
      <dc:date>2020-09-17T08:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension with multiple isnull()</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-multiple-isnull/m-p/1744631#M590911</link>
      <description>&lt;P&gt;maybe try to aggregate the whole thing to a dimension?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exp of data :&amp;nbsp;&lt;/P&gt;&lt;P&gt;DimID ,&amp;nbsp;&lt;SPAN&gt;Kündigung_Bestätigt,[TR5 Update],MachinemoveDocno,ActivityCodeMachine&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1,,,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2,1,,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3,,,,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in this case you should have 'Offen' for dimID 1 and 3..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;why? beacause all values of ur 4 dimensions are nulls.. GROUP BY your DIMID !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;which means, ur expression would rather be :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=&lt;STRONG&gt;aggr(&lt;/STRONG&gt;if(len(trim(Kündigung_Bestätigt))=0&lt;BR /&gt;and len(trim([TR5 Update]))=0&lt;BR /&gt;and len(trim(MachinemoveDocno))=0&lt;BR /&gt;and len(trim(ActivityCodeMachine))=0&lt;BR /&gt;,'Offen','No')&lt;STRONG&gt;,DimID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 08:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-multiple-isnull/m-p/1744631#M590911</guid>
      <dc:creator>OmarBenSalem</dc:creator>
      <dc:date>2020-09-17T08:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension with multiple isnull()</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-multiple-isnull/m-p/1744642#M590913</link>
      <description>&lt;P&gt;Well my future Plan is of course to make this Field not a calculated Dimension .&lt;/P&gt;&lt;P&gt;Your Example wont work as a Calculated Dimension right?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 08:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-multiple-isnull/m-p/1744642#M590913</guid>
      <dc:creator>henrybergemann</dc:creator>
      <dc:date>2020-09-17T08:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension with multiple isnull()</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-multiple-isnull/m-p/1744678#M590914</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/15522"&gt;@henrybergemann&lt;/a&gt;&amp;nbsp; I would suggest to move your if condition in load script instead because in calculated dimension you may need to use aggr function to work properly . You can do something like below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(len(trim(Kündigung_Bestätigt))=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and len(trim([TR5 Update]))=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and len(trim(MachinemoveDocno))=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and len(trim(ActivityCodeMachine))=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,'Offen','No') as Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then you can simply call Flag field in your dimension&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 10:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-multiple-isnull/m-p/1744678#M590914</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-17T10:14:32Z</dc:date>
    </item>
  </channel>
</rss>

