<?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 Reading value using Getpivotdata in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1658832#M27439</link>
    <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building an Excel report in Nprinting. I have a field that links to a field in my DB. The user is able to amend the value (see Pic) by clicking the dropdown in the spreadsheet. The field that gets populated is &amp;lt;PERIOD_4&amp;gt;&lt;/P&gt;&lt;P&gt;My problem is - how do I "get" that value that the user selected, using GetpivotData. Its much more difficult since we're not working with absolute values, but in essence, Variables (&amp;lt;field&amp;gt;)&lt;/P&gt;&lt;P&gt;1. Pic 1 is the actual template and Pic 2 is what it looks like once it's run&lt;/P&gt;&lt;P&gt;2. In my Excel Pivot - where I'd usually say "=GETPIVOTDATA(" Cases Reported (all)",$A$10,"PERIOD",&lt;STRONG&gt;$A$2&lt;/STRONG&gt;)", I assume I'd use "=GETPIVOTDATA(" Cases Reported (all)",$A$10,"PERIOD",&lt;STRONG&gt;"&amp;lt;PERIOD_4&amp;gt;"&lt;/STRONG&gt;)"..but it doesnt work. I get a "#Reference" issue.&lt;/P&gt;&lt;P&gt;has anyone ever used this in Nprinting with success?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2020 20:40:38 GMT</pubDate>
    <dc:creator>QFanatic</dc:creator>
    <dc:date>2020-03-17T20:40:38Z</dc:date>
    <item>
      <title>Reading value using Getpivotdata</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1658832#M27439</link>
      <description>&lt;P&gt;hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building an Excel report in Nprinting. I have a field that links to a field in my DB. The user is able to amend the value (see Pic) by clicking the dropdown in the spreadsheet. The field that gets populated is &amp;lt;PERIOD_4&amp;gt;&lt;/P&gt;&lt;P&gt;My problem is - how do I "get" that value that the user selected, using GetpivotData. Its much more difficult since we're not working with absolute values, but in essence, Variables (&amp;lt;field&amp;gt;)&lt;/P&gt;&lt;P&gt;1. Pic 1 is the actual template and Pic 2 is what it looks like once it's run&lt;/P&gt;&lt;P&gt;2. In my Excel Pivot - where I'd usually say "=GETPIVOTDATA(" Cases Reported (all)",$A$10,"PERIOD",&lt;STRONG&gt;$A$2&lt;/STRONG&gt;)", I assume I'd use "=GETPIVOTDATA(" Cases Reported (all)",$A$10,"PERIOD",&lt;STRONG&gt;"&amp;lt;PERIOD_4&amp;gt;"&lt;/STRONG&gt;)"..but it doesnt work. I get a "#Reference" issue.&lt;/P&gt;&lt;P&gt;has anyone ever used this in Nprinting with success?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 20:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1658832#M27439</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2020-03-17T20:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Reading value using Getpivotdata</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1658864#M27444</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Excel GetPivotData() function works in Qlik NPrinting Excel templates. You can see an example here&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-NPrinting-Discussions/Calculted-value-from-a-pivot-table-Nprinting/m-p/1607511#M25279" target="_blank"&gt;https://community.qlik.com/t5/Qlik-NPrinting-Discussions/Calculted-value-from-a-pivot-table-Nprinting/m-p/1607511#M25279&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I don't understand your sentence "&lt;SPAN&gt;I have a field that links to a field in my DB.". Qlik NPrinting uses data from QlikView or Qlik Sense, not from generic DB. So first you have to create apps or documents then connect them with Qlik NPrinting.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you share the screenshots of the shole template and the result? It is very hard to understand you scenario with partial images. Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 09:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1658864#M27444</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2019-12-18T09:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reading value using Getpivotdata</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1658950#M27448</link>
      <description>&lt;P&gt;Ruggero,&lt;/P&gt;&lt;P&gt;I'm attaching some samples of what&amp;nbsp; I want - silly data - but you will understand what I want.&lt;/P&gt;&lt;P&gt;The Capture.jpg...this is the view that the user wants to see. He wants to select the Period from the dropdown, and then the chart refreshes....Have a closer look at the Expressions - specifically where Period &amp;lt;&amp;gt; Flagmonth. I would need to&lt;/P&gt;&lt;P&gt;1) Create a pivot based on this straight table&lt;/P&gt;&lt;P&gt;2) In the pivot, use Period as Filterfield&lt;/P&gt;&lt;P&gt;3) create 2 new fields - both of them use the pivot as the source. The field Flagmonth in the GetPivotTable would need, for the &amp;lt;&amp;gt;, point at whatever Period was chosen in the dropdown, and here is where my problem comes in. Period is no longer a dimension in the table, and because both expressions now depend on the value in the dropdown, they dont work - as currently is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this makes my problem a bit clearer? In essence because the filter field is used in the way it is, and is NOT a dimension in the table, the field FlagMonth needs to 'look up' the value the user advised.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 11:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1658950#M27448</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2019-12-18T11:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reading value using Getpivotdata</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1659241#M27459</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;how big is your data set and how many periods users will be able to choose from in your NPrinting report?&lt;/P&gt;&lt;P&gt;The idea I have is very simple by creating a linking table with many-to-many periods and flags include exclude in the table which would be used as a source for NPrinitng export. This obviously would explode the number of rows in your final export, as it would create releationships for each combinations of possible to filter from periods....&amp;nbsp; but on the other hand would make your NPrinting report easy to build. This is just high level idea&lt;/P&gt;&lt;P&gt;solution would look like this, but first you would have to create a cross-join and create flags in qlik.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25770i352970C6CA0EF2D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 05:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1659241#M27459</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-12-19T05:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reading value using Getpivotdata</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1659285#M27461</link>
      <description>&lt;P&gt;Hello Lech&lt;/P&gt;&lt;P&gt;I have 24 000 records in my fact table, and a max of 12 periods that they can/should extract. Problem is, at this stage I have Period and Flagmonth field. Another one gets added after this - processfield. Not sure what you think about adding a third date field?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 09:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1659285#M27461</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2019-12-19T09:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reading value using Getpivotdata</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1659296#M27462</link>
      <description>&lt;P&gt;Well. This is now down to your datamodel in QlikView. If your fact table has around 24000 records, creating a bridging/linking reference table for the purpose of nprinting does not change anything in your model (other than adds one extra table which has no impact on the rest)&lt;/P&gt;&lt;P&gt;The only thing it changes is the final Straight table chart on QlikView ui which will create roughly 288000 records in excel to produce required for Nprinting output.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;having a sample of your app would help me more - maybe you can shared scrambled version?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 09:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1659296#M27462</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2019-12-19T09:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reading value using Getpivotdata</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1659408#M27465</link>
      <description>Hi Lech&lt;BR /&gt;Sent you a private message&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Dec 2019 13:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1659408#M27465</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2019-12-19T13:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reading value using Getpivotdata</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1659444#M27466</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you find a sharable solution, please share.&lt;/P&gt;
&lt;P&gt;Best REgards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 15:43:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Reading-value-using-Getpivotdata/m-p/1659444#M27466</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2019-12-19T15:43:34Z</dc:date>
    </item>
  </channel>
</rss>

