<?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: Updating 2 Charts with Different Date Fields Using Selections from the Master Calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Updating-2-Charts-with-Different-Date-Fields-Using-Selections/m-p/422020#M562203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that becuase your users can alter the timeframe the TimeToComplete fields in the dataodel can't be used. I would do the following:&lt;/P&gt;&lt;P&gt;1. ensure you have a Master calendar built into your datamodel (a search on this forum will find the code for that)&lt;/P&gt;&lt;P&gt;2. set up two date variables: vProcess1Date and vProcess2Date&lt;/P&gt;&lt;P&gt;3. set up two calendar objects, one for each of these two variables&lt;/P&gt;&lt;P&gt;4. have dimensions of Process If, Area etc.&lt;/P&gt;&lt;P&gt;5. for the expressions, compare the ProcessDate fields in the datamodel to these calendar variables. Something like:&lt;/P&gt;&lt;P&gt;Not too sure how to do it in an expression just now, but I can think it through later if you have a problem with it.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Mar 2013 11:21:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-08T11:21:28Z</dc:date>
    <item>
      <title>Updating 2 Charts with Different Date Fields Using Selections from the Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-2-Charts-with-Different-Date-Fields-Using-Selections/m-p/422019#M562202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;I'm a bit of a newbie so may be missing something here.&amp;nbsp; I hope I can explain it clearly. I have a data set that contains information on a set of processes.&amp;nbsp; Each row represents a process that has multiple time points.&amp;nbsp; The data set is like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="892"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="80"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Process ID&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="80"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Area&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="114"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Start of Process Date&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="112"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Process Point 1 Date&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="112"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Process Point 2 Date&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="197"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Time to Complete Process 1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="197"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Time to Complete Process 2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="892"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="80"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="80"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;North Yorkshire&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="114"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;03-Aug-12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="112"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;26-Sep-12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="112"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;24-Aug-12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="197"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;54&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="197"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;21&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;7&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;West Yorkshire&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;22-Aug-12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;31-Aug-12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;23-Aug-12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;9&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;8&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;South Yorkshire&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;15-Jun-12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;10-Aug-12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;12-Jun-12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;56&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;-3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;I want to show two charts: one that shows the average time to complete process 1 and another that shows the average time to complete process 2.&amp;nbsp; I want these charts to update based on selections from list boxes based on the master calendar.&amp;nbsp; However, I would like the chart for process 1 to allocate the process to a time period based on Process Point 1 Date and the chart for process 2 to allocate the process to a time period based on Process Point 2 Date.&amp;nbsp; As you can see the&amp;nbsp; dates for process 1 and process 2 are in the same table.&amp;nbsp; The process ID is my primary key to other tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;I am not sure whether I need to build something into my data model to handle this or whether this is better managed in an if statement or set analysis in the expression for the chart.&amp;nbsp; I am assuming it would have to be within the expression as each object would need to define which date it is constrained on in relation to the master calendar. I have built a replica .qvw and have attached this and the data.&amp;nbsp; I tried using:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Process Point 1 Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CalendarDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Time to Complete Process 1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;in the expression for the chart for process 1 to try to link the process 1 end date to the calendar date, but I end up with an "out of object memory" message.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;What is attached is just a small subset of the actual data I want to use.&amp;nbsp; In reality one table could have up to&amp;nbsp; 5 different process points and dates so any solution would need to be scalable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;I hope someone can help.&amp;nbsp; Thanks in advance for your time.&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','sans-serif';"&gt;Vicki &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 10:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-2-Charts-with-Different-Date-Fields-Using-Selections/m-p/422019#M562202</guid>
      <dc:creator />
      <dc:date>2013-03-08T10:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Updating 2 Charts with Different Date Fields Using Selections from the Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-2-Charts-with-Different-Date-Fields-Using-Selections/m-p/422020#M562203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that becuase your users can alter the timeframe the TimeToComplete fields in the dataodel can't be used. I would do the following:&lt;/P&gt;&lt;P&gt;1. ensure you have a Master calendar built into your datamodel (a search on this forum will find the code for that)&lt;/P&gt;&lt;P&gt;2. set up two date variables: vProcess1Date and vProcess2Date&lt;/P&gt;&lt;P&gt;3. set up two calendar objects, one for each of these two variables&lt;/P&gt;&lt;P&gt;4. have dimensions of Process If, Area etc.&lt;/P&gt;&lt;P&gt;5. for the expressions, compare the ProcessDate fields in the datamodel to these calendar variables. Something like:&lt;/P&gt;&lt;P&gt;Not too sure how to do it in an expression just now, but I can think it through later if you have a problem with it.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 11:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-2-Charts-with-Different-Date-Fields-Using-Selections/m-p/422020#M562203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-08T11:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Updating 2 Charts with Different Date Fields Using Selections from the Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-2-Charts-with-Different-Date-Fields-Using-Selections/m-p/422021#M562204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is definitely moving in the right direction.&amp;nbsp; I implemented your solution then altered it slightly so I had only one variable vEndDate that I referred to in both charts.&amp;nbsp; This means I can select a date from the slider/calendar object and both charts update.&amp;nbsp; I'm currently looking at how to accurately select ranges of dates in these objects.&amp;nbsp; I will come back if I need further assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vicki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 12:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-2-Charts-with-Different-Date-Fields-Using-Selections/m-p/422021#M562204</guid>
      <dc:creator />
      <dc:date>2013-03-08T12:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Updating 2 Charts with Different Date Fields Using Selections from the Master Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-2-Charts-with-Different-Date-Fields-Using-Selections/m-p/422022#M562205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a Slider (the same as the Calendar, but with a different setting on the General tab) and set it (also on the General tab) to have Multi value and set a start and end date.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 13:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-2-Charts-with-Different-Date-Fields-Using-Selections/m-p/422022#M562205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-08T13:16:26Z</dc:date>
    </item>
  </channel>
</rss>

