<?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: Set expression works as a measure but not dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1809475#M65956</link>
    <description>&lt;P&gt;Thank you for your response MadiF.&amp;nbsp; Unfortunately I failed to mention one important piece to this.&amp;nbsp; In my use case the user needs the ability to select multiple consecutive values for months active.&amp;nbsp; For instance, in the table below, if the user selects 4 and 5 for months active in a filter pane, only Terr1 and Terr4 should be displayed.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ex.PNG" style="width: 380px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55410i5D859C64B2A99042/image-size/large?v=v2&amp;amp;px=999" role="button" title="ex.PNG" alt="ex.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 14:45:16 GMT</pubDate>
    <dc:creator>alandilworth</dc:creator>
    <dc:date>2021-05-20T14:45:16Z</dc:date>
    <item>
      <title>Set expression works as a measure but not dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1807423#M65722</link>
      <description>&lt;P&gt;Hello, I am having an issue with a expression I am using for a dimension.&amp;nbsp; The expression returns the error invalid dimension when used as a dimension, but works fine as a measure.&amp;nbsp; The expression is below.&amp;nbsp; The part highlighted in red is giving me the error.&amp;nbsp; I noticed if I use Total here the error goes away, however, I get incorrect results.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;=IF(GetSelectedCount(MonthsActive) = 0, [EntityTerritory], IF(&lt;FONT color="#FF0000"&gt;MAX({1&amp;lt;EntityTerritory=&amp;gt;}MonthsActive)&lt;/FONT&gt; &amp;lt; MAX(Total{$&amp;lt;EntityTerritory=&amp;gt;}MonthsActive), null(), EntityTerritory))&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;Any help will be greatly appreciated.&amp;nbsp; Thanks!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 15:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1807423#M65722</guid>
      <dc:creator>alandilworth</dc:creator>
      <dc:date>2021-05-12T15:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression works as a measure but not dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1807434#M65723</link>
      <description>&lt;P&gt;Hello Alan,&lt;/P&gt;&lt;P&gt;With some data set it would be more easiest for us to help you! Random walues would be sufficient to test expression.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 16:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1807434#M65723</guid>
      <dc:creator>Seyko</dc:creator>
      <dc:date>2021-05-12T16:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression works as a measure but not dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1807447#M65724</link>
      <description>&lt;P&gt;I have a MonthsActive column in my data table and a filter pane based on the MonthsActive column.&amp;nbsp; I am trying to prevent a row from displaying if the maximum value of MonthsActive for the EntityTerritory in the data table is less than the MonthsActive selection in the filer pane.&amp;nbsp; For example, if the user selects 5 in the Months Active filter pane, only Terr1 should show up since all of the other EntityTerritorys have MonthsActive values less than 5.&amp;nbsp; I hope this makes sense if not I am happy to elaborate.&lt;/P&gt;&lt;P&gt;A sample of my data table is here:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tab.PNG" style="width: 380px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/54835i8000AC5DD360B263/image-size/large?v=v2&amp;amp;px=999" role="button" title="tab.PNG" alt="tab.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 17:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1807447#M65724</guid>
      <dc:creator>alandilworth</dc:creator>
      <dc:date>2021-05-12T17:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression works as a measure but not dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1807458#M65725</link>
      <description>&lt;P&gt;I just remembered now. According to my knwoledge of Qlik , when you use an &lt;STRONG&gt;aggregation function&lt;/STRONG&gt; in your expression, Qlik considers automatically the result like a &lt;STRONG&gt;measure &lt;/STRONG&gt;(hence the error message).&lt;/P&gt;&lt;P&gt;If you need to perform this kind of transformation, do it within the script editor.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 18:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1807458#M65725</guid>
      <dc:creator>Seyko</dc:creator>
      <dc:date>2021-05-12T18:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression works as a measure but not dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1807487#M65728</link>
      <description>&lt;P&gt;Is there any workaround.&amp;nbsp; Doing this in the script editor will not work for my use case because my function needs to take in values from the filter pane.&amp;nbsp; I am trying to make the chart dynamic with filter selections.&amp;nbsp; I can use set analysis in my chart, for some reason it does not like the part highlighted in red below&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;=IF(GetSelectedCount(MonthsActive) = 0, [EntityTerritory], IF(&lt;FONT color="#FF0000"&gt;MAX({1&amp;lt;EntityTerritory=&amp;gt;}MonthsActive)&lt;/FONT&gt; &amp;lt; MAX(Total{$&amp;lt;EntityTerritory=&amp;gt;}MonthsActive), null(), EntityTerritory))&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#333333"&gt;If I change the part in red to &lt;STRONG&gt;MAX(Total{1&amp;lt;EntityTerritory=&amp;gt;}MonthsActive)&lt;/STRONG&gt; I no longer receive an error (however, I get incorrect results).&amp;nbsp; Also, if I use this in a measure it returns correct results.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 19:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1807487#M65728</guid>
      <dc:creator>alandilworth</dc:creator>
      <dc:date>2021-05-12T19:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression works as a measure but not dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1807537#M65733</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/137128"&gt;@alandilworth&lt;/a&gt;&amp;nbsp;If your visual is a table set up like the mock table in your above post, my suggested workaround would be:&lt;/P&gt;&lt;P&gt;1. Build table with Territory as column 1 and months active as column 2 (the order will be important for next steps to work properly).&lt;/P&gt;&lt;P&gt;2. Create variable vMonthsActive, default value can be to whatever is appropriate for your case (0 is always a good choice)&lt;/P&gt;&lt;P&gt;3. replace Months Active filter pane with Variable Input (slider format), min and max values of your choice (based on min or max months active possible)- assign the variable you just made to the slider&lt;/P&gt;&lt;P&gt;4. In your table, in the 'Entity Territory' Dimension, add a limitation from the drop down --&amp;gt; relative value --&amp;gt; greater than or equal to $(vMonthsActive); since months active is your second column it should compare this condition to that column, so it'll limit what shows based on whether months active is greater than or equal to their slider selections&lt;/P&gt;&lt;P&gt;-Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 00:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1807537#M65733</guid>
      <dc:creator>MadiF</dc:creator>
      <dc:date>2021-05-13T00:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression works as a measure but not dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1809475#M65956</link>
      <description>&lt;P&gt;Thank you for your response MadiF.&amp;nbsp; Unfortunately I failed to mention one important piece to this.&amp;nbsp; In my use case the user needs the ability to select multiple consecutive values for months active.&amp;nbsp; For instance, in the table below, if the user selects 4 and 5 for months active in a filter pane, only Terr1 and Terr4 should be displayed.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ex.PNG" style="width: 380px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55410i5D859C64B2A99042/image-size/large?v=v2&amp;amp;px=999" role="button" title="ex.PNG" alt="ex.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 14:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1809475#M65956</guid>
      <dc:creator>alandilworth</dc:creator>
      <dc:date>2021-05-20T14:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression works as a measure but not dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1811163#M66118</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/137128"&gt;@alandilworth&lt;/a&gt;&amp;nbsp;In that case, wouldn't a regular filter pane execute the function you're looking for? A filter pane for the field months active with a selection of 4 and 5 only would in theory perform said function- and if the variable input mentioned in my previous response was defaulted to 0, then the limitation wouldn't affect results and the filter pane would work as expected. Do my previous response paired with a normal filter pane not achieve the desired response?&lt;/P&gt;&lt;P&gt;From your initial response to Seyko it seemed like you were looking for a greater than or less than sort of evaluation, but this most recent response sounds like the effects of multiple selections in a regular filter pane. Apologies, just trying to clarify your goal!&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 19:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1811163#M66118</guid>
      <dc:creator>MadiF</dc:creator>
      <dc:date>2021-05-27T19:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression works as a measure but not dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1811169#M66119</link>
      <description>&lt;P&gt;Thanks for sticking with me, I am still struggling with this.&amp;nbsp; I am using a filter pane, but it is not returning desired results.&amp;nbsp; I currently am using a filter pane with 'MonthsActive' as the dimension.&amp;nbsp; My problem is I want only want the 'Territory' to display if it contains values for every 'MonthsActive' selected.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;Territory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Months Active&lt;BR /&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;BR /&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;BR /&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;BR /&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;BR /&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;BR /&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If the user selects 1,2,3,4 in my 'MonthsActive' filter pane it will return Territory A, B, and C.&amp;nbsp; &lt;STRONG&gt;However, I want it to only return Territory A since it includes every selection in the filter pane&lt;/STRONG&gt;.&amp;nbsp; Basically, I am wanting the filter pane to use 'and' logic instead of 'or' logic where it only returns rows that contains every value in the selection.&lt;BR /&gt;&lt;BR /&gt;In the expression below I am trying to accomplish this with the following logic.&amp;nbsp; I get the maximum 'MonthsActive' value chosen in the filter pane and compare it to the maximum 'MonthsActive' value in the table in the data model.&amp;nbsp; If the maximum 'MonthsActive' value in the data model is less than the max value chosen in the filter pane, the Territory should not display.&amp;nbsp; This way it only display rows that contain every value in the selection.&amp;nbsp; Of course this is not working and returns Invalid Dimension due to the part highlighted in red.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;=IF(GetSelectedCount(MonthsActive) = 0, [EntityTerritory], IF(&lt;FONT color="#FF0000"&gt;MAX({1&amp;lt;EntityTerritory=&amp;gt;}MonthsActive)&lt;/FONT&gt; &amp;lt; MAX(Total{$&amp;lt;EntityTerritory=&amp;gt;}MonthsActive), null(), EntityTerritory))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;FONT color="#333333"&gt;Thanks!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 20:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1811169#M66119</guid>
      <dc:creator>alandilworth</dc:creator>
      <dc:date>2021-05-27T20:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression works as a measure but not dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1811189#M66120</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;If the user selects 1,2,3,4 in my 'MonthsActive' filter pane it will return Territory A, B, and C.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;However, I want it to only return Territory A since it includes every selection in the filter pane&lt;/STRONG&gt;&lt;SPAN&gt;.&amp;nbsp; Basically, I am wanting the filter pane to use 'and' logic instead of 'or' logic where it only returns rows that contains every value in the selection."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You could calculate a field in your load script that contains the max months active for each territory and make use of that field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Entity Territory&amp;nbsp; &amp;nbsp;Months Active&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WAC&amp;nbsp; &amp;nbsp; Max Months Active&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Terr1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1/1/2021&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Terr2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1/1/2021&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't understand the data so this is a guess - because how does Terr1 have months active &lt;STRONG&gt;1&lt;/STRONG&gt; on &lt;STRONG&gt;Jan 1&lt;/STRONG&gt;, 2021,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and months active&lt;STRONG&gt; 2&lt;/STRONG&gt; on &lt;STRONG&gt;Jan 3&lt;/STRONG&gt;,2021,&amp;nbsp; months active &lt;STRONG&gt;3&lt;/STRONG&gt; on &lt;STRONG&gt;Jan 4&lt;/STRONG&gt;, 2021 ....&amp;nbsp; its the same month&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 21:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1811189#M66120</guid>
      <dc:creator>mjht</dc:creator>
      <dc:date>2021-05-27T21:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression works as a measure but not dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1811195#M66121</link>
      <description>&lt;P&gt;I made that table really quick as dummy data since my work prohibits sharing the actual data I’m using. &amp;nbsp;You can disregard the date column. &amp;nbsp;In my load script I am assigning a months active value to every row in the data table that represents a transaction. &amp;nbsp;I essentially have a table representing every sale/transaction with MonthsActive assigned to each row. &amp;nbsp;It represents how long the territory has been active at the point of the transaction.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(GetSelectedCount(MonthsActive) = 0, [EntityTerritory], IF(&lt;FONT color="#FF0000"&gt;MAX({1&amp;lt;EntityTerritory=&amp;gt;}MonthsActive)&lt;/FONT&gt; &amp;lt; MAX(Total{$&amp;lt;EntityTerritory=&amp;gt;}MonthsActive), null(), EntityTerritory))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The part highlighted in red the reference to the maximum MonthsActive value in the data table. &amp;nbsp;MonthsActive is a column in my data table that I am using as a dimension for my filter pane.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A little more context: &amp;nbsp;This is for my company that operates on a franchise model. &amp;nbsp;I am trying to make a report showing the sales of each franchise territory according to how many months they have been active. &amp;nbsp;This is why it is important for the filter pane to only return rows that include every selection in my MonthsActive filter pane since it can skew the data if done otherwise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 00:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-works-as-a-measure-but-not-dimension/m-p/1811195#M66121</guid>
      <dc:creator>alandilworth</dc:creator>
      <dc:date>2021-05-28T00:02:00Z</dc:date>
    </item>
  </channel>
</rss>

