<?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 Trying to use IF in calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trying-to-use-IF-in-calculated-dimension/m-p/971322#M970611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the below IF statement in a calculated dimension and it does not seem to be working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(A = '', (if(B= '',time(C,'hh:mm:ss'),time(B,'hh:mm:ss'))),time(A,'hh:mm:ss'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically the logic is, if A is null, then check if B is null - if that's the case return C (in the time format specified), else return B (if B is not null). If A is not null, then return A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2015 12:51:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-17T12:51:13Z</dc:date>
    <item>
      <title>Trying to use IF in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-use-IF-in-calculated-dimension/m-p/971322#M970611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the below IF statement in a calculated dimension and it does not seem to be working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(A = '', (if(B= '',time(C,'hh:mm:ss'),time(B,'hh:mm:ss'))),time(A,'hh:mm:ss'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically the logic is, if A is null, then check if B is null - if that's the case return C (in the time format specified), else return B (if B is not null). If A is not null, then return A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 12:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-use-IF-in-calculated-dimension/m-p/971322#M970611</guid>
      <dc:creator />
      <dc:date>2015-09-17T12:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use IF in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-use-IF-in-calculated-dimension/m-p/971323#M970612</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;Try this&lt;/P&gt;&lt;P&gt;if(isnull(A), ...&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;time(alt(A,B,C),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;hh:mm:ss&lt;/SPAN&gt;')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 12:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-use-IF-in-calculated-dimension/m-p/971323#M970612</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-09-17T12:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use IF in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-use-IF-in-calculated-dimension/m-p/971324#M970613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If all three field are dual fields, meaning they have both a number format and a datetime format, you should be able to do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time(ALT(a,b,c),'hh:mm:ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 12:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-use-IF-in-calculated-dimension/m-p/971324#M970613</guid>
      <dc:creator>dclark0699</dc:creator>
      <dc:date>2015-09-17T12:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use IF in calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-use-IF-in-calculated-dimension/m-p/971325#M970614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;When you say it's not working, what exactly is going wrong?&lt;BR /&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: 13px;"&gt;&lt;BR /&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: 13px;"&gt;Try this may be:&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: 13px;"&gt;&lt;BR /&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: 13px;"&gt;&lt;STRONG&gt;=if(Len(Trim(A)) = 0,&lt;/STRONG&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: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp; if(Len(Trim(B)) = 0, Time(C,'hh:mm:ss'), Time(B,'hh:mm:ss')), Time(A,'hh:mm:ss'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 13:55:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-use-IF-in-calculated-dimension/m-p/971325#M970614</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-17T13:55:39Z</dc:date>
    </item>
  </channel>
</rss>

