<?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: Variable input slider with table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2423121#M95855</link>
    <description>&lt;P&gt;Hi, the slider is linked to a variable, so you need to use that variable in the expressions or calculated dimensions.&lt;/P&gt;
&lt;P&gt;The complicated part here is that you need to add the condition in all the expressions of the table or in one dimension that has a unique value for each row.&lt;/P&gt;
&lt;P&gt;- for expresions it could be: If([SupplyMonthsExpression]&amp;gt;=$(VariableName), [ColumnExpression])&lt;/P&gt;
&lt;P&gt;- For dimension it could be: Aggr(If([SupplyMonthsExpression]&amp;gt;=$(VariableName), DimensionField, DimensionField)&lt;/P&gt;
&lt;P&gt;You can try using a calculated dimension for component that uses a combination of dimensions, I'm not sur if this could work:&amp;nbsp;Aggr(If([SupplyMonthsExpression]&amp;gt;=$(VariableName), DimensionField, DimensionField1, DimensionField2, DimensionField3)&lt;/P&gt;
&lt;P&gt;If you take the path of the expressions you'll need to uncheck the option to 'include zero values' on add-ons section.&lt;/P&gt;
&lt;P&gt;If you take the path of the calculated dimensions you'll need to uncheck the option to 'show null values' on the calculated dimension&lt;/P&gt;</description>
    <pubDate>Sat, 24 Feb 2024 06:59:19 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2024-02-24T06:59:19Z</dc:date>
    <item>
      <title>Variable input slider with table</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2423048#M95853</link>
      <description>&lt;P&gt;I'm trying to create a sheet where there's a slider that adjust a table based on the slider.&lt;/P&gt;
&lt;P&gt;My table has a mix of dimensions and measures, and one of those is a measure of months of supply (calc of QTY on hand / monthly avg usage). I created a variable and a slider, but I can't figure out how to make the table adjust accordingly to only show records where the months of supply are greater than or equal to the number of months in the slider.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I connect the slider to the table?&amp;nbsp;&lt;/P&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="jalanhart_0-1708709366041.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160580iEEBF4CEF02971A42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jalanhart_0-1708709366041.png" alt="jalanhart_0-1708709366041.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 21:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2423048#M95853</guid>
      <dc:creator>jalanhart</dc:creator>
      <dc:date>2024-02-23T21:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Variable input slider with table</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2423121#M95855</link>
      <description>&lt;P&gt;Hi, the slider is linked to a variable, so you need to use that variable in the expressions or calculated dimensions.&lt;/P&gt;
&lt;P&gt;The complicated part here is that you need to add the condition in all the expressions of the table or in one dimension that has a unique value for each row.&lt;/P&gt;
&lt;P&gt;- for expresions it could be: If([SupplyMonthsExpression]&amp;gt;=$(VariableName), [ColumnExpression])&lt;/P&gt;
&lt;P&gt;- For dimension it could be: Aggr(If([SupplyMonthsExpression]&amp;gt;=$(VariableName), DimensionField, DimensionField)&lt;/P&gt;
&lt;P&gt;You can try using a calculated dimension for component that uses a combination of dimensions, I'm not sur if this could work:&amp;nbsp;Aggr(If([SupplyMonthsExpression]&amp;gt;=$(VariableName), DimensionField, DimensionField1, DimensionField2, DimensionField3)&lt;/P&gt;
&lt;P&gt;If you take the path of the expressions you'll need to uncheck the option to 'include zero values' on add-ons section.&lt;/P&gt;
&lt;P&gt;If you take the path of the calculated dimensions you'll need to uncheck the option to 'show null values' on the calculated dimension&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 06:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2423121#M95855</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2024-02-24T06:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Variable input slider with table</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2423749#M95932</link>
      <description>&lt;P&gt;Thanks! that's definitely in the right direction ( I went the expression route).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran into an two issues though --&lt;/P&gt;
&lt;P&gt;When I set the slider to 0 or 1 month, the totals are there calculated at the top of the table, at least some of these fields should change when going from &amp;gt;= 0 to &amp;gt;= 1 for example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other issue is that anything more than 2 months or more totaled in the slider, the totals row shows null altogether, which is not helpful. how do I fix this?&lt;/P&gt;
&lt;P&gt;When 0&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jalanhart_0-1708979041647.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160683i801AEC29BDF385CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jalanhart_0-1708979041647.png" alt="jalanhart_0-1708979041647.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When 1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jalanhart_1-1708979063478.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160684iC814503F36D75914/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jalanhart_1-1708979063478.png" alt="jalanhart_1-1708979063478.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When 2 or more&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jalanhart_2-1708979082353.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160685iC54DFFC84E7A7380/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jalanhart_2-1708979082353.png" alt="jalanhart_2-1708979082353.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 20:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2423749#M95932</guid>
      <dc:creator>jalanhart</dc:creator>
      <dc:date>2024-02-26T20:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Variable input slider with table</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2423885#M95938</link>
      <description>&lt;P&gt;Hi that's usually caused by a field that has more than one different value, so it returns Null() and the expression can't be evaluated. In that case you need to include the field in an aggregation function (Sum, Avg, Max...) so it returns only one value, or use an Aggr() to do the calculation for each feld value, and then use the aggregation fuction to tell Qlik what to do with all the different values.&lt;/P&gt;
&lt;P&gt;You can post your expression, or directly split the expression in different columns to check wich one doesn't returns any value.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 07:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2423885#M95938</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2024-02-27T07:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Variable input slider with table</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2424306#M95982</link>
      <description>&lt;P&gt;I've tried both&lt;/P&gt;
&lt;P&gt;"sum(If([MONTHS OF SUPPLY]&amp;gt;=$(vMTHSSUPPLY), [VALUE ON HAND])) "&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;"aggr(if( [MONTHS OF SUPPLY]&amp;gt;=$(vMTHSSUPPLY), sum(distinct INV_VALUE)),CONTRACT, COMPONENT_PART, [COMPONENT DESC]) "&lt;/P&gt;
&lt;P&gt;and neither of them are showing the total row either.&lt;/P&gt;
&lt;P&gt;if there are two distinct values it sums them up already for the table, so I would think that the total row is just a sum of the fields below. very frustrating! &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 21:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2424306#M95982</guid>
      <dc:creator>jalanhart</dc:creator>
      <dc:date>2024-02-27T21:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variable input slider with table</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2424456#M95997</link>
      <description>&lt;P&gt;Maybe it's the&amp;nbsp;&lt;SPAN&gt;$(vMTHSSUPPLY), have you tried to set an expression with only this? It it returns a different value for each month it would not be calculated for the totals, as the epxression wouldnt know wich of the values has to use.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In this case an aggr would be needed, like: Sum(Aggr([Expression], MonthField)) In this case it will split the expression for the differnt months, using th value it has for each month, and then sum all the results by month.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 07:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2424456#M95997</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2024-02-28T07:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Variable input slider with table</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2424466#M95998</link>
      <description>&lt;P&gt;I set up the variable with just a definition of 0 so that the slider would input a number.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;months of supply is just a measure that takes the quantity of inventory on hand and divides it by the average monthly usage of that product. so it's not an over time factor or field, just measures based on dimension's of the product's location and ID number.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for your continued help!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 07:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2424466#M95998</guid>
      <dc:creator>jalanhart</dc:creator>
      <dc:date>2024-02-28T07:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Variable input slider with table</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2424468#M95999</link>
      <description>&lt;P&gt;Ok, maybe it's the other part of the expression:&amp;nbsp;&lt;SPAN&gt;[MONTHS OF SUPPLY]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Or can you upload a sample with some dummy data that demonstrates the issue?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 07:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2424468#M95999</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2024-02-28T07:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variable input slider with table</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2424470#M96000</link>
      <description>&lt;P&gt;was wondering that too. months of supply is a juicy one because a product could have zero usage in the last 6 months and I can't divide by zero, so my measure for months of supply is this here:&lt;/P&gt;
&lt;P&gt;if(isnull([MONTHLY AVERAGE USAGE]), 0,&lt;BR /&gt;IF(AVG_6MTH_USAGE = 0 AND QOH &amp;gt; 0, 99, &lt;BR /&gt;IF(AVG_6MTH_USAGE = 0 AND QOH = 0, 0, &lt;BR /&gt;IF(AVG_6MTH_USAGE = 0 AND QOH &amp;lt; 0, 0, &lt;BR /&gt;[QTY ON HAND] / [MONTHLY AVERAGE USAGE]))))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 07:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2424470#M96000</guid>
      <dc:creator>jalanhart</dc:creator>
      <dc:date>2024-02-28T07:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Variable input slider with table</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2424480#M96001</link>
      <description>&lt;P&gt;Hi, it's the same noted above: if this can't be calculated in a row with more than one month (line it happens on the totals row) you'll need to change the expression to use aggregation on every field or use Aggr to split the calculation by the different months and then use an aggregtion formaula for tal this values, like in the example above: S&lt;SPAN&gt;um(Aggr([Expression], MonthField))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 07:47:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2424480#M96001</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2024-02-28T07:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variable input slider with table</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2424488#M96003</link>
      <description>&lt;P&gt;OK I think i might be getting somewhere finally! I had tried the some aggregating before with no success but I tried --&amp;nbsp; sum(aggr(If([MONTHS OF SUPPLY]&amp;gt;=$(vMTHSSUPPLY), [VALUE ON HAND]),CONTRACT, COMPONENT_PART))&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;I put that in a KPI and that seems like it's working closer to how I need it. I will try to put that in my table in later (it's midnight here) and let you know how it works!&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 07:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2424488#M96003</guid>
      <dc:creator>jalanhart</dc:creator>
      <dc:date>2024-02-28T07:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Variable input slider with table</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2425454#M96107</link>
      <description>&lt;P&gt;so far this seems to be working like I need so thanks for your help!&lt;/P&gt;
&lt;P&gt;about the slider, when you move the slider and it filters data shown in a table for example, is it actually filtering the data that's loaded like a filter visual would be doing? So the slider manipulates one field in table A, can that action filter the data in table A to adjust the data in associated table B ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 16:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2425454#M96107</guid>
      <dc:creator>jalanhart</dc:creator>
      <dc:date>2024-02-29T16:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Variable input slider with table</title>
      <link>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2425683#M96116</link>
      <description>&lt;P&gt;Hi, I think that the only way to do that is to add the condition in each expression in both tables, or use a calculated dimension that limits the dimension values and uncheck the option to show null values in that dimension.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 07:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variable-input-slider-with-table/m-p/2425683#M96116</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2024-03-01T07:09:57Z</dc:date>
    </item>
  </channel>
</rss>

