<?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: &amp;quot;Calculated dimension&amp;quot; becomes unselectable/a measure? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2497085#M102719</link>
    <description>&lt;P&gt;The issue here is that in the real world example we have much more complex expressions that depend on an array of parameters, so implementing the solution only in back-end does not work.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Dec 2024 12:53:49 GMT</pubDate>
    <dc:creator>L_VN</dc:creator>
    <dc:date>2024-12-10T12:53:49Z</dc:date>
    <item>
      <title>"Calculated dimension" becomes unselectable/a measure?</title>
      <link>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495937#M102606</link>
      <description>&lt;P&gt;I have a case where we want to display certain dimensions based on measure criteria.&lt;/P&gt;
&lt;P&gt;We have this backend:&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;
&lt;LI-CODE lang="markup"&gt;Names:
load * inline [
	Name
    Alex
    Bo
    Casey
];

Facts:
load * inline [
	Measure, Factstype, Name
    1,	New York, Alex
    1, Los Angeles, Bo
    1, Los Angeles, Casey
];

Island:
load * inline [
	Show Dimension
    All
    Works in NY
    Works in LA
];&lt;/LI-CODE&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;
&lt;P&gt;I have the values of Show Dimension in a filter pane, and only the Names that meet the criteria are shown according to this pick/match function:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=Pick(Match("Show Dimension", 'All', 'Works in NY', 'Works in LA'),
	Name
	,if(Aggr(Sum({&amp;lt;Factstype= {'New York'}&amp;gt;}Measure), Name)&amp;gt;0, Name)
	,if(Aggr(Sum({&amp;lt;Factstype= {'Los Angeles'}&amp;gt;}Measure), Name)&amp;gt;0, Name)
)&lt;/LI-CODE&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;
&lt;P&gt;And this works, only the Names meet the criteria are shown. HOWEVER, they are not selectable (it is as if they are a measure and not a dimension.&lt;/P&gt;
&lt;P&gt;If I reduce the pick/match to only take New York into account like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=Pick(Match("Show Dimension", 'All', 'Works in NY', 'Works in LA'),
	Name
	,if(Aggr(Sum({&amp;lt;Factstype= {'New York'}&amp;gt;}Measure), Name)&amp;gt;0, Name)
)&lt;/LI-CODE&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;
&lt;P&gt;Then Bo and Casey are selectable, but Alex is not since he meets a criteria in the measure, even when 'All' is selected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The way I interpret it is that Qlik handles the Names whose expressions return a value as a measure and not a dimension.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way around this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 10:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495937#M102606</guid>
      <dc:creator>L_VN</dc:creator>
      <dc:date>2024-12-04T10:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculated dimension" becomes unselectable/a measure?</title>
      <link>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495947#M102607</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/242199"&gt;@L_VN&lt;/a&gt;&amp;nbsp; Could you share a screenshot of your issue? It is not clear that what is not selectable and what is required&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 11:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495947#M102607</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-12-04T11:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculated dimension" becomes unselectable/a measure?</title>
      <link>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495951#M102608</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="L_VN_0-1733310725862.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175184i6DA7C324EB2DA469/image-size/medium?v=v2&amp;amp;px=400" role="button" title="L_VN_0-1733310725862.png" alt="L_VN_0-1733310725862.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Cannot select Casey in case where we handle both NY and LA.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="L_VN_1-1733310762469.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175185i07D70E2E713F886A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="L_VN_1-1733310762469.png" alt="L_VN_1-1733310762469.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can select Casey when we only handle NY.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 11:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495951#M102608</guid>
      <dc:creator>L_VN</dc:creator>
      <dc:date>2024-12-04T11:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculated dimension" becomes unselectable/a measure?</title>
      <link>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495953#M102609</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/242199"&gt;@L_VN&lt;/a&gt;&amp;nbsp; what is expression used for both cities?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 11:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495953#M102609</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-12-04T11:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculated dimension" becomes unselectable/a measure?</title>
      <link>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495954#M102610</link>
      <description>&lt;P&gt;Both cities:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=Pick(Match("Show Dimension", 'All', 'Works in NY', 'Works in LA'),
	Name
	,if(Aggr(Sum({&amp;lt;Factstype= {'New York'}&amp;gt;}Measure), Name)&amp;gt;0, Name)
	,if(Aggr(Sum({&amp;lt;Factstype= {'Los Angeles'}&amp;gt;}Measure), Name)&amp;gt;0, Name)
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only NY:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=Pick(Match("Show Dimension", 'All', 'Works in NY', 'Works in LA'),
	Name
	,if(Aggr(Sum({&amp;lt;Factstype= {'New York'}&amp;gt;}Measure), Name)&amp;gt;0, Name)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Dec 2024 11:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495954#M102610</guid>
      <dc:creator>L_VN</dc:creator>
      <dc:date>2024-12-04T11:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculated dimension" becomes unselectable/a measure?</title>
      <link>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495959#M102611</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/242199"&gt;@L_VN&lt;/a&gt;&amp;nbsp; I am able to select (make sure both are calculated dimension and not measure). Please share sample app to look at issue&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-12-04 at 11.42.10.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175187iADB90BDD6FA83D25/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-12-04 at 11.42.10.png" alt="Screenshot 2024-12-04 at 11.42.10.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 11:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495959#M102611</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-12-04T11:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculated dimension" becomes unselectable/a measure?</title>
      <link>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495960#M102612</link>
      <description>&lt;P&gt;A calculated dimension would never behave like a native one else causing more or less side-effects. Therefore such approaches should be an exception if no other way is possible. But in your described scenario the relevant matching respectively categorizing could be also done within the data-model by assigning the cities to the appropriate areas.&lt;/P&gt;
&lt;P&gt;If any overlapping logic are intended the normal dimension-table logic might be extended with &lt;A href="https://community.qlik.com/t5/Design/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;The As-Of Table - Qlik Community - 1466130&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 11:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495960#M102612</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-12-04T11:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculated dimension" becomes unselectable/a measure?</title>
      <link>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495961#M102613</link>
      <description />
      <pubDate>Wed, 04 Dec 2024 11:49:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495961#M102613</guid>
      <dc:creator>L_VN</dc:creator>
      <dc:date>2024-12-04T11:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculated dimension" becomes unselectable/a measure?</title>
      <link>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495964#M102614</link>
      <description>&lt;P&gt;The example I've given here is a very simplified example. In the real example we have much more complex data model and measures that depend on a myriad of factors making the it unfeasible to calculate everything in the backend.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 11:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495964#M102614</guid>
      <dc:creator>L_VN</dc:creator>
      <dc:date>2024-12-04T11:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculated dimension" becomes unselectable/a measure?</title>
      <link>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495967#M102615</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/242199"&gt;@L_VN&lt;/a&gt;&amp;nbsp; I ran your app, I can see the selection&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-12-04 at 11.56.34.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175188i04389C71E964276B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-12-04 at 11.56.34.png" alt="Screenshot 2024-12-04 at 11.56.34.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 11:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495967#M102615</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-12-04T11:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculated dimension" becomes unselectable/a measure?</title>
      <link>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495969#M102616</link>
      <description>&lt;P&gt;Show Dimension should have always one value selected&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 12:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495969#M102616</guid>
      <dc:creator>L_VN</dc:creator>
      <dc:date>2024-12-04T12:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculated dimension" becomes unselectable/a measure?</title>
      <link>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495977#M102617</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/242199"&gt;@L_VN&lt;/a&gt;&amp;nbsp; Just a little change in Island table&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Island:
load * inline [
	Show Dimension, Dim
    All,1
    Works in NY,2
    Works in LA,3
];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use below calculated dimension&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=pick(Dim,
Name,
aggr(Only({&amp;lt;Factstype= {'New York'}&amp;gt;}Name),Name),
aggr(Only({&amp;lt;Factstype= {'Los Angeles'}&amp;gt;}Name),Name)
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-12-04 at 12.25.06.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175191i0376AF5EBF1124F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-12-04 at 12.25.06.png" alt="Screenshot 2024-12-04 at 12.25.06.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-12-04 at 12.25.31.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175190iE2C261E32F793E6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-12-04 at 12.25.31.png" alt="Screenshot 2024-12-04 at 12.25.31.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 12:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2495977#M102617</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-12-04T12:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculated dimension" becomes unselectable/a measure?</title>
      <link>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2497083#M102718</link>
      <description>&lt;P&gt;The solution I found was to&amp;nbsp;incapsulate the expression in another Aggr. This made it selectable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 12:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2497083#M102718</guid>
      <dc:creator>L_VN</dc:creator>
      <dc:date>2024-12-10T12:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculated dimension" becomes unselectable/a measure?</title>
      <link>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2497085#M102719</link>
      <description>&lt;P&gt;The issue here is that in the real world example we have much more complex expressions that depend on an array of parameters, so implementing the solution only in back-end does not work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 12:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/quot-Calculated-dimension-quot-becomes-unselectable-a-measure/m-p/2497085#M102719</guid>
      <dc:creator>L_VN</dc:creator>
      <dc:date>2024-12-10T12:53:49Z</dc:date>
    </item>
  </channel>
</rss>

