<?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: Help with dimension calculated in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765572#M1032499</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;Create flag in backend&lt;/P&gt;&lt;P&gt;use above condition to create flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like&lt;/P&gt;&lt;P&gt;if(Interval(today()-timestamp#([Date Creation],'MM/DD/YYYY h:mm:ss TT'),'D hh:mm')&amp;gt;0,'Open','Close') as Open_Close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use flag field in your chart&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;if(Open_Close='Open',Interval(today()-timestamp#([Date Creation],'MM/DD/YYYY h:mm:ss TT'),'D hh:mm'),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Front End&lt;/P&gt;&lt;P&gt;try like&lt;/P&gt;&lt;P&gt;If(Interval(today()-timestamp#([Date Creation],'MM/DD/YYYY h:mm:ss TT'),'D hh:mm')&amp;gt;0,Interval(today()-timestamp#([Date Creation],'MM/DD/YYYY h:mm:ss TT'),'D hh:mm'),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better if you do this complex calculation at script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2015 05:16:28 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2015-02-09T05:16:28Z</dc:date>
    <item>
      <title>Help with dimension calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765566#M1032493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need &lt;SPAN style="font-size: 13.3333330154419px;"&gt;showing in &lt;/SPAN&gt;a table the total days leading open support tickets asset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this I have in my database a field called "date of creation" (format: 01/30/2015 11:51:42 am) and a field called "State", I need to subtract the [creation date - current date ] of tickets with [state] = 'active' to show how long they open current ticket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not create the Dimension calculated to perform this calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 04:05:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765566#M1032493</guid>
      <dc:creator />
      <dc:date>2015-02-09T04:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dimension calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765567#M1032494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this&lt;/P&gt;&lt;P&gt;=Timestamp(Now(), 'MM/DD/YYYY h:mm:ss TT')&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Timestamp#('01/30/2015 11:51:42 am', 'MM/DD/YYYY h:mm:ss TT')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 04:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765567#M1032494</guid>
      <dc:creator>senpradip007</dc:creator>
      <dc:date>2015-02-09T04:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dimension calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765568#M1032495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Pradip Sen, I tried using the expression, but it does not calculate anything, it will make the filter [State] = 'Active'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression to use is:&lt;/P&gt;&lt;P&gt;= Timestamp (Now (), 'MM / DD / YYYY h: mm: ss TT')&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Timestamp # ([Date Creation], 'MM / DD / YYYY h: mm: ss TT')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/77382_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 04:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765568#M1032495</guid>
      <dc:creator />
      <dc:date>2015-02-09T04:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dimension calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765569#M1032496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please upload sample qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 04:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765569#M1032496</guid>
      <dc:creator>senpradip007</dc:creator>
      <dc:date>2015-02-09T04:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dimension calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765570#M1032497</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;Considering your date creation field in date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use Interval()&lt;/P&gt;&lt;P&gt;try like,&lt;/P&gt;&lt;P&gt;Interval(today()-[Date Creation],'D hh:mm')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If [Date Creation] field not in date then&lt;/P&gt;&lt;P&gt;use timestamp#() to convert it into date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;Interval(today()-timestamp#([Date Creation],'MM/DD/YYYY h:mm:ss TT'),'D hh:mm')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to compare with current date and time then replace Today() with now()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 04:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765570#M1032497</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-02-09T04:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dimension calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765571#M1032498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dreamer Max, the expression works, now we just need the table shows only open tickets, using SET analisys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any recommendation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for you help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 05:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765571#M1032498</guid>
      <dc:creator />
      <dc:date>2015-02-09T05:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dimension calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765572#M1032499</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;Create flag in backend&lt;/P&gt;&lt;P&gt;use above condition to create flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like&lt;/P&gt;&lt;P&gt;if(Interval(today()-timestamp#([Date Creation],'MM/DD/YYYY h:mm:ss TT'),'D hh:mm')&amp;gt;0,'Open','Close') as Open_Close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use flag field in your chart&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;if(Open_Close='Open',Interval(today()-timestamp#([Date Creation],'MM/DD/YYYY h:mm:ss TT'),'D hh:mm'),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Front End&lt;/P&gt;&lt;P&gt;try like&lt;/P&gt;&lt;P&gt;If(Interval(today()-timestamp#([Date Creation],'MM/DD/YYYY h:mm:ss TT'),'D hh:mm')&amp;gt;0,Interval(today()-timestamp#([Date Creation],'MM/DD/YYYY h:mm:ss TT'),'D hh:mm'),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better if you do this complex calculation at script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 05:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765572#M1032499</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-02-09T05:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dimension calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765573#M1032500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will recommend you to do this in SCRIPT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 05:20:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765573#M1032500</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2015-02-09T05:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dimension calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765574#M1032501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Max Dreamer, analyzing your proposal, your RECOMMEND make use of a flag, but I think it would not be necessary, because I have a field in my BD indicating whether the ticket is open or closed [State]. I am new to QlikView and know little of Set Analisys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My logic tells me I need to do the following&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; = Now() - [Date_Created] where [Estatus]='Active';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just do not know how to express it with Set Analysis within my expression in the graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thaks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 05:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765574#M1032501</guid>
      <dc:creator />
      <dc:date>2015-02-09T05:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dimension calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765575#M1032502</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;If you have already that field then its more simpler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try in chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Estatus]='Active',Expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 05:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765575#M1032502</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-02-09T05:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help with dimension calculated</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765576#M1032503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Max Dreamer for your support, yet still displays all data without applying the filter, I see that now only does the calculation for all tickets with status = 'Active' and resolved that only show data actives using triggers and markers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression remained well:&lt;/P&gt;&lt;P&gt;if ([Status] = 'Active', Interval (today () - [Date Creation], 'D'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the support, the solution helped me and have adapted to cover all my needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 16:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-dimension-calculated/m-p/765576#M1032503</guid>
      <dc:creator />
      <dc:date>2015-02-09T16:20:59Z</dc:date>
    </item>
  </channel>
</rss>

