<?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: HowTo conditionally replace values in a pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808049#M285235</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;See QVW attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Ernesto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Dec 2014 16:07:41 GMT</pubDate>
    <dc:creator>consenit</dc:creator>
    <dc:date>2014-12-10T16:07:41Z</dc:date>
    <item>
      <title>HowTo conditionally replace values in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808046#M285232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Pivot table with two dimensions (Proj, Name) and one expression (Hours).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case where there is only one name associated with the project, I need to replace the name with the tag "Confidential". Where there are more than one name, all names should be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I replaced the "Name" dimension with =If(count(Name)=1,'Confidential',Name).&amp;nbsp; While the edit expression claimed it was OK, the table said "// Error in calculated dimension".&lt;/P&gt;&lt;P&gt;See below an example of what I trying to accomplish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="example.PNG" class="image-1 jive-image" height="241" src="https://community.qlik.com/legacyfs/online/73155_example.PNG" style="font-size: 10pt; line-height: 1.5em; height: 241px; width: 153.236994219653px;" width="154" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 15:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808046#M285232</guid>
      <dc:creator />
      <dc:date>2014-12-10T15:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo conditionally replace values in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808047#M285233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although I am not a fan of calculated dimensions you can try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&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; font-size: 13.3333339691162px;"&gt;Aggr(If(count(Name)=1,'Confidential',Name),Proj)&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: 13.3333339691162px;"&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; font-size: 13.3333339691162px;"&gt;Remember to supress null values. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would rather do this in the script by changing the key for a project if it only has one name associated with it.&amp;nbsp; Then I would create a single user in the Name Dimension with the value 'Confidential'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can just use Proj and Name as dimensions and people will not be able to extract the information from the model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using a calculated dimension it will be possible to select the project and see the name as the only possible value in a Name listbox.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 15:36:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808047#M285233</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-12-10T15:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo conditionally replace values in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808048#M285234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simen,&lt;/P&gt;&lt;P&gt;That sort of worked.&amp;nbsp; It showed "Confidential" where I wanted it, --but-- it collapsed (aggregated) all of the multiple names / project into one line with a "-".&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with your concerns, but I was hoping to fix this in the table without touching the data structures.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 15:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808048#M285234</guid>
      <dc:creator />
      <dc:date>2014-12-10T15:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo conditionally replace values in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808049#M285235</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;See QVW attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Ernesto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 16:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808049#M285235</guid>
      <dc:creator>consenit</dc:creator>
      <dc:date>2014-12-10T16:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo conditionally replace values in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808050#M285236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ernesto,&lt;/P&gt;&lt;P&gt;That expression works in the app you provided, but not in my app, where it gives the same results as =Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still investigating.&lt;/P&gt;&lt;P&gt;I'm using 11.2 SR4 - what version are you using?&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 16:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808050#M285236</guid>
      <dc:creator />
      <dc:date>2014-12-10T16:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo conditionally replace values in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808051#M285237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt; I'm using a very old version indeed 11.00 SR 1 in my workplace, gotta try this later at home with 11.20 SR 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Ernesto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 16:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808051#M285237</guid>
      <dc:creator>consenit</dc:creator>
      <dc:date>2014-12-10T16:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo conditionally replace values in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808052#M285238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works with 11.20 SR 5!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 17:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808052#M285238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-10T17:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo conditionally replace values in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808053#M285239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works when I add in the "NODISTINCT" to the Aggr function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=AGGR(IF(ONLY(AGGR( NODISTINCT COUNT(DISTINCT Name), Project))=1, 'Confidential', Name), &lt;SPAN style="font-size: 13.63636302948px;"&gt;Project&lt;/SPAN&gt;, Name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JLR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 21:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808053#M285239</guid>
      <dc:creator />
      <dc:date>2014-12-10T21:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo conditionally replace values in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808054#M285240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm interesting...thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 22:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HowTo-conditionally-replace-values-in-a-pivot-table/m-p/808054#M285240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-10T22:02:00Z</dc:date>
    </item>
  </channel>
</rss>

