<?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 Linking Targets to Facts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Linking-Targets-to-Facts/m-p/1175853#M381692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling to create a good data model to use Set Analysis and calculate the right expressions. Hopefully you can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I have the following data model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Facts Table:&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;, Business Unit&lt;/P&gt;&lt;P&gt;, Channel&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;, Many other fields&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Master Calendar:&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;, standard calendar fields&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Targets:&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;, t_Business Unit (identical values to Business Unit in Facts Table)&lt;/P&gt;&lt;P&gt;, t_Channel (identical values to Channel in Facts Table)&lt;/P&gt;&lt;P&gt;, t_Measure_1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I try to create some graphs with expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum({$&amp;lt;t_BusinessUnit= P(BusinessUnit),t_Channel= P(Channel)&amp;gt;}t_Measure_1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works fine, but if I try to use a graph/table with a Channel or Business Unit dimension, the expression is not working as I thought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I change the data model and create an unique Fact Table with the Facts and the Targets?&lt;/P&gt;&lt;P&gt;Now they are linking with the date. Should I create a table in the middle with Business Unit and Channel or link them with the autonumber function instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion would be much appreciated.&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, 09 Sep 2016 13:40:55 GMT</pubDate>
    <dc:creator>fescudero</dc:creator>
    <dc:date>2016-09-09T13:40:55Z</dc:date>
    <item>
      <title>Linking Targets to Facts</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-Targets-to-Facts/m-p/1175853#M381692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling to create a good data model to use Set Analysis and calculate the right expressions. Hopefully you can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I have the following data model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Facts Table:&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;, Business Unit&lt;/P&gt;&lt;P&gt;, Channel&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;, Many other fields&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Master Calendar:&lt;/P&gt;&lt;P&gt;Date,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;, standard calendar fields&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Targets:&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;, t_Business Unit (identical values to Business Unit in Facts Table)&lt;/P&gt;&lt;P&gt;, t_Channel (identical values to Channel in Facts Table)&lt;/P&gt;&lt;P&gt;, t_Measure_1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I try to create some graphs with expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum({$&amp;lt;t_BusinessUnit= P(BusinessUnit),t_Channel= P(Channel)&amp;gt;}t_Measure_1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works fine, but if I try to use a graph/table with a Channel or Business Unit dimension, the expression is not working as I thought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I change the data model and create an unique Fact Table with the Facts and the Targets?&lt;/P&gt;&lt;P&gt;Now they are linking with the date. Should I create a table in the middle with Business Unit and Channel or link them with the autonumber function instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion would be much appreciated.&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, 09 Sep 2016 13:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-Targets-to-Facts/m-p/1175853#M381692</guid>
      <dc:creator>fescudero</dc:creator>
      <dc:date>2016-09-09T13:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Linking Targets to Facts</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-Targets-to-Facts/m-p/1175854#M381693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If instead of having Facts and Targets linked to a Master Calendar as separated tables, I just concatenate them in an unique table (as they share several attributes) then is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know, anyways, if there is other way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully you have some other ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 12:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-Targets-to-Facts/m-p/1175854#M381693</guid>
      <dc:creator>fescudero</dc:creator>
      <dc:date>2016-09-12T12:57:41Z</dc:date>
    </item>
  </channel>
</rss>

