<?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 Get value from Pivot table (Pls help) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-value-from-Pivot-table-Pls-help/m-p/221553#M74363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I had another night of no sleep but thinking of how to do this ... and end up with no result.&lt;/P&gt;&lt;P&gt;Maybe some more details are helpful:&lt;/P&gt;&lt;P&gt;The main dataset (one year) consists of fields with: Weekday (Monday, so there are 52 days in this example), Date (DD.MM.YYYY), Date with hour (one row for each hour in the year, DD.MM.YYYY hh), Hour (00:00 - 23:00), Value (0 - 17).&lt;/P&gt;&lt;P&gt;In a pivot table I use Hour and Value as dimensions and count the number of days per Hour and Value.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;count (distinct Date)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;In the next step I calculate the percentage of the days (from 52).&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;count (distinct Date)/52&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;followed by the cumulative description of the percentage("all").&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(Above("all")&amp;gt;0, Above("all") + (count (distinct Date)/52), (count(distinct Date)/52))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That works fine so far, but the question is: Is it possible to do that calculation in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jan 2010 09:38:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-26T09:38:45Z</dc:date>
    <item>
      <title>Get value from Pivot table (Pls help)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-value-from-Pivot-table-Pls-help/m-p/221552#M74362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;still no idea how do to it, so I would like to ask the community.&lt;/P&gt;&lt;P&gt;I'd like to get the a value which is associated to a certain percentage. With a pivot table I am able to get the value, but it is just half way. Please see attached QV-file, because it shows the problem/question in a more demonstrative way then explaining the issue.&lt;/P&gt;&lt;P&gt;Hope someone will be able to assist me. Thanks. [:D]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nico&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 17:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-value-from-Pivot-table-Pls-help/m-p/221552#M74362</guid>
      <dc:creator />
      <dc:date>2010-01-25T17:13:14Z</dc:date>
    </item>
    <item>
      <title>Get value from Pivot table (Pls help)</title>
      <link>https://community.qlik.com/t5/QlikView/Get-value-from-Pivot-table-Pls-help/m-p/221553#M74363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I had another night of no sleep but thinking of how to do this ... and end up with no result.&lt;/P&gt;&lt;P&gt;Maybe some more details are helpful:&lt;/P&gt;&lt;P&gt;The main dataset (one year) consists of fields with: Weekday (Monday, so there are 52 days in this example), Date (DD.MM.YYYY), Date with hour (one row for each hour in the year, DD.MM.YYYY hh), Hour (00:00 - 23:00), Value (0 - 17).&lt;/P&gt;&lt;P&gt;In a pivot table I use Hour and Value as dimensions and count the number of days per Hour and Value.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;count (distinct Date)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;In the next step I calculate the percentage of the days (from 52).&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;count (distinct Date)/52&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;followed by the cumulative description of the percentage("all").&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(Above("all")&amp;gt;0, Above("all") + (count (distinct Date)/52), (count(distinct Date)/52))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;That works fine so far, but the question is: Is it possible to do that calculation in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 09:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-value-from-Pivot-table-Pls-help/m-p/221553#M74363</guid>
      <dc:creator />
      <dc:date>2010-01-26T09:38:45Z</dc:date>
    </item>
  </channel>
</rss>

