<?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 Switching between alternative measures using API in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019587#M4069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would need to change the active measure on a chart based on a combo box selection in my mashup. The measures are defined in the measures section. I thought the easiest way to do this would be to assign all the measures as alternatives dimensions and set the active one using the mashup API. But I cannot find the method to set the active alternative measure in the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an API method to set the active measure in a chart? Otherwise, can we change programmatically the measure? I know I can set variables, but I cannot call a measure using a variable as far as I know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2016 14:50:06 GMT</pubDate>
    <dc:creator>maxim1500</dc:creator>
    <dc:date>2016-04-12T14:50:06Z</dc:date>
    <item>
      <title>Switching between alternative measures using API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019587#M4069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would need to change the active measure on a chart based on a combo box selection in my mashup. The measures are defined in the measures section. I thought the easiest way to do this would be to assign all the measures as alternatives dimensions and set the active one using the mashup API. But I cannot find the method to set the active alternative measure in the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an API method to set the active measure in a chart? Otherwise, can we change programmatically the measure? I know I can set variables, but I cannot call a measure using a variable as far as I know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 14:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019587#M4069</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-04-12T14:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between alternative measures using API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019588#M4070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I think the alternative dimension idea won't work... I need KPIs to change also, and they don't support alternative dimensions...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019588#M4070</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-04-12T17:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between alternative measures using API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019589#M4071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can switch or change measures and dimensions with the &lt;A href="http://help.qlik.com/en-US/sense-developer/2.2/Subsystems/NetSDKAPI/Content/Introduction/Net-Sdk-Intro.htm" title="http://help.qlik.com/en-US/sense-developer/2.2/Subsystems/NetSDKAPI/Content/Introduction/Net-Sdk-Intro.htm"&gt;Qlik Sense .NET SDK ‒ Qlik Sense&lt;/A&gt;, You can find more examples on &lt;A href="http://branch.qlik.com/#/project" title="http://branch.qlik.com/#/project"&gt;Qlik Branch&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Lars-Göran Book&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 05:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019589#M4071</guid>
      <dc:creator />
      <dc:date>2016-04-13T05:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between alternative measures using API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019590#M4072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maxime,&lt;/P&gt;&lt;P&gt;You could use a variable instead and use the variable extension on Qlik Branch. That way you could also change a number of charts, KPIs etc at the same time, with just one click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 05:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019590#M4072</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2016-04-13T05:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between alternative measures using API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019591#M4073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured out how to change the formulas or part of them using variables, but is it possible to point to a predefined measure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 10:27:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019591#M4073</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2016-04-13T10:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between alternative measures using API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019592#M4074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm currently searching for similar idea. Did you find a solution using the API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 11:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019592#M4074</guid>
      <dc:creator>hacr</dc:creator>
      <dc:date>2018-01-08T11:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between alternative measures using API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019593#M4075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hans,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not find how to point to predefined measures, but we are now using variables for each measure, so it would be easy to switch between them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;LET vL.ClientCost = SUM([Client Costs Field])&lt;/P&gt;&lt;P&gt;LET vL.ClientRevenue = &lt;SPAN style="font-size: 13.3333px;"&gt;SUM([Client Revenues&lt;SPAN style="font-size: 13.3333px;"&gt; Field&lt;/SPAN&gt;])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LET vL.SwappableMetric = $(&lt;SPAN style="font-size: 13.3333px;"&gt;vL.ClientCost)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;And in your metrics, you could simply use the variable value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For example, My [Client Costs] metric would be $(vL.ClientCost).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 15:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019593#M4075</guid>
      <dc:creator>maxim1500</dc:creator>
      <dc:date>2018-01-19T15:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between alternative measures using API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019594#M4076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maxime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the response! I decided to go another route and generate the Qlik graphs "on the fly" in JavaScript, allowing dynamic switch between dimensions/measures/graph type etc. throught the front-end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 11:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Switching-between-alternative-measures-using-API/m-p/1019594#M4076</guid>
      <dc:creator>hacr</dc:creator>
      <dc:date>2018-01-22T11:23:13Z</dc:date>
    </item>
  </channel>
</rss>

