<?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: Regarding the Multiple Expression in the KPI in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Regarding-the-Multiple-Expression-in-the-KPI/m-p/2048805#M1222930</link>
    <description>&lt;DIV class="group w-full text-gray-800 dark:text-gray-100 border-b border-black/10 dark:border-gray-900/50 bg-gray-50 dark:bg-[#444654]"&gt;
&lt;DIV class="text-base gap-4 md:gap-6 md:max-w-2xl lg:max-w-2xl xl:max-w-3xl p-4 md:py-6 flex lg:px-0 m-auto"&gt;
&lt;DIV class="relative flex w-[calc(100%-50px)] flex-col gap-1 md:gap-3 lg:w-[calc(100%-115px)]"&gt;
&lt;DIV class="flex flex-grow flex-col gap-3"&gt;
&lt;DIV class="min-h-[20px] flex flex-col items-start gap-4 whitespace-pre-wrap"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;You can use the "if" function to create a conditional expression in your KPI that displays the YTD sales when the "Flag" dimension is selected, and the monthly sales when the "Month_year" dimension is selected. Here's an example expression:&lt;/P&gt;
&lt;P&gt;if(GetSelectedCount(Flag) &amp;gt; 0, Sum({&amp;lt;Flag={'YTD'}&amp;gt;}Sales), if(GetSelectedCount(Month_year) &amp;gt; 0, Sum(Sales), 0))&lt;/P&gt;
&lt;P&gt;This expression checks if either "Flag" or "Month_year" dimensions are selected, and based on that, calculates the corresponding sales value. If neither of these dimensions are selected, it will return a value of 0.&amp;nbsp; &lt;A href="https://www.umrproviderportal.org/" target="_self"&gt;&amp;nbsp;&lt;FONT color="#FFFFFF"&gt;UMR.com&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="flex justify-between"&gt;
&lt;DIV class="text-gray-400 flex self-end lg:self-center justify-center mt-2 gap-3 md:gap-4 lg:gap-1 lg:absolute lg:top-0 lg:translate-x-full lg:right-0 lg:mt-0 lg:pl-2 visible"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 15 Mar 2023 05:43:47 GMT</pubDate>
    <dc:creator>sarafoster</dc:creator>
    <dc:date>2023-03-15T05:43:47Z</dc:date>
    <item>
      <title>Regarding the Multiple Expression in the KPI</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-the-Multiple-Expression-in-the-KPI/m-p/2048511#M1222916</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want. to show Multiple Expression in the KPI.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;By default :-&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Flag = {'YTD'}&amp;gt;}Sales)&lt;/P&gt;
&lt;P&gt;if&amp;nbsp; &lt;STRONG&gt;Month_year&lt;/STRONG&gt;&amp;nbsp; Dimension&amp;nbsp; Selected then &lt;STRONG&gt;Sum(&lt;/STRONG&gt;Sales)&lt;/P&gt;
&lt;P&gt;So how to write the Expression in the KPI&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Sunil Kumar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 13:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-the-Multiple-Expression-in-the-KPI/m-p/2048511#M1222916</guid>
      <dc:creator>Sunilkumar3</dc:creator>
      <dc:date>2023-03-13T13:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the Multiple Expression in the KPI</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-the-Multiple-Expression-in-the-KPI/m-p/2048793#M1222927</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;if(GetSelectedCount(Month_year)&amp;gt;0,Sum(Sales),Sum({&amp;lt;Flag = {'YTD'}&amp;gt;}Sales))&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Huzaifa Momin&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 05:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-the-Multiple-Expression-in-the-KPI/m-p/2048793#M1222927</guid>
      <dc:creator>mominh_uzaifa</dc:creator>
      <dc:date>2023-03-14T05:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding the Multiple Expression in the KPI</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-the-Multiple-Expression-in-the-KPI/m-p/2048805#M1222930</link>
      <description>&lt;DIV class="group w-full text-gray-800 dark:text-gray-100 border-b border-black/10 dark:border-gray-900/50 bg-gray-50 dark:bg-[#444654]"&gt;
&lt;DIV class="text-base gap-4 md:gap-6 md:max-w-2xl lg:max-w-2xl xl:max-w-3xl p-4 md:py-6 flex lg:px-0 m-auto"&gt;
&lt;DIV class="relative flex w-[calc(100%-50px)] flex-col gap-1 md:gap-3 lg:w-[calc(100%-115px)]"&gt;
&lt;DIV class="flex flex-grow flex-col gap-3"&gt;
&lt;DIV class="min-h-[20px] flex flex-col items-start gap-4 whitespace-pre-wrap"&gt;
&lt;DIV class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;P&gt;You can use the "if" function to create a conditional expression in your KPI that displays the YTD sales when the "Flag" dimension is selected, and the monthly sales when the "Month_year" dimension is selected. Here's an example expression:&lt;/P&gt;
&lt;P&gt;if(GetSelectedCount(Flag) &amp;gt; 0, Sum({&amp;lt;Flag={'YTD'}&amp;gt;}Sales), if(GetSelectedCount(Month_year) &amp;gt; 0, Sum(Sales), 0))&lt;/P&gt;
&lt;P&gt;This expression checks if either "Flag" or "Month_year" dimensions are selected, and based on that, calculates the corresponding sales value. If neither of these dimensions are selected, it will return a value of 0.&amp;nbsp; &lt;A href="https://www.umrproviderportal.org/" target="_self"&gt;&amp;nbsp;&lt;FONT color="#FFFFFF"&gt;UMR.com&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="flex justify-between"&gt;
&lt;DIV class="text-gray-400 flex self-end lg:self-center justify-center mt-2 gap-3 md:gap-4 lg:gap-1 lg:absolute lg:top-0 lg:translate-x-full lg:right-0 lg:mt-0 lg:pl-2 visible"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Mar 2023 05:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-the-Multiple-Expression-in-the-KPI/m-p/2048805#M1222930</guid>
      <dc:creator>sarafoster</dc:creator>
      <dc:date>2023-03-15T05:43:47Z</dc:date>
    </item>
  </channel>
</rss>

