<?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: adding conditions to Variables in Set Command in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/adding-conditions-to-Variables-in-Set-Command/m-p/1776034#M454836</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/68136"&gt;@Krish&lt;/a&gt;&amp;nbsp;, one option could be use alternate states inside the expressions.&lt;/P&gt;&lt;P&gt;So you can have the same field Country, more than one, but each one referencing to a different State&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_1-1611159676218.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47496i7A1BB92B28AE1F57/image-size/large?v=v2&amp;amp;px=999" role="button" title="QFabian_1-1611159676218.png" alt="QFabian_1-1611159676218.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please check the qvw&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jan 2021 16:22:41 GMT</pubDate>
    <dc:creator>QFabian</dc:creator>
    <dc:date>2021-01-20T16:22:41Z</dc:date>
    <item>
      <title>adding conditions to Variables in Set Command</title>
      <link>https://community.qlik.com/t5/QlikView/adding-conditions-to-Variables-in-Set-Command/m-p/1775946#M454831</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to re-use a formula which is used in multiple places in dashboard. I am trying to create a variable which is common across all the places like&lt;/P&gt;&lt;P&gt;sum({&amp;lt;payment={'cash'}&amp;gt;}sales) and create it as a variable vsales =&amp;nbsp;sum({&amp;lt;payment={'cash'}&amp;gt;}sales),&lt;/P&gt;&lt;P&gt;Now I want to add a condition like country='IND' for one chart and country='usa' for other chart, but the calculation is same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;payment={'cash'},country={'IND'}&amp;gt;}sales) &amp;amp; sum({&amp;lt;payment={'cash'},country={'AUS'}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;How can I create a variable with common features and re-use them by adding the additional condition based on requirement.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-conditions-to-Variables-in-Set-Command/m-p/1775946#M454831</guid>
      <dc:creator>Krish</dc:creator>
      <dc:date>2024-11-15T23:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: adding conditions to Variables in Set Command</title>
      <link>https://community.qlik.com/t5/QlikView/adding-conditions-to-Variables-in-Set-Command/m-p/1776034#M454836</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/68136"&gt;@Krish&lt;/a&gt;&amp;nbsp;, one option could be use alternate states inside the expressions.&lt;/P&gt;&lt;P&gt;So you can have the same field Country, more than one, but each one referencing to a different State&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_1-1611159676218.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47496i7A1BB92B28AE1F57/image-size/large?v=v2&amp;amp;px=999" role="button" title="QFabian_1-1611159676218.png" alt="QFabian_1-1611159676218.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please check the qvw&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 16:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-conditions-to-Variables-in-Set-Command/m-p/1776034#M454836</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2021-01-20T16:22:41Z</dc:date>
    </item>
  </channel>
</rss>

