<?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: Show all values in Pivot table when field selected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950614#M326971</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;Why not try this expression&lt;/P&gt;&lt;P&gt;=if(count({1}[Transaction Date])&amp;gt;0,'Yes','No')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Dec 2015 23:05:22 GMT</pubDate>
    <dc:creator>Gabriel</dc:creator>
    <dc:date>2015-12-17T23:05:22Z</dc:date>
    <item>
      <title>Show all values in Pivot table when field selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950607#M326964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping someone can assist with an issue I'm having.&amp;nbsp; In the attached QVW I have a pivot table with an expression that looks as follows:&amp;nbsp; =if(count([Transaction Date])&amp;gt;0,'Yes','No')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When looking at all the stores, this works fine, however, if I select "Store 2" only the Dec 2015 value is shown in the pivot table, as "Jan 2016" isnt a possible month when this store is selected.&amp;nbsp; Is there any way around this?&amp;nbsp; In other words, is there a way for me to show both Jan 2015 and Dec 2015 when store 2 is selected (where the value in Jan 2015 would be "No")?&amp;nbsp; Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Below is the load script from my example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TransactionTable:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Transaction Date, Store&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015/12/17, Store 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015/12/18, Store 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016/01/16, Store 1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DatesTable:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Transaction Date, Year Month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015/12/17, Dec 2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015/12/18, Dec 2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2016/01/16, Jan 2016&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 15:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950607#M326964</guid>
      <dc:creator>nsm1234567</dc:creator>
      <dc:date>2015-12-17T15:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values in Pivot table when field selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950608#M326965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-7941"&gt;Show all values in Pivot/Straight Table (irrespective of current selection)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this link will get you what you need.&amp;nbsp; I used this method to solve a problem a while back&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 15:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950608#M326965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-17T15:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values in Pivot table when field selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950609#M326966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you make your chart a stright table and select show all values for the dimension it looks like the date is not showing for the No&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109312_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 16:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950609#M326966</guid>
      <dc:creator />
      <dc:date>2015-12-17T16:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values in Pivot table when field selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950610#M326967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since QV is building based on what is associated with the dates and there is nothing for store 2 in Jan 2016 -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest building a mini calendar and count that way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data model needs to be updated so it would have 4 rows in a stright table or table box for example showing the count for each store in each year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 16:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950610#M326967</guid>
      <dc:creator />
      <dc:date>2015-12-17T16:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values in Pivot table when field selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950611#M326968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; Would you be able to illustrate how this would work in the attached app?&amp;nbsp; I've tried a few scenarios but they didn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 19:00:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950611#M326968</guid>
      <dc:creator>nsm1234567</dc:creator>
      <dc:date>2015-12-17T19:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values in Pivot table when field selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950612#M326969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned, I realise that the reason Jan 2016 is shown is because it is not a possible "Year Month" when the selection is made.&amp;nbsp; However, Qlikview is evaluating the result when nothing is selected, and I'd like it to be "forced" to evaluate regardless of whether the store is selected or not.&amp;nbsp; Unfortunately, the actual dataset is a lot more complex than what I've presented here, which is why I'm trying to accomplish this on the front-end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 19:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950612#M326969</guid>
      <dc:creator>nsm1234567</dc:creator>
      <dc:date>2015-12-17T19:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values in Pivot table when field selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950613#M326970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&amp;nbsp; I can do that, but I won't be able to review your qvw until tomorrow.&amp;nbsp; However, the crux of what you need to understand is this.&amp;nbsp; The formula needs to compare your selected total to the overall document total ignoring your dimension and then be able to assign a zero (0) as a value rather than a null.&amp;nbsp; Nulls get ignored in a pivot table, but zeros can get displayed, thus showing all of your dimensions rather than only those with data&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Here is an example of a formula that I use to solve a similar problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({1}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Member Counter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;lt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Member Counter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[CDM Lives]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'CDM Lives'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Member Counter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; You can see in my pivot table example that I have two dimensions, enrollment status and age band.&amp;nbsp; There are many age bands with zero count of females.&amp;nbsp; Until I added this formula, it would only display the enrollments and ages that had actual values.&amp;nbsp;&amp;nbsp; Ignore the set analysis for CDM Lives. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;You should be able to use this as a model to solve your problem as it is the same principal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="pivot table all values.PNG" class="jive-image image-1" src="/legacyfs/online/109367_pivot table all values.PNG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hope this helps for now and I will check in tomorrow to see if you did not get it. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 20:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950613#M326970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-17T20:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values in Pivot table when field selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950614#M326971</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;Why not try this expression&lt;/P&gt;&lt;P&gt;=if(count({1}[Transaction Date])&amp;gt;0,'Yes','No')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 23:05:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950614#M326971</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-12-17T23:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Show all values in Pivot table when field selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950615#M326972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This formula seems to solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=if(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({1}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Year Month]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &amp;gt;0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Transaction Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&amp;gt;0,'Yes','No'),'No') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So, if the count of Year Month is greater than zero in all of the data, then it evaluates the next if statement, if not, then it defaults to No which is a value that can be displayed in your table.&amp;nbsp; I have attached an updated version of your example with the changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;A pivot table will display all of the values of a dimension as long as there is valid data for each value.&amp;nbsp; This insures that each dimension value in valid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this gets you what you need&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 12:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-all-values-in-Pivot-table-when-field-selected/m-p/950615#M326972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-18T12:38:53Z</dc:date>
    </item>
  </channel>
</rss>

