<?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: Database structure problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Database-structure-problem/m-p/255527#M1192669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok i have found a way to get my data, i just have to add:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;CrossTable (Ora, Valore, 1)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;CONS_DATA,&lt;/P&gt;&lt;P&gt;CONS_H1 as 1,&lt;/P&gt;&lt;P&gt;CONS_H2 as 2,&lt;/P&gt;&lt;P&gt;CONS_H3 as 3,&lt;/P&gt;&lt;P&gt;CONS_H4 as 4,&lt;/P&gt;&lt;P&gt;CONS_H5 as 5,&lt;/P&gt;&lt;P&gt;CONS_H6 as 6,&lt;/P&gt;&lt;P&gt;CONS_H7 as 7,&lt;/P&gt;&lt;P&gt;CONS_H8 as 8,&lt;/P&gt;&lt;P&gt;CONS_H9 as 9,&lt;/P&gt;&lt;P&gt;CONS_H10 as 10,&lt;/P&gt;&lt;P&gt;CONS_H11 as 11,&lt;/P&gt;&lt;P&gt;CONS_H12 as 12,&lt;/P&gt;&lt;P&gt;CONS_H13 as 13,&lt;/P&gt;&lt;P&gt;CONS_H14 as 14,&lt;/P&gt;&lt;P&gt;CONS_H15 as 15,&lt;/P&gt;&lt;P&gt;CONS_H16 as 16,&lt;/P&gt;&lt;P&gt;CONS_H17 as 17,&lt;/P&gt;&lt;P&gt;CONS_H18 as 18,&lt;/P&gt;&lt;P&gt;CONS_H19 as 19,&lt;/P&gt;&lt;P&gt;CONS_H20 as 20,&lt;/P&gt;&lt;P&gt;CONS_H21 as 21,&lt;/P&gt;&lt;P&gt;CONS_H22 as 22,&lt;/P&gt;&lt;P&gt;CONS_H23 as 23,&lt;/P&gt;&lt;P&gt;CONS_H24 as 24,&lt;/P&gt;&lt;P&gt;CONS_H3BIS as 25&lt;/P&gt;&lt;P&gt;Resident CONSUMI;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;As you see i hav renamed the varoius column names to make them look like the hours in a day&lt;/P&gt;&lt;P&gt;But this way the ehngine doesn't consider them properly&lt;BR /&gt;Because if i have another value to be displayed on the hours (and for example i want to show both values on a graph), this kind of renaming doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jul 2011 06:41:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-15T06:41:04Z</dc:date>
    <item>
      <title>Database structure problem</title>
      <link>https://community.qlik.com/t5/QlikView/Database-structure-problem/m-p/255522#M1192661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am evaluating QV, and i was trying to create some document...&lt;/P&gt;&lt;P&gt;But i have a problem regarding my DB structure:&lt;/P&gt;&lt;P&gt;I have a table that contains some data which refers to hour and day of the year, but instead of having a "classical" columns structure (with a column for data, a column for hour, and a row for every value), we have 24 columns representing the 24 hours in a day, thus every row containing the 24 values of that day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how can i create a QV graph (for example a linear graph -&amp;nbsp; i don't know if it is the exact name, i have an italian installation of QV) that shows the values as expression (y axis of the graph) and the hours as dimensione (x axis)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I played around a bit but can't figure out how to make it work&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advace,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maikol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2011 09:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-structure-problem/m-p/255522#M1192661</guid>
      <dc:creator />
      <dc:date>2011-07-05T09:21:21Z</dc:date>
    </item>
    <item>
      <title>Database structure problem</title>
      <link>https://community.qlik.com/t5/QlikView/Database-structure-problem/m-p/255523#M1192662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; C'mon, no one ever faced this kind of problem? =(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There must be a way to make it work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 14:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-structure-problem/m-p/255523#M1192662</guid>
      <dc:creator />
      <dc:date>2011-07-07T14:26:35Z</dc:date>
    </item>
    <item>
      <title>Database structure problem</title>
      <link>https://community.qlik.com/t5/QlikView/Database-structure-problem/m-p/255524#M1192664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can load data as a Cross Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you attached file giving sample data and state what sort of output you want to see, the forum will be able to help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 14:31:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-structure-problem/m-p/255524#M1192664</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-07-07T14:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Database structure problem</title>
      <link>https://community.qlik.com/t5/QlikView/Database-structure-problem/m-p/255525#M1192665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;krishnamoorthy wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can load data as a Cross Table.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I agree.&amp;nbsp; Search for "Crosstable" in the help text index.&amp;nbsp; I've attached a random example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 23:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-structure-problem/m-p/255525#M1192665</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-07T23:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Database structure problem</title>
      <link>https://community.qlik.com/t5/QlikView/Database-structure-problem/m-p/255526#M1192668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;Yes it surely must be this cross table you mentioned&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;I gave a read to the QV tutorial, and the last example in the crosstable section is exactly what i need:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;I have a DB table with some "regular" columns, and then the crossed data (in the cons_h1, cons_2, ... , consh24 columns, whihc are obviously the hours in a day)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;CONS_UTE CONS_CODSERV CONS_DATA CONS_TIPODATO CONS_ID_PRA CONS_TIPOFORN CONS_TENSIONE CONS_TIPOCLIENTE CONS_H1 CONS_H2 CONS_H3 CONS_H4 CONS_H5 CONS_H6 CONS_H7 CONS_H8 CONS_H9 CONS_H10 CONS_H11 CONS_H12 CONS_H13 CONS_H14 CONS_H15 CONS_H16 CONS_H17 CONS_H18 CONS_H19 CONS_H20 CONS_H21 CONS_H22 CONS_H23 CONS_H24 CONS_H3BIS&lt;/P&gt;&lt;P&gt;PD 1000817 01.01.2011 M 0 ND BT M 2,3056 2,1372 1,9531 1,7855 1,6831 1,6636 1,7426 1,8346 1,9622 2,1462 2,3722 2,5794 2,5694 2,4286 2,4067 2,3944 2,5656 2,9964 3,138 3,1712 3,0685 2,8834 2,56 2,2222 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;The problem is that the tutorial example is made with excel-loaded data, using some particular functions (autocomposition or something like that) &lt;BR /&gt;I have some DB data instead, so i don't know how to write the code to correctly extract them&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt;"&gt;My code is actually this:&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;CONSUMI:&lt;BR /&gt;ODBC CONNECT TO [ver;DBQ=ver] (XUserId is ZDDXEXVMULYIDcRU, XPassword is MZWOFXVMULYIDcJG);&lt;BR /&gt;SQL SELECT * FROM NETA4X."EF_CONSUMI24" &lt;BR /&gt;where cons_ute = 'PD' &lt;BR /&gt;and cons_data &amp;gt;= to_date('01012011','ddmmyyyy')&lt;BR /&gt;and cons_data &amp;lt; to_date('11012011','ddmmyyyy')&lt;BR /&gt;and cons_codserv like '11%';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load CONS_DATA,&lt;BR /&gt;month(CONS_DATA) as Mese,&lt;BR /&gt;Year(CONS_DATA) as Anno,&lt;BR /&gt;Day(CONS_DATA) as Giorno,&lt;BR /&gt;WeekDay(CONS_DATA) as Giorno_della_settimana,&lt;BR /&gt;Week(CONS_DATA) as Settimana&lt;BR /&gt;Resident CONSUMI; &lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;And i would like to add a column for the hours and a column for the values (but i guess i have tho change what i already wrote)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any advice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 07:03:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-structure-problem/m-p/255526#M1192668</guid>
      <dc:creator />
      <dc:date>2011-07-08T07:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Database structure problem</title>
      <link>https://community.qlik.com/t5/QlikView/Database-structure-problem/m-p/255527#M1192669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok i have found a way to get my data, i just have to add:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;CrossTable (Ora, Valore, 1)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;CONS_DATA,&lt;/P&gt;&lt;P&gt;CONS_H1 as 1,&lt;/P&gt;&lt;P&gt;CONS_H2 as 2,&lt;/P&gt;&lt;P&gt;CONS_H3 as 3,&lt;/P&gt;&lt;P&gt;CONS_H4 as 4,&lt;/P&gt;&lt;P&gt;CONS_H5 as 5,&lt;/P&gt;&lt;P&gt;CONS_H6 as 6,&lt;/P&gt;&lt;P&gt;CONS_H7 as 7,&lt;/P&gt;&lt;P&gt;CONS_H8 as 8,&lt;/P&gt;&lt;P&gt;CONS_H9 as 9,&lt;/P&gt;&lt;P&gt;CONS_H10 as 10,&lt;/P&gt;&lt;P&gt;CONS_H11 as 11,&lt;/P&gt;&lt;P&gt;CONS_H12 as 12,&lt;/P&gt;&lt;P&gt;CONS_H13 as 13,&lt;/P&gt;&lt;P&gt;CONS_H14 as 14,&lt;/P&gt;&lt;P&gt;CONS_H15 as 15,&lt;/P&gt;&lt;P&gt;CONS_H16 as 16,&lt;/P&gt;&lt;P&gt;CONS_H17 as 17,&lt;/P&gt;&lt;P&gt;CONS_H18 as 18,&lt;/P&gt;&lt;P&gt;CONS_H19 as 19,&lt;/P&gt;&lt;P&gt;CONS_H20 as 20,&lt;/P&gt;&lt;P&gt;CONS_H21 as 21,&lt;/P&gt;&lt;P&gt;CONS_H22 as 22,&lt;/P&gt;&lt;P&gt;CONS_H23 as 23,&lt;/P&gt;&lt;P&gt;CONS_H24 as 24,&lt;/P&gt;&lt;P&gt;CONS_H3BIS as 25&lt;/P&gt;&lt;P&gt;Resident CONSUMI;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;As you see i hav renamed the varoius column names to make them look like the hours in a day&lt;/P&gt;&lt;P&gt;But this way the ehngine doesn't consider them properly&lt;BR /&gt;Because if i have another value to be displayed on the hours (and for example i want to show both values on a graph), this kind of renaming doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 06:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Database-structure-problem/m-p/255527#M1192669</guid>
      <dc:creator />
      <dc:date>2011-07-15T06:41:04Z</dc:date>
    </item>
  </channel>
</rss>

