<?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: Pivot table - Dynamic values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704494#M254070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check your brackets, if I see it correctly you're missing a closing bracket after &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt; if (Value=0,'No', sum(Alt(Value,0))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;so:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(SecondaryDimensionality()=1,if(Value=1,'Yes' , if (Value=0,'No', sum(Alt(Value,0)))),num(sum(Alt(Value,0))/count (MYSTERY_SHOPPER ),'0%') )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2014 14:10:39 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2014-07-07T14:10:39Z</dc:date>
    <item>
      <title>Pivot table - Dynamic values</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704483#M254059</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;How to display the values dynamically in pivot table based on condition. if value is 0 then 'Yes' and if value is 1 then 'No'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="61668" alt="filter.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61668_filter.png" style="width: 620px; height: 319px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 09:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704483#M254059</guid>
      <dc:creator />
      <dc:date>2014-07-03T09:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - Dynamic values</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704484#M254060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use an expression to do that&lt;/P&gt;&lt;P&gt;If(Answer=0,'Yes',if(Answer=1,'No','N/A')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it would be better to do this in load script&lt;/P&gt;&lt;P&gt;MyMap:&lt;/P&gt;&lt;P&gt;Mapping Load * inline [Answer,Label&lt;/P&gt;&lt;P&gt;0,'Yes'&lt;/P&gt;&lt;P&gt;1,'No'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Applymap('MyMap',MS1,MS1) as MS1,&lt;/P&gt;&lt;P&gt;Applymap('MyMap',MS2,MS2) as MS2&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;From Your Data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 10:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704484#M254060</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-07-03T10:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - Dynamic values</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704485#M254061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already have a expression in Dimensions and Expressions tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="filter1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61674_filter1.png" style="width: 620px; height: 352px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="filter.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61675_filter.png" style="width: 620px; height: 409px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 10:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704485#M254061</guid>
      <dc:creator />
      <dc:date>2014-07-03T10:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - Dynamic values</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704486#M254062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here MS1,Ms2,MS3....&lt;/P&gt;&lt;P&gt;these are dimensions or what?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 10:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704486#M254062</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2014-07-03T10:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - Dynamic values</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704487#M254063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; MS1,Ms2,MS3.... are the dimensions (Mystery Shopper)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 10:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704487#M254063</guid>
      <dc:creator />
      <dc:date>2014-07-03T10:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - Dynamic values</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704488#M254064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then try this at script level&lt;/P&gt;&lt;P&gt;if(Ms1='0', 'yes',if(Ms1='1','No','N/A)) as Ms1,&lt;/P&gt;&lt;P&gt;if(Ms2='0', 'yes',if(Ms2='1','No','N/A)) as Ms2,&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt; then use in your table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 11:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704488#M254064</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2014-07-03T11:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - Dynamic values</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704489#M254065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However i am confused that if i do this is script level then how will i get the percentage values in pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing the percentage calculation in expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if(SecondaryDimensionality()=1, sum(Alt(Value,0)), num(sum (Alt(Value,0))/count (MYSTERY_SHOPPER ),'0%') ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Selva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 11:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704489#M254065</guid>
      <dc:creator />
      <dc:date>2014-07-03T11:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - Dynamic values</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704490#M254066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the first part of your if, you don't need a sum&amp;nbsp; (there is but 1 interview, I'm I right ??) and you could do the&lt;/P&gt;&lt;P&gt;if(Value=0,'Yes',if(Value=1,'No'),'N/A')&lt;/P&gt;&lt;P&gt;For the second part you now calculate the % of No answers (if you explained the 0,1 values right) You might want to calculate the Yes answers either in number or text form by doing:&lt;/P&gt;&lt;P&gt;Sum(if(Value=0,1,0)/Count(TOTAL &amp;lt;Question&amp;gt; Value)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Sum(if(Value='Yes',1,0)/Count(TOTAL &amp;lt;Question&amp;gt; Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 11:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704490#M254066</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-07-03T11:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - Dynamic values</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704491#M254067</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 tried this&lt;/P&gt;&lt;P&gt;if(Value=1,'Yes' , if (Value=0,'No', if(SecondaryDimensionality()=1, sum(Alt(Value,0)),&amp;nbsp; num(sum (Alt(Value,0))/count (MYSTERY_SHOPPER ),'0%') ) ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to display the percentage even if all answers are N/A or No&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="filter.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61688_filter.png" style="width: 620px; height: 318px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 12:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704491#M254067</guid>
      <dc:creator />
      <dc:date>2014-07-03T12:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - Dynamic values</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704492#M254068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Dimensionality check still needs to be first:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(SecondaryDimensionality()=1&lt;/SPAN&gt;,if(Value=1,'Yes' , if (Value=0,'No', sum(Alt(Value,0)),&amp;nbsp; num(sum (Alt(Value,0))/count (MYSTERY_SHOPPER ),'0%') ) ))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 15:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704492#M254068</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-07-03T15:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - Dynamic values</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704493#M254069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I have used this expression&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;if(SecondaryDimensionality()=1&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;,if(Value=1,'Yes' , if (Value=0,'No', sum(Alt(Value,0)),&amp;nbsp; num(sum (Alt(Value,0))/count (MYSTERY_SHOPPER ),'0%') ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the below. Pls advice&lt;/P&gt;&lt;P&gt;&lt;IMG alt="filter.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/61712_filter.png" style="width: 620px; height: 308px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 18:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704493#M254069</guid>
      <dc:creator />
      <dc:date>2014-07-03T18:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table - Dynamic values</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704494#M254070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check your brackets, if I see it correctly you're missing a closing bracket after &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt; if (Value=0,'No', sum(Alt(Value,0))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;so:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(SecondaryDimensionality()=1,if(Value=1,'Yes' , if (Value=0,'No', sum(Alt(Value,0)))),num(sum(Alt(Value,0))/count (MYSTERY_SHOPPER ),'0%') )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 14:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Dynamic-values/m-p/704494#M254070</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-07-07T14:10:39Z</dc:date>
    </item>
  </channel>
</rss>

