<?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 Combining and counting data across different Access tables. in Water Cooler</title>
    <link>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354695#M930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My immediate comment is you have more than one common field between these tables which will result in synthetic keys and unpredictable behaviour.&amp;nbsp; What are the two datasets supposed to represent?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2012 15:14:18 GMT</pubDate>
    <dc:creator>Jason_Michaelides</dc:creator>
    <dc:date>2012-05-16T15:14:18Z</dc:date>
    <item>
      <title>Combining and counting data across different Access tables.</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354692#M927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have several access tables, all share the same field containing numbers formatted as text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I place all these tables into my script. I want to count their frequency by month and display the result in a simple combo chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it throws up an alert message when I attempt this. The alert says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #0000ff;"&gt;"&lt;EM&gt;You have attempted to apply a numerical expression, which is not uniquely defined for the specified variable,In order to use this variable in expressions relying on a number of occurrences, please read it a second time under a new name from its primary table&lt;/EM&gt;".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please tell me what I need to do next, I don't understand what the alert message is trying to say.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 14:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354692#M927</guid>
      <dc:creator />
      <dc:date>2012-05-16T14:52:13Z</dc:date>
    </item>
    <item>
      <title>Combining and counting data across different Access tables.</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354693#M928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 14:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354693#M928</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-16T14:55:46Z</dc:date>
    </item>
    <item>
      <title>Combining and counting data across different Access tables.</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354694#M929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, here's a clip from it. I'm connecting to other tables, but its identical to what's below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ODBC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;CONNECT32&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[MS Access Database;DBQ=X:\Data Warehouse_Feeder Files\Activity\1112 Q4 Ready\File 1\File1.mdb]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Source&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Page1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Op&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Period&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;`Hospital No`&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CRN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;`Procedure`&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Disorder&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt; FROM File 1;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ODBC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;CONNECT32&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[MS Access Database;DBQ=X:\Data Warehouse_Feeder Files\Activity\1112 Q4 Ready\File 2\File2.mdb]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Source&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;`PATIENT_NO`&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CRN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;`PROCEDURE_DATE`&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Period&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;`PROCEDURE_NAME`&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;`PROCEDURE_COMPLETE`&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;`PROCEDURE_TYPE`&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ENDOSCOPIST&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;`GI_CONSULTANT`&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt; FROM File 2; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks for your help. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 15:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354694#M929</guid>
      <dc:creator />
      <dc:date>2012-05-16T15:07:38Z</dc:date>
    </item>
    <item>
      <title>Combining and counting data across different Access tables.</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354695#M930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My immediate comment is you have more than one common field between these tables which will result in synthetic keys and unpredictable behaviour.&amp;nbsp; What are the two datasets supposed to represent?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 15:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354695#M930</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-16T15:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Combining and counting data across different Access tables.</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354696#M931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes there is more than one common field, but that's because I want to combine &amp;amp; count the same fields from different sources, and put them into a single chart. All my sources contain date fields and patient codes and I need to count those and portray the rise and fall in numbers over time. It is possible to do this isn't it? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The datasets represent information from their respective departments. I need to use that information and track it's change over time, spot anomalies, changes in prices etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 08:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354696#M931</guid>
      <dc:creator />
      <dc:date>2012-05-17T08:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Combining and counting data across different Access tables.</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354697#M932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should combine all your fact tables into one wherever possible.&amp;nbsp; That way you only ever have (e.g.) one Date field which makes for a cleaner model, more accurate results and a better user experience (a single date selection applies for all transaction types).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are loads of forum threads about this - just search for "Concatenate fact tables".&amp;nbsp; Some to get you going...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/150722#150722"&gt;http://community.qlik.com/message/150722#150722&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/198075#198075"&gt;http://community.qlik.com/message/198075#198075&lt;/A&gt; - there is a great PDF attached here to tell you more about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 08:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354697#M932</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-17T08:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Combining and counting data across different Access tables.</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354698#M933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jason, that's fixed it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's slightly annoying as I thought I could drop all my raw tables into Qlikview and manipulate them from there. Instead as you say it's better to create/combine the tables prior to importing. I'm still not very good with the syntax of Qlikview so I shall stick to this approach for now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously I'd been creating a Qlikview file for one data source at a time, because I was creating lots of charts and views based on that one source and everything was fine. This kept everything simple and the only issue was playing with the expressions to get the output I wanted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I naively thought I could lump them all my data sources together on a sheet, simply making sure the field names linked up and I'd be good to go. It's all a learning curve eh? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 10:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354698#M933</guid>
      <dc:creator />
      <dc:date>2012-05-21T10:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Combining and counting data across different Access tables.</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354699#M934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script editor is a seriously powerful tool for manipulating data to present to the UI for charts etc.&amp;nbsp; I would strongly recommend you put as much in the script as possible and keep the work done in the UI very simple.&amp;nbsp; You can put full explanations of what you are doing in the script as you go - harder (but not impossible) in the UI.&amp;nbsp; Simpler expressions in the UI and a cleaner data model means a better performing app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My (general) rule is: If it isn't dependent upon user selections, &lt;STRONG&gt;do it in the script&lt;/STRONG&gt;. The only excpetion to this (in my view) is if you have a very tight window to reload your QV apps you may need to cut the script work down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you say - it's a learning curve, but a fun one &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 13:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Combining-and-counting-data-across-different-Access-tables/m-p/354699#M934</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-05-21T13:23:23Z</dc:date>
    </item>
  </channel>
</rss>

