<?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 Need Help: Summary App in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Need-Help-Summary-App/m-p/1837172#M69173</link>
    <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have a table that has 535M rows&amp;nbsp;(~ 60GB) and so decided to try ODAG on Qlik Sense. The problem: I can't get past the first and most basic step: making a Summary App.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The table structure is as follows:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;event_date&lt;/TD&gt;&lt;TD&gt;geo_city&lt;/TD&gt;&lt;TD&gt;event_name&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;device_operating_system&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;app_info_version&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;user_pseudo_id&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;2021-09-14&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;City A&lt;/TD&gt;&lt;TD&gt;Event A&lt;/TD&gt;&lt;TD&gt;Android&lt;/TD&gt;&lt;TD&gt;3.59.0&lt;/TD&gt;&lt;TD&gt;123456&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;2021-09-14&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;City A&lt;/TD&gt;&lt;TD&gt;Event X&lt;/TD&gt;&lt;TD&gt;Android&lt;/TD&gt;&lt;TD&gt;3.59.0&lt;/TD&gt;&lt;TD&gt;123456&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;2021-09-14&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;City B&lt;/TD&gt;&lt;TD&gt;Event A&lt;/TD&gt;&lt;TD&gt;IOS&lt;/TD&gt;&lt;TD&gt;3.59.1&lt;/TD&gt;&lt;TD&gt;222444&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original table actually has more fields, but these are the ones that matter and thus the ones I'm gonna use.&lt;/P&gt;&lt;P&gt;By the end of it, I want to know on event_date "A", geo_city "B", using the OS "C" with the app version "D", how many distinct users did the event "E" and some more complexes things, but the point is: the field "user_pseud_id" can be used as count(distinct user_pseudo_id) or just count(user_pseudo_id).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So what I tried to do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'ODBC';&lt;/P&gt;&lt;P&gt;LOAD event_date,&lt;BR /&gt;event_name,&lt;BR /&gt;geo_city,&lt;BR /&gt;device_operating_system,&lt;BR /&gt;app_info_version,&lt;BR /&gt;user_pseudo_id;&lt;/P&gt;&lt;P&gt;[tb_events]:&lt;BR /&gt;SELECT event_date,&lt;BR /&gt;event_name,&lt;BR /&gt;geo_city,&lt;BR /&gt;device_operating_system,&lt;BR /&gt;app_info_version,&lt;BR /&gt;count(distinct user_pseudo_id)&lt;BR /&gt;FROM smart_data.tb_events&lt;BR /&gt;GROUP BY event_date,&lt;BR /&gt;event_name,&lt;BR /&gt;geo_city,&lt;BR /&gt;device_operating_system,&lt;BR /&gt;app_info_version;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It then says the field&amp;nbsp;user_pseudo_id was not found. But other apps (which we use just a small part of this table) can find this field just fine.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Taking out the distinct and using just count() made no difference. Keeping or not '&amp;nbsp; ' around the fields and table name also made no difference. Putting the count in the load statement (I was getting desperate) also made no difference.&lt;/P&gt;&lt;P&gt;It also doesn't work trying to load without using count or group by. It then says the field 'event_date' was not found. Again, on other apps with a snippet of this table this field works.&lt;/P&gt;&lt;P&gt;It also doesn't work If I try to leave all fields in the LOAD statement, but use only event_date, event_name and count(user_pseudo_id) in the SELECT statement.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So, what am I missing? How can I do a Summary App? Would it be better in this case to give up on ODAG and try another method?&lt;/P&gt;</description>
    <pubDate>Fri, 17 Sep 2021 19:12:30 GMT</pubDate>
    <dc:creator>nbazz</dc:creator>
    <dc:date>2021-09-17T19:12:30Z</dc:date>
    <item>
      <title>Need Help: Summary App</title>
      <link>https://community.qlik.com/t5/App-Development/Need-Help-Summary-App/m-p/1837172#M69173</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have a table that has 535M rows&amp;nbsp;(~ 60GB) and so decided to try ODAG on Qlik Sense. The problem: I can't get past the first and most basic step: making a Summary App.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The table structure is as follows:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;event_date&lt;/TD&gt;&lt;TD&gt;geo_city&lt;/TD&gt;&lt;TD&gt;event_name&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;device_operating_system&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;app_info_version&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;user_pseudo_id&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;2021-09-14&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;City A&lt;/TD&gt;&lt;TD&gt;Event A&lt;/TD&gt;&lt;TD&gt;Android&lt;/TD&gt;&lt;TD&gt;3.59.0&lt;/TD&gt;&lt;TD&gt;123456&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;2021-09-14&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;City A&lt;/TD&gt;&lt;TD&gt;Event X&lt;/TD&gt;&lt;TD&gt;Android&lt;/TD&gt;&lt;TD&gt;3.59.0&lt;/TD&gt;&lt;TD&gt;123456&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;2021-09-14&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;City B&lt;/TD&gt;&lt;TD&gt;Event A&lt;/TD&gt;&lt;TD&gt;IOS&lt;/TD&gt;&lt;TD&gt;3.59.1&lt;/TD&gt;&lt;TD&gt;222444&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original table actually has more fields, but these are the ones that matter and thus the ones I'm gonna use.&lt;/P&gt;&lt;P&gt;By the end of it, I want to know on event_date "A", geo_city "B", using the OS "C" with the app version "D", how many distinct users did the event "E" and some more complexes things, but the point is: the field "user_pseud_id" can be used as count(distinct user_pseudo_id) or just count(user_pseudo_id).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So what I tried to do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'ODBC';&lt;/P&gt;&lt;P&gt;LOAD event_date,&lt;BR /&gt;event_name,&lt;BR /&gt;geo_city,&lt;BR /&gt;device_operating_system,&lt;BR /&gt;app_info_version,&lt;BR /&gt;user_pseudo_id;&lt;/P&gt;&lt;P&gt;[tb_events]:&lt;BR /&gt;SELECT event_date,&lt;BR /&gt;event_name,&lt;BR /&gt;geo_city,&lt;BR /&gt;device_operating_system,&lt;BR /&gt;app_info_version,&lt;BR /&gt;count(distinct user_pseudo_id)&lt;BR /&gt;FROM smart_data.tb_events&lt;BR /&gt;GROUP BY event_date,&lt;BR /&gt;event_name,&lt;BR /&gt;geo_city,&lt;BR /&gt;device_operating_system,&lt;BR /&gt;app_info_version;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It then says the field&amp;nbsp;user_pseudo_id was not found. But other apps (which we use just a small part of this table) can find this field just fine.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Taking out the distinct and using just count() made no difference. Keeping or not '&amp;nbsp; ' around the fields and table name also made no difference. Putting the count in the load statement (I was getting desperate) also made no difference.&lt;/P&gt;&lt;P&gt;It also doesn't work trying to load without using count or group by. It then says the field 'event_date' was not found. Again, on other apps with a snippet of this table this field works.&lt;/P&gt;&lt;P&gt;It also doesn't work If I try to leave all fields in the LOAD statement, but use only event_date, event_name and count(user_pseudo_id) in the SELECT statement.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So, what am I missing? How can I do a Summary App? Would it be better in this case to give up on ODAG and try another method?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 19:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-Help-Summary-App/m-p/1837172#M69173</guid>
      <dc:creator>nbazz</dc:creator>
      <dc:date>2021-09-17T19:12:30Z</dc:date>
    </item>
  </channel>
</rss>

