<?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: How to adjust reference line based on dimension selected in Line Chart? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-adjust-reference-line-based-on-dimension-selected-in-Line/m-p/1759633#M58728</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/129202"&gt;@divyathomas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use GetObjectDimension function. It retrieves de name of dimension that you are using on an object on a specific index.&lt;/P&gt;&lt;P&gt;In your case , you can call if(GetObjectDimension(0) ='Year', expressionforavgbyyear,....&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Sun, 08 Nov 2020 20:11:17 GMT</pubDate>
    <dc:creator>forte</dc:creator>
    <dc:date>2020-11-08T20:11:17Z</dc:date>
    <item>
      <title>How to adjust reference line based on dimension selected in Line Chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-adjust-reference-line-based-on-dimension-selected-in-Line/m-p/1759473#M58711</link>
      <description>&lt;P&gt;I have a line chart with 3 dimensions(Year, place, model type, etc). One dimension is chosen at a time and the others are available as alternative dimensions. I have one measure Count(SerialID).&lt;/P&gt;&lt;P&gt;I want to add an average reference line to the chart based on the selected dimension. Currently, when I add an average reference line, say based on the dimension 'year' , that line is visible even when the user selects dimension 'place'. Also, the reference line does not change to show the average of the new selected dimension (place). How can I do this??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-adjust-reference-line-based-on-dimension-selected-in-Line/m-p/1759473#M58711</guid>
      <dc:creator>divyathomas</dc:creator>
      <dc:date>2024-11-16T01:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust reference line based on dimension selected in Line Chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-adjust-reference-line-based-on-dimension-selected-in-Line/m-p/1759633#M58728</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/129202"&gt;@divyathomas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use GetObjectDimension function. It retrieves de name of dimension that you are using on an object on a specific index.&lt;/P&gt;&lt;P&gt;In your case , you can call if(GetObjectDimension(0) ='Year', expressionforavgbyyear,....&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sun, 08 Nov 2020 20:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-adjust-reference-line-based-on-dimension-selected-in-Line/m-p/1759633#M58728</guid>
      <dc:creator>forte</dc:creator>
      <dc:date>2020-11-08T20:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust reference line based on dimension selected in Line Chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-adjust-reference-line-based-on-dimension-selected-in-Line/m-p/1759983#M58752</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14825"&gt;@forte&lt;/a&gt;&amp;nbsp;, Thanks for replying. But this isn't working and when looking more into it I think it is because&amp;nbsp;&lt;SPAN&gt;GetObjectDimension can't be used in reference lines (&lt;A href="https://help.qlik.com/en-US/sense/September2020/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/FieldFunctions/getobjectdimension.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/September2020/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/FieldFunctions/getobjectdimension.htm&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Wondering if you knew some other way of doing this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 17:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-adjust-reference-line-based-on-dimension-selected-in-Line/m-p/1759983#M58752</guid>
      <dc:creator>divyathomas</dc:creator>
      <dc:date>2020-11-09T17:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust reference line based on dimension selected in Line Chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-adjust-reference-line-based-on-dimension-selected-in-Line/m-p/1760103#M58763</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/129202"&gt;@divyathomas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be you can test a workaround. Instead of using alternative dimension, try to do it through a calculated dimension depending on a variable's value&lt;/P&gt;&lt;P&gt;if(vMyVariable=1, Dim1,if(vMyVariable=2, Dim2....)&lt;/P&gt;&lt;P&gt;In order to let the user change dimension, you can use an Input extension (in Qlik Bundle) so you can show some buttons user can action to change that variable , and consequently dimension.&lt;/P&gt;&lt;P&gt;Now you are able to use that variable to decide best expression for reference line.&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 06:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-adjust-reference-line-based-on-dimension-selected-in-Line/m-p/1760103#M58763</guid>
      <dc:creator>forte</dc:creator>
      <dc:date>2020-11-10T06:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust reference line based on dimension selected in Line Chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-adjust-reference-line-based-on-dimension-selected-in-Line/m-p/1761399#M58862</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14825"&gt;@forte&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for the suggestion. I am very new to Qlik so I wonder if you might be able to help me a bit more with implementing this solution. I am stuck with the reference line expression. Here is what I did:&lt;/P&gt;&lt;P&gt;As you suggested, I created a variable (vDim which takes values 1,2,3)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="divyathomas_0-1605240480109.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44142i7437B4C948A61515/image-size/medium?v=v2&amp;amp;px=400" role="button" title="divyathomas_0-1605240480109.png" alt="divyathomas_0-1605240480109.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I created a calculated field with this expression and used this as the dimension in my chart. The dimension in my chart is updating successfully when I change the vDim value from a dropdown&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="divyathomas_1-1605240598588.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44143i01B4424D4B5FA821/image-size/medium?v=v2&amp;amp;px=400" role="button" title="divyathomas_1-1605240598588.png" alt="divyathomas_1-1605240598588.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am stuck at the reference line expression. When I enter this expression(since I can't add the calculated field directly)...no line is displayed at all. Wondering if you point out where I am going wrong, please...?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="divyathomas_2-1605242704573.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44144iF7FAEAA44ED80E1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="divyathomas_2-1605242704573.png" alt="divyathomas_2-1605242704573.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 04:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-adjust-reference-line-based-on-dimension-selected-in-Line/m-p/1761399#M58862</guid>
      <dc:creator>divyathomas</dc:creator>
      <dc:date>2020-11-13T04:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust reference line based on dimension selected in Line Chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-adjust-reference-line-based-on-dimension-selected-in-Line/m-p/1761422#M58863</link>
      <description>&lt;P&gt;nevermind, I did it like this and it seems to work ok! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="divyathomas_1-1605249864950.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44149i9BDF7633E0E09526/image-size/medium?v=v2&amp;amp;px=400" role="button" title="divyathomas_1-1605249864950.png" alt="divyathomas_1-1605249864950.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 06:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-adjust-reference-line-based-on-dimension-selected-in-Line/m-p/1761422#M58863</guid>
      <dc:creator>divyathomas</dc:creator>
      <dc:date>2020-11-13T06:47:44Z</dc:date>
    </item>
  </channel>
</rss>

