<?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: Using a dimension in an expression that is not in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-dimension-in-an-expression-that-is-not-in-chart/m-p/938378#M323779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably don't need aggr() for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your dimension is Hour, then count the loads maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(Loads)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you count the distinct dates of the selected month,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Count(Distinct Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this would only return distinct dates for the current dimension line (e.g. 06:00), while you - as I understood - want the number of dates where you received trucks regardless of the hour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(TOTAL Distinct Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should return the distinct dates of the selected month ignoring the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want more help, you would need to post some more details about your application and data model, best by posting a small sample QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2015 21:37:37 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-11-04T21:37:37Z</dc:date>
    <item>
      <title>Using a dimension in an expression that is not in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-dimension-in-an-expression-that-is-not-in-chart/m-p/938376#M323777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a business requirement that says that I need to find an average of loads by hour of day.&amp;nbsp; The user wants to look at this for each month using the Hour of Day as the Dimension and the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# of Loads received in Hour of Day / # of Days in month with receipts&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp; in total in September at 6:00 am, we received 355 loads / 26 days out of September that we received trucks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As there are possible selections that can be made such as category, or product, I don't believe that I can do this in the script, but how can I calculate the # of Days in month with receipts when that particular dimension is not in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I could use AGGR, but I have read that it is unsafe to use AGGR in charts when the AGGR dimensions are not more granular than the chart dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 20:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-dimension-in-an-expression-that-is-not-in-chart/m-p/938376#M323777</guid>
      <dc:creator />
      <dc:date>2015-11-04T20:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using a dimension in an expression that is not in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-dimension-in-an-expression-that-is-not-in-chart/m-p/938377#M323778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should work fine using Aggr() in the front end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 21:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-dimension-in-an-expression-that-is-not-in-chart/m-p/938377#M323778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-04T21:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using a dimension in an expression that is not in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-dimension-in-an-expression-that-is-not-in-chart/m-p/938378#M323779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably don't need aggr() for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your dimension is Hour, then count the loads maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(Loads)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you count the distinct dates of the selected month,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Count(Distinct Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this would only return distinct dates for the current dimension line (e.g. 06:00), while you - as I understood - want the number of dates where you received trucks regardless of the hour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(TOTAL Distinct Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should return the distinct dates of the selected month ignoring the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want more help, you would need to post some more details about your application and data model, best by posting a small sample QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 21:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-dimension-in-an-expression-that-is-not-in-chart/m-p/938378#M323779</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-04T21:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using a dimension in an expression that is not in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-dimension-in-an-expression-that-is-not-in-chart/m-p/938379#M323780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked perfectly...thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 15:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-dimension-in-an-expression-that-is-not-in-chart/m-p/938379#M323780</guid>
      <dc:creator />
      <dc:date>2015-11-05T15:51:15Z</dc:date>
    </item>
  </channel>
</rss>

