<?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 Filter rows in a Pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filter-rows-in-a-Pivot-table/m-p/1766374#M59281</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I am stuck with a task. Please, help!&lt;/P&gt;&lt;P&gt;I have the next data:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;SourceData:
Load * inline [SetName, Date, Type, Value, color
'A',	30/10/2020,	Type_1,	1,  red
'A',	26/10/2020,	Type_1,	2,  red
'B',	30/10/2020,	Type_1,	3,  green
'B',	26/10/2020,	Type_1,	,   green
'C',	30/10/2020,	Type_1,	2,  red
'C',	25/10/2020,	Type_1,	3,  red
'D',	25/10/2020,	Type_1,	4,  green
'A',	30/10/2020,	Type_2,	4,  red
'A',	26/10/2020,	Type_2,	3,  red
'B',	30/10/2020,	Type_2,	,   green
'B',	26/10/2020,	Type_2,	,   green
'C',	30/10/2020,	Type_2,	1,  red
'C',	25/10/2020,	Type_2,	5,  red
'D',	25/10/2020,	Type_2,	2,  green
'E',	25/10/2020,	Type_2,	,   green
'E',	26/10/2020,	Type_2,	,   green
'E',	25/10/2020,	Type_1,	,   green
'A'	,	  ,     Type_3,	,   black
'B'	,	  ,     Type_3,	,   black
'C'	,	  ,     Type_3,	,   black
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Pivot Table where I calculate Count of Values.&amp;nbsp;And filter by Color.&lt;/P&gt;&lt;P&gt;I want to display all possible types always, but SetName should be filtered by Color.&lt;/P&gt;&lt;P&gt;For example, when I set Color = "Black" I want to see the next result: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen1.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45258i7D221643C368A3F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen1.PNG" alt="Screen1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I use two expressions:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;Count( Value ) + 0 * Count( {1-1&amp;lt;color={"$(=(color))"}&amp;gt;} 0). Types display correctly, but&amp;nbsp; I see ALL values of SetName&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;Count(Value). SetNames dysplay correctly, but Types are missing (See screenshot below)&lt;/P&gt;&lt;P&gt;I marked the result what I expect in Yellow.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45259i29C1EC058DC6347E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen.PNG" alt="Screen.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you have any ideas on How to solve this?&amp;nbsp; Any help is appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Dec 2020 16:50:09 GMT</pubDate>
    <dc:creator>daria</dc:creator>
    <dc:date>2020-12-04T16:50:09Z</dc:date>
    <item>
      <title>Filter rows in a Pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-rows-in-a-Pivot-table/m-p/1766374#M59281</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I am stuck with a task. Please, help!&lt;/P&gt;&lt;P&gt;I have the next data:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;SourceData:
Load * inline [SetName, Date, Type, Value, color
'A',	30/10/2020,	Type_1,	1,  red
'A',	26/10/2020,	Type_1,	2,  red
'B',	30/10/2020,	Type_1,	3,  green
'B',	26/10/2020,	Type_1,	,   green
'C',	30/10/2020,	Type_1,	2,  red
'C',	25/10/2020,	Type_1,	3,  red
'D',	25/10/2020,	Type_1,	4,  green
'A',	30/10/2020,	Type_2,	4,  red
'A',	26/10/2020,	Type_2,	3,  red
'B',	30/10/2020,	Type_2,	,   green
'B',	26/10/2020,	Type_2,	,   green
'C',	30/10/2020,	Type_2,	1,  red
'C',	25/10/2020,	Type_2,	5,  red
'D',	25/10/2020,	Type_2,	2,  green
'E',	25/10/2020,	Type_2,	,   green
'E',	26/10/2020,	Type_2,	,   green
'E',	25/10/2020,	Type_1,	,   green
'A'	,	  ,     Type_3,	,   black
'B'	,	  ,     Type_3,	,   black
'C'	,	  ,     Type_3,	,   black
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Pivot Table where I calculate Count of Values.&amp;nbsp;And filter by Color.&lt;/P&gt;&lt;P&gt;I want to display all possible types always, but SetName should be filtered by Color.&lt;/P&gt;&lt;P&gt;For example, when I set Color = "Black" I want to see the next result: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen1.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45258i7D221643C368A3F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen1.PNG" alt="Screen1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I use two expressions:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;Count( Value ) + 0 * Count( {1-1&amp;lt;color={"$(=(color))"}&amp;gt;} 0). Types display correctly, but&amp;nbsp; I see ALL values of SetName&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;Count(Value). SetNames dysplay correctly, but Types are missing (See screenshot below)&lt;/P&gt;&lt;P&gt;I marked the result what I expect in Yellow.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45259i29C1EC058DC6347E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen.PNG" alt="Screen.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you have any ideas on How to solve this?&amp;nbsp; Any help is appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 16:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-rows-in-a-Pivot-table/m-p/1766374#M59281</guid>
      <dc:creator>daria</dc:creator>
      <dc:date>2020-12-04T16:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filter rows in a Pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-rows-in-a-Pivot-table/m-p/1766474#M59294</link>
      <description>&lt;P&gt;For your measure expression, use:&amp;nbsp; &amp;nbsp; Count(Value)+Sum({1} 0)&lt;/P&gt;&lt;P&gt;For your SetName dimension expression, use:&amp;nbsp; =Aggr(maxstring(SetName), SetName)&lt;/P&gt;&lt;P&gt;Then, when you filter on color, it should give you the desired results.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 13:11:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-rows-in-a-Pivot-table/m-p/1766474#M59294</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2020-12-05T13:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filter rows in a Pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-rows-in-a-Pivot-table/m-p/1766610#M59306</link>
      <description>&lt;P&gt;It works! Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 07:46:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-rows-in-a-Pivot-table/m-p/1766610#M59306</guid>
      <dc:creator>daria</dc:creator>
      <dc:date>2020-12-07T07:46:45Z</dc:date>
    </item>
  </channel>
</rss>

