<?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: Data Modeling Question (optimization) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Data-Modeling-Question-optimization/m-p/1535562#M38626</link>
    <description>&lt;P&gt;Thanks a lot for your quick reply. That answers the questions that I asked. As an additional question, what would be the formula in order to compute the&amp;nbsp;total number of passengers travelling on bus 201? I suppose that I&amp;nbsp;would need to use the distinct or is there another solution? Thanks a lot. Annick&lt;/P&gt;</description>
    <pubDate>Sun, 27 Jan 2019 15:12:18 GMT</pubDate>
    <dc:creator>annick</dc:creator>
    <dc:date>2019-01-27T15:12:18Z</dc:date>
    <item>
      <title>Data Modeling Question (optimization)</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Modeling-Question-optimization/m-p/1535557#M38624</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have 2 tables: one&amp;nbsp;with bus details (bus number, stations where the bus departs and arrives, associated schedules, number of available seats), one with traveler details (name, the&amp;nbsp;station where&amp;nbsp;the traveller starts his journey, the final station where he arrives).&lt;/P&gt;&lt;P&gt;Here's the load script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BusTimeTable:&lt;BR /&gt;Load * inline&lt;BR /&gt;[&lt;BR /&gt;BusNumber,&amp;nbsp;FromStation,&amp;nbsp;ToStation,&amp;nbsp;NumberOfSeats,&amp;nbsp;Departure,&amp;nbsp;Arrival,&amp;nbsp;&lt;BR /&gt;201, &amp;nbsp;&amp;nbsp;A, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;B, &amp;nbsp;&amp;nbsp;&amp;nbsp;12,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;10:00,&amp;nbsp;&amp;nbsp;11:00&lt;BR /&gt;201,&amp;nbsp;&amp;nbsp;B,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;C, &amp;nbsp;&amp;nbsp;&amp;nbsp;10,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;12:00, &amp;nbsp;&amp;nbsp;13:00&lt;BR /&gt;201, &amp;nbsp;&amp;nbsp;C, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;D, &amp;nbsp;&amp;nbsp;&amp;nbsp;8,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;14:00, &amp;nbsp;&amp;nbsp;18:00&lt;BR /&gt;202, &amp;nbsp;&amp;nbsp;A,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;D, &amp;nbsp;&amp;nbsp;&amp;nbsp;20,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;09:00, &amp;nbsp;&amp;nbsp;16:00];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Travellers:&lt;BR /&gt;Load * inline&lt;BR /&gt;[&lt;BR /&gt;Traveller,&amp;nbsp;BusNumber, &amp;nbsp;StartJourney,&amp;nbsp;EndJourney&lt;BR /&gt;Jim, &amp;nbsp;&amp;nbsp;201,&amp;nbsp;&amp;nbsp;A, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;D&lt;BR /&gt;John,&amp;nbsp;&amp;nbsp;201,&amp;nbsp;&amp;nbsp;A,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;C&lt;BR /&gt;Jane, &amp;nbsp;&amp;nbsp;201,&amp;nbsp;&amp;nbsp;B, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;D&lt;BR /&gt;Jack, &amp;nbsp;&amp;nbsp;201,&amp;nbsp;&amp;nbsp;C,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;D&lt;BR /&gt;Sophie,&amp;nbsp;&amp;nbsp;201,&amp;nbsp;&amp;nbsp;B,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;C&lt;BR /&gt;Daniel,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 202,&amp;nbsp;&amp;nbsp;A,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;D];&lt;/P&gt;&lt;P&gt;The measures I would like to show are the following:&lt;/P&gt;&lt;P&gt;- Number of travelers departing from a given station even as a transit point e.g. from station B, I expect to see 4 (Jim, John, Jane, Sophie)&lt;/P&gt;&lt;P&gt;- Number of travelers arriving to a given station even as a transit point e.g. to station C, I expect to see 5 (Jim, John, Jane, Jack, Sophie)&lt;/P&gt;&lt;P&gt;- Number of travelers starting their journey from B (not as a transit point) e.g. from B I expect to see 2 (Jane and Sophie)&lt;/P&gt;&lt;P&gt;I don't think that I can achieve this with the current data model. What would be the best one?&lt;/P&gt;&lt;P&gt;Many thanks in advance for your kind help,&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Annick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:44:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Modeling-Question-optimization/m-p/1535557#M38624</guid>
      <dc:creator>annick</dc:creator>
      <dc:date>2024-11-16T06:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modeling Question (optimization)</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Modeling-Question-optimization/m-p/1535561#M38625</link>
      <description>&lt;P&gt;in order to do so, i'd suggest you generate extra data for each journey for each passenger:&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg from the journey Jim: A-D you'd need to generate&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Journey, User,busnr, Station,Indicator Passage, Indicator StartStation, Indicator EndStation,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;JimAD,Jim,201, A,1,1,0&lt;/P&gt;&lt;P&gt;JimAD,Jim,201,B,1,0,0&lt;/P&gt;&lt;P&gt;JimAD,Jim,201,C,1,0,0&lt;/P&gt;&lt;P&gt;JimAD,Jim,201,D,1,0,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to generate this data, check interval match (qlik help)&amp;nbsp;&lt;/P&gt;&lt;P&gt;the idea is to match each station occurence in the interval defined by the journey (eg: match C to the interval A-D)&lt;/P&gt;&lt;P&gt;as interval match only works with numerical values, that will be a first challenge.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after that,&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum( indicaotr Start station) gives the starting passengers per station,&lt;/P&gt;&lt;P&gt;sum(indicator end) gives the arriving passengers&lt;/P&gt;&lt;P&gt;sum(transit) all the passenger present at a station...&amp;nbsp;&lt;/P&gt;&lt;P&gt;combining indicators may enable extra measures.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 14:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Modeling-Question-optimization/m-p/1535561#M38625</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2019-01-27T14:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modeling Question (optimization)</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Modeling-Question-optimization/m-p/1535562#M38626</link>
      <description>&lt;P&gt;Thanks a lot for your quick reply. That answers the questions that I asked. As an additional question, what would be the formula in order to compute the&amp;nbsp;total number of passengers travelling on bus 201? I suppose that I&amp;nbsp;would need to use the distinct or is there another solution? Thanks a lot. Annick&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 15:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Modeling-Question-optimization/m-p/1535562#M38626</guid>
      <dc:creator>annick</dc:creator>
      <dc:date>2019-01-27T15:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data Modeling Question (optimization)</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Modeling-Question-optimization/m-p/1535580#M38628</link>
      <description>&lt;P&gt;count distinct users yes (at first sight)&lt;/P&gt;&lt;P&gt;this will allow the use of several dimensions (dates, bus lines, stations,...)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 20:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Modeling-Question-optimization/m-p/1535580#M38628</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2019-01-27T20:07:15Z</dc:date>
    </item>
  </channel>
</rss>

