<?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 Dynamically Change Chart Measure in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamically-Change-Chart-Measure/m-p/1770630#M59640</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a set of 4 charts with different dimensions (ex. Category, Department, Brand, Product). I'd like to have the ability for the user to select which metric they would like to see in the 4 charts with the given dimensions. Ideally a dropdown allowing them to select 'Sales' would show these dimensions over the measure 'Sales'. Same thing for Units and other measures. How do I go about doing this?&lt;/P&gt;&lt;P&gt;I have tried creating a variable and if a variable value is selected, the measure would change. However, some measures have different formats. Sales is in dollars and Units is quantity and I don't how to dynamically change the format as well.&lt;/P&gt;&lt;P&gt;I'd like to avoid using alternate measures as its a bit of work for the user to change the measure 4 times.&lt;/P&gt;&lt;P&gt;Any help is appreciated. Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
    <dc:creator>mpalha</dc:creator>
    <dc:date>2021-12-20T21:08:46Z</dc:date>
    <item>
      <title>Dynamically Change Chart Measure</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-Change-Chart-Measure/m-p/1770630#M59640</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a set of 4 charts with different dimensions (ex. Category, Department, Brand, Product). I'd like to have the ability for the user to select which metric they would like to see in the 4 charts with the given dimensions. Ideally a dropdown allowing them to select 'Sales' would show these dimensions over the measure 'Sales'. Same thing for Units and other measures. How do I go about doing this?&lt;/P&gt;&lt;P&gt;I have tried creating a variable and if a variable value is selected, the measure would change. However, some measures have different formats. Sales is in dollars and Units is quantity and I don't how to dynamically change the format as well.&lt;/P&gt;&lt;P&gt;I'd like to avoid using alternate measures as its a bit of work for the user to change the measure 4 times.&lt;/P&gt;&lt;P&gt;Any help is appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-Change-Chart-Measure/m-p/1770630#M59640</guid>
      <dc:creator>mpalha</dc:creator>
      <dc:date>2021-12-20T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Change Chart Measure</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-Change-Chart-Measure/m-p/1770632#M59642</link>
      <description>&lt;P&gt;Create a variable, vMeasure and set the value to the initial Measure that should shown, like&lt;/P&gt;&lt;P&gt;num(sum(Sales),'$#,##0;($#,##0)')&lt;/P&gt;&lt;P&gt;use =$(vMeasure) in the Measure expression for your chart.&lt;/P&gt;&lt;P&gt;Then, add the Variable Input object from the Qlik Dashboard bundle.&amp;nbsp; Set the variable to vMeasure; Show as Drop down, and use dynamic values.&lt;/P&gt;&lt;P&gt;In the Dynamic Values expression, use:&lt;/P&gt;&lt;P&gt;='num(sum(Sales),''$#,##0;($#,##0)'')~Sales|num(sum(Quantity),''#,##0;(#,##0)'')~Quantity'&lt;/P&gt;&lt;P&gt;You will need to fill in your other measures.&amp;nbsp; The '' around the number formatting are 2 single quotes, not a double quote.&amp;nbsp; You need that to get a single quote within a string value.&amp;nbsp; Each option is seperated by "|".&amp;nbsp; The "~" separates the actual value from the Label displayed in the drop down.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2020 20:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-Change-Chart-Measure/m-p/1770632#M59642</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2020-12-27T20:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Change Chart Measure</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-Change-Chart-Measure/m-p/1770633#M59643</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;@Anonymous&amp;nbsp;! Works perfectly.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2020 22:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-Change-Chart-Measure/m-p/1770633#M59643</guid>
      <dc:creator>mpalha</dc:creator>
      <dc:date>2020-12-27T22:39:19Z</dc:date>
    </item>
  </channel>
</rss>

