<?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 Table Creation Involving Calaculated Dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Table-Creation-Involving-Calaculated-Dimensions/m-p/216043#M69443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;We have three tables (first is a mapping table and other 2 are the data sources) :&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Response_Mapping:&lt;BR /&gt;Mapping Load Distinct (CatalogueID) as CatalogueId,&lt;BR /&gt; ResponseText;&lt;BR /&gt; select&lt;BR /&gt; CatalogueID,&lt;BR /&gt; ResponseText&lt;BR /&gt; from&lt;BR /&gt; dbo.View;&lt;BR /&gt;REPTEC_QUESTIONNAIREFACT:&lt;BR /&gt;load Distinct (CatalogueID) as CatalogueId,&lt;BR /&gt; ParentCatalogueID,&lt;BR /&gt; ResponseText,&lt;BR /&gt; If(ISNULL(CopiedFromCatalogueID)=-1,ResponseText,ApplyMap('Response_Mapping',CopiedFromCatalogueID,ResponseText)) as InheritedResponseText;&lt;BR /&gt;select&lt;BR /&gt; CatalogueID,&lt;BR /&gt; ParentCatalogueID,&lt;BR /&gt; ResponseText,&lt;BR /&gt;FROM&lt;BR /&gt;dbo.Questionnaire&lt;BR /&gt;where ResponseText in ('Compliant','Not Compliant', 'Not Applicable', '');&lt;BR /&gt;&lt;BR /&gt;LtOTable:&lt;BR /&gt;LOAD CatalogueID as CatalogueId,&lt;BR /&gt; SystemName as LtOApplication,&lt;BR /&gt; Wave,&lt;BR /&gt;FROM&lt;BR /&gt;[$(vServerName).xls] (biff, embedded labels, table is [LtO Data$]);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The score we mentioned previously is a long expression so we chose to map to responsetext instead which we have done. However to create an inheritedwave field is proving more difficult. We want to say, if there is a ParentCatalogueId use this as the CatalogueID and it's corresponding Wave status if it exists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2010 12:58:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-20T12:58:36Z</dc:date>
    <item>
      <title>Table Creation Involving Calaculated Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Creation-Involving-Calaculated-Dimensions/m-p/216039#M69439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;Hi everyone,&lt;/DIV&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;&lt;/DIV&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;We have a problem in which we have some null values for the field 'Wave'. what we would like to do is detailed below. If there is no ParentCatalogueId we would like the 'Wave' status and 'Score' to remain. However, for CatalogueId 3 where a ParentCatalogueId exists (which never has a 'Wave' status i.e. is always Null), we would like to use CatalogueId 1 instead of 3 and also the corresponding Wave Status.&lt;/DIV&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;&lt;/DIV&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;We can see that the table would work in the same way for CatalogueId 4. A parent CatalogueId exists, (which is 2) so it uses CatalogueId 2, the Wavae Status which is 2 and the score which is 100.&lt;/DIV&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 343pt; border-collapse: collapse;" width="456"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;" width="75" /&gt;&lt;COL style="width: 89pt; mso-width-source: userset; mso-width-alt: 4315;" width="118" /&gt;&lt;COL style="width: 33pt; mso-width-source: userset; mso-width-alt: 1609;" width="44" /&gt;&lt;COL style="width: 30pt; mso-width-source: userset; mso-width-alt: 1462;" width="40" /&gt;&lt;COL style="width: 67pt; mso-width-source: userset; mso-width-alt: 3254;" width="89" /&gt;&lt;COL style="width: 68pt; mso-width-source: userset; mso-width-alt: 3291;" width="90" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="background-color: transparent; width: 56pt; height: 12.75pt; border: windowtext 0.5pt solid;" width="75"&gt;CatalogueId&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 89pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="118"&gt;ParentCatalogueId&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 33pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="44"&gt;Wave&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 30pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="40"&gt;Score&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 67pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="89"&gt;InheritedWave&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; width: 68pt; border-top: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid;" width="90"&gt;InheritedScore&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl26" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;100&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;100&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl24" height="17" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; background-color: transparent; height: 12.75pt; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2&lt;/TD&gt;&lt;TD class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;35&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl25" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext; background-color: transparent; border-top: windowtext; border-right: windowtext 0.5pt solid;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;&lt;/DIV&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;&lt;/DIV&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;&lt;/DIV&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;&lt;/DIV&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;&lt;/DIV&gt;This is the table we are trying to produce but I'm not sure what way to create the calculated dimensions which would be InheritedWave and InheritedScore. I know there would be some if statements involved but my attempts so far have been unsuccessful.&lt;/DIV&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;&lt;/DIV&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;If anyone has any ideas it would be much appreciated.&lt;/DIV&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;&lt;/DIV&gt;&lt;DIV dir="ltr" style="text-align: left"&gt;Regards,&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 11:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Creation-Involving-Calaculated-Dimensions/m-p/216039#M69439</guid>
      <dc:creator />
      <dc:date>2010-01-19T11:46:09Z</dc:date>
    </item>
    <item>
      <title>Table Creation Involving Calaculated Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Creation-Involving-Calaculated-Dimensions/m-p/216040#M69440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got the solution for ur query ,i am attaching the qvw file please find the attached and gothrough the script wriiten u will understand the logic.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 12:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Creation-Involving-Calaculated-Dimensions/m-p/216040#M69440</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2010-01-19T12:16:13Z</dc:date>
    </item>
    <item>
      <title>Table Creation Involving Calaculated Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Creation-Involving-Calaculated-Dimensions/m-p/216041#M69441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;Thanks for your reply. This looks as though this could be the solution. However, some of our fields come from different tables. Would you suggest joining the tables beforehand? Wava and CatalogueId (along with a number of other fields) reside in one table and ParentCatalogueId and Score reside in another.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 17:19:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Creation-Involving-Calaculated-Dimensions/m-p/216041#M69441</guid>
      <dc:creator />
      <dc:date>2010-01-19T17:19:26Z</dc:date>
    </item>
    <item>
      <title>Table Creation Involving Calaculated Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Creation-Involving-Calaculated-Dimensions/m-p/216042#M69442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can u please send me the table structure so that i can verify whether joining the tables results in exactly what u required&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 12:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Creation-Involving-Calaculated-Dimensions/m-p/216042#M69442</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2010-01-20T12:33:34Z</dc:date>
    </item>
    <item>
      <title>Table Creation Involving Calaculated Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Creation-Involving-Calaculated-Dimensions/m-p/216043#M69443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;We have three tables (first is a mapping table and other 2 are the data sources) :&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Response_Mapping:&lt;BR /&gt;Mapping Load Distinct (CatalogueID) as CatalogueId,&lt;BR /&gt; ResponseText;&lt;BR /&gt; select&lt;BR /&gt; CatalogueID,&lt;BR /&gt; ResponseText&lt;BR /&gt; from&lt;BR /&gt; dbo.View;&lt;BR /&gt;REPTEC_QUESTIONNAIREFACT:&lt;BR /&gt;load Distinct (CatalogueID) as CatalogueId,&lt;BR /&gt; ParentCatalogueID,&lt;BR /&gt; ResponseText,&lt;BR /&gt; If(ISNULL(CopiedFromCatalogueID)=-1,ResponseText,ApplyMap('Response_Mapping',CopiedFromCatalogueID,ResponseText)) as InheritedResponseText;&lt;BR /&gt;select&lt;BR /&gt; CatalogueID,&lt;BR /&gt; ParentCatalogueID,&lt;BR /&gt; ResponseText,&lt;BR /&gt;FROM&lt;BR /&gt;dbo.Questionnaire&lt;BR /&gt;where ResponseText in ('Compliant','Not Compliant', 'Not Applicable', '');&lt;BR /&gt;&lt;BR /&gt;LtOTable:&lt;BR /&gt;LOAD CatalogueID as CatalogueId,&lt;BR /&gt; SystemName as LtOApplication,&lt;BR /&gt; Wave,&lt;BR /&gt;FROM&lt;BR /&gt;[$(vServerName).xls] (biff, embedded labels, table is [LtO Data$]);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The score we mentioned previously is a long expression so we chose to map to responsetext instead which we have done. However to create an inheritedwave field is proving more difficult. We want to say, if there is a ParentCatalogueId use this as the CatalogueID and it's corresponding Wave status if it exists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 12:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Creation-Involving-Calaculated-Dimensions/m-p/216043#M69443</guid>
      <dc:creator />
      <dc:date>2010-01-20T12:58:36Z</dc:date>
    </item>
  </channel>
</rss>

