<?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: Use dimension that is not linked to Facts Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225771#M858996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perhaps use the following expression to link the dimension to the data island.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(AllMonth=Month, Amount) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2017 11:43:00 GMT</pubDate>
    <dc:creator>tracysmart</dc:creator>
    <dc:date>2017-01-24T11:43:00Z</dc:date>
    <item>
      <title>Use dimension that is not linked to Facts Table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225769#M858994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a sample app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use, dimension &lt;STRONG&gt;AllMonth&lt;/STRONG&gt;, from table &lt;STRONG&gt;cal&lt;/STRONG&gt;, which is not linked to &lt;STRONG&gt;fact&lt;/STRONG&gt; table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In chart I want to use the dimension &lt;STRONG&gt;AllMonth&lt;/STRONG&gt; from &lt;STRONG&gt;cal&lt;/STRONG&gt; to sum(&lt;STRONG&gt;Amount&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want that when:&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;AllMonth&lt;/STRONG&gt; = 1, sum(&lt;STRONG&gt;Amount&lt;/STRONG&gt;) from &lt;STRONG&gt;fact&lt;/STRONG&gt; table where &lt;STRONG&gt;Month&lt;/STRONG&gt; = 1 (it should be equal to 700)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- And when &lt;STRONG&gt;AllMonth&lt;/STRONG&gt; = 2, sum(&lt;STRONG&gt;Amount&lt;/STRONG&gt;) from &lt;STRONG&gt;fact&lt;/STRONG&gt; table where &lt;STRONG&gt;Month&lt;/STRONG&gt; = 2 (it should be equal to 300)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sílvia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225769#M858994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension that is not linked to Facts Table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225770#M858995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe use AllMonth as dimension and as expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Pick(AllMonth,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;YourFirstExpressionToEqual700,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;YourSecondExpressionToEqual300&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adapt the two expressions as needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 11:33:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225770#M858995</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-24T11:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension that is not linked to Facts Table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225771#M858996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perhaps use the following expression to link the dimension to the data island.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(AllMonth=Month, Amount) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 11:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225771#M858996</guid>
      <dc:creator>tracysmart</dc:creator>
      <dc:date>2017-01-24T11:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension that is not linked to Facts Table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225772#M858997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tracy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your solution, it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But know I'm trying to do this in my app, using the next expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if(actual_date_from &amp;gt;= Date(Min([DateMasterCal.autoCalendar.YearMonth])) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and actual_date_from &amp;lt;= Date(Max([DateMasterCal.autoCalendar.YearMonth]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and actual_date_to &amp;gt;= Date(Min([DateMasterCal.autoCalendar.YearMonth])) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and actual_date_to &amp;lt;= Date(Max([DateMasterCal.autoCalendar.YearMonth])),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order_code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;), [DateMasterCal.autoCalendar.YearMonth]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that in this expression, &lt;STRONG&gt;actual_date_from&lt;/STRONG&gt; and &lt;STRONG&gt;actual_date_to&lt;/STRONG&gt; represents my field &lt;STRONG&gt;Month&lt;/STRONG&gt;, and &lt;STRONG style="font-size: 13.3333px;"&gt;DateMasterCal.autoCalendar.YearMonth&lt;/STRONG&gt; represents &lt;STRONG&gt;AllMonth&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimension in my chart is &lt;STRONG style="font-size: 13.3333px;"&gt;DateMasterCal.autoCalendar.YearMonth&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want that when bar corresponds to, for example, 2016-Sep, the min and max date of &lt;STRONG style="font-size: 13.3333px;"&gt;DateMasterCal.autoCalendar.YearMonth&lt;/STRONG&gt; are, respectively, 01-09-2016 and 30-09-2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I only want &lt;STRONG&gt;order_code&lt;/STRONG&gt; where &lt;STRONG&gt;actual_date_from&lt;/STRONG&gt; and &lt;STRONG&gt;actual_date_to&lt;/STRONG&gt; are inside this range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this expression is not giving any results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sílvia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 14:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225772#M858997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-24T14:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension that is not linked to Facts Table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225773#M858998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Silvia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure I am following you here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a calendar table associated to your Orders on a field such as order date, and you build a chart with the YearMonth as a dimension, selecting the Month of September 2016 will give all orders for that month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide an example app. I cant follow why you are using the aggr function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tracy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 08:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225773#M858998</guid>
      <dc:creator>tracysmart</dc:creator>
      <dc:date>2017-01-25T08:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension that is not linked to Facts Table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225774#M858999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tracy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the attached sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My cal table and fact table are not linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My user is gonna use cal table to select the period he wants to see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since the two tables are not linked, he's never gonna see values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want to show in bar of&amp;nbsp; MonthYear = sep-2016 for example, the count of order_code, that has actual_date_from &amp;gt;= 01-09-2016 and actual_date_to &amp;lt;= 30-09-2016.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225774#M858999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-25T10:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension that is not linked to Facts Table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225775#M859000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Silvia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does the calendar have to be unlinked? Could you create a field that links them from the dates like the attached?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would the from and to dates ever span across 2 months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression in the attached chart might work for you but ideally, you would want to link the calendar if possible for performance if nothing else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tracy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 11:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225775#M859000</guid>
      <dc:creator>tracysmart</dc:creator>
      <dc:date>2017-01-25T11:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension that is not linked to Facts Table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225776#M859001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tracy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, Calendar table and facts table have to be unlinked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd give you a date example, actual, with from and to values. But in my original app I have 2 more types of date:&lt;/P&gt;&lt;P&gt;- base_line_date_from and base_line_date_to&lt;/P&gt;&lt;P&gt;- forecast_date_from and forecast_date_to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I do not want to link the two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, the from and to dates can span accros multiple months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sílvia.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 11:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225776#M859001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-25T11:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use dimension that is not linked to Facts Table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225777#M859002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Silvia,&lt;/P&gt;&lt;P&gt;If you only need to count the orders for the specific months you don't need to link to your calendar.&lt;/P&gt;&lt;P&gt;You can set-up a calculated dimension&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;actual_date_from&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;actual_date_to&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;actual_date_from&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and add the expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;order_code&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;see the screenshot below&lt;/P&gt;&lt;P&gt;The only problem is that you have from and to dates that are not in the same month. How do you want to count those, i.e. in what month should those be counted?&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150835_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 12:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-dimension-that-is-not-linked-to-Facts-Table/m-p/1225777#M859002</guid>
      <dc:creator>rong</dc:creator>
      <dc:date>2017-01-25T12:36:05Z</dc:date>
    </item>
  </channel>
</rss>

