<?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: Calculate Measure and Alternate State in Same Expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculate-Measure-and-Alternate-State-in-Same-Expression/m-p/1780285#M60686</link>
    <description>&lt;P&gt;Not sure I follow how the expression you posted is working.&lt;/P&gt;&lt;P&gt;You may want to try GetFieldSelections(&lt;EM&gt;FieldName&lt;/EM&gt;) or wrap the whole thing with a Replace function to replace 'Company=' with ''.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2021 17:47:13 GMT</pubDate>
    <dc:creator>GaryGiles</dc:creator>
    <dc:date>2021-02-04T17:47:13Z</dc:date>
    <item>
      <title>Calculate Measure and Alternate State in Same Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Measure-and-Alternate-State-in-Same-Expression/m-p/1780271#M60683</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using a line chart to show data points for multiple alternate states. For each measure I need to include the alternate state in the expression.&amp;nbsp; I want to sum(sales) only if they were ([Rank]=1) and use the "Company 1" alternate state.&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Rank={1},"Company 1"&amp;gt;}Sales) - Tried this but no luck.&amp;nbsp; Also tried If Then statement with no luck.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Measure-and-Alternate-State-in-Same-Expression/m-p/1780271#M60683</guid>
      <dc:creator>robertsb41</dc:creator>
      <dc:date>2024-11-16T17:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Measure and Alternate State in Same Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Measure-and-Alternate-State-in-Same-Expression/m-p/1780275#M60684</link>
      <description>&lt;P&gt;Replace the $ with the Alternate State name like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({[Company 1]&amp;lt;Rank={1}&amp;gt;}Sales)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 17:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Measure-and-Alternate-State-in-Same-Expression/m-p/1780275#M60684</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-02-04T17:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Measure and Alternate State in Same Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Measure-and-Alternate-State-in-Same-Expression/m-p/1780281#M60685</link>
      <description>&lt;P&gt;Perfect!&amp;nbsp; This community is great.&amp;nbsp; Now what if I wanted to use the company selection as the label name in the chart?&lt;/P&gt;&lt;P&gt;=' '&amp;amp;GetCurrentSelections(chr(13)&amp;amp;chr(10), '=', ',' ,9,'Company 1')&lt;/P&gt;&lt;P&gt;I tried that but it puts the name of the dimension in front of the company name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 17:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Measure-and-Alternate-State-in-Same-Expression/m-p/1780281#M60685</guid>
      <dc:creator>robertsb41</dc:creator>
      <dc:date>2021-02-04T17:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Measure and Alternate State in Same Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Measure-and-Alternate-State-in-Same-Expression/m-p/1780285#M60686</link>
      <description>&lt;P&gt;Not sure I follow how the expression you posted is working.&lt;/P&gt;&lt;P&gt;You may want to try GetFieldSelections(&lt;EM&gt;FieldName&lt;/EM&gt;) or wrap the whole thing with a Replace function to replace 'Company=' with ''.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 17:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Measure-and-Alternate-State-in-Same-Expression/m-p/1780285#M60686</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-02-04T17:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Measure and Alternate State in Same Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Measure-and-Alternate-State-in-Same-Expression/m-p/1780349#M60690</link>
      <description>&lt;P&gt;Think I resolved the label issue by using:&lt;/P&gt;&lt;P&gt;=Only ({'Company 1'} Name_Bidder)&lt;/P&gt;&lt;P&gt;But the label now shows up as - which is better than where I was at before.&amp;nbsp; Is there a way for making the label not show unless a selection is made from the alternate state?&lt;/P&gt;&lt;P&gt;Thanks for answering my first question, it got me on the right path.&amp;nbsp; I will update as Solved.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 22:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Measure-and-Alternate-State-in-Same-Expression/m-p/1780349#M60690</guid>
      <dc:creator>robertsb41</dc:creator>
      <dc:date>2021-02-04T22:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Measure and Alternate State in Same Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Measure-and-Alternate-State-in-Same-Expression/m-p/1780352#M60691</link>
      <description>&lt;P&gt;I should clarify, it shows a dash if there isn't a selection.&amp;nbsp; The company name shows once a selection is made.&amp;nbsp; I want the label not to show if no selection is made ie get rid of the dash.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 22:09:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Measure-and-Alternate-State-in-Same-Expression/m-p/1780352#M60691</guid>
      <dc:creator>robertsb41</dc:creator>
      <dc:date>2021-02-04T22:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Measure and Alternate State in Same Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Measure-and-Alternate-State-in-Same-Expression/m-p/1780585#M60715</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(&lt;SPAN&gt;Name_Bidder&lt;/SPAN&gt;,True(),'Group 1')&amp;gt;0,&lt;SPAN&gt;Only ({'Company 1'} Name_Bidder),'')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 16:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Measure-and-Alternate-State-in-Same-Expression/m-p/1780585#M60715</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-02-05T16:32:25Z</dc:date>
    </item>
  </channel>
</rss>

