<?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: Dual function and how it goes underneath in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838557#M1215106</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dual function, we need to pass 2 parameter , one is text and another one is num&lt;/P&gt;&lt;P&gt;Based on ur expression,&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Dual(Num(Sum(Quantity), '#,###.') &amp;amp; Chr(10) &amp;amp; Num(Sum(Quantity)/Sum(TOTAL &amp;lt;Market&amp;gt; Quantity), '##.##%'), Sum(Quantity))&lt;/P&gt;&lt;P&gt;Text: Num(Sum(Quantity), '#,###.') &amp;amp; Chr(10) &amp;amp; Num(Sum(Quantity)/Sum(TOTAL &amp;lt;Market&amp;gt; Quantity), '##.##%')&lt;/P&gt;&lt;P&gt;Num:&amp;nbsp;Sum(Quantity)&lt;/P&gt;</description>
    <pubDate>Thu, 23 Sep 2021 07:28:00 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2021-09-23T07:28:00Z</dc:date>
    <item>
      <title>Dual function and how it goes underneath</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838549#M1215105</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Could someone please describe what happened in this dual expression?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Dual(Num(Sum(Quantity), '#,###.') &amp;amp; Chr(10) &amp;amp; Num(Sum(Quantity)/Sum(TOTAL &amp;lt;Market&amp;gt; Quantity), '##.##%'), Sum(Quantity))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As far as I know, Dual creates both text and numeric value out of single field/variable, and structure looks like DUAL(text, numeric), however in this expression there are three sections:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Num(Sum(Quantity), '#,###.') -&amp;nbsp;&lt;/STRONG&gt;I guess its going to be first value, integer stored as a text&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(Sum(Quantity)/Sum(TOTAL &amp;lt;Market&amp;gt; Quantity), '##.##%') -&amp;nbsp;&lt;/STRONG&gt;this is going to be second value, numeric, percentage&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Quantity)) -&amp;nbsp;&lt;/STRONG&gt;I am completely blunt with this one.&amp;nbsp; This refers to let Y axis be sum of quantity? Just a blind guess.. and without this, the expression has an error. How one could know, it is necessary, can you share knowledge behind this?&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 07:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838549#M1215105</guid>
      <dc:creator>QlickySense</dc:creator>
      <dc:date>2021-09-23T07:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dual function and how it goes underneath</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838557#M1215106</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dual function, we need to pass 2 parameter , one is text and another one is num&lt;/P&gt;&lt;P&gt;Based on ur expression,&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Dual(Num(Sum(Quantity), '#,###.') &amp;amp; Chr(10) &amp;amp; Num(Sum(Quantity)/Sum(TOTAL &amp;lt;Market&amp;gt; Quantity), '##.##%'), Sum(Quantity))&lt;/P&gt;&lt;P&gt;Text: Num(Sum(Quantity), '#,###.') &amp;amp; Chr(10) &amp;amp; Num(Sum(Quantity)/Sum(TOTAL &amp;lt;Market&amp;gt; Quantity), '##.##%')&lt;/P&gt;&lt;P&gt;Num:&amp;nbsp;Sum(Quantity)&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 07:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838557#M1215106</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-09-23T07:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dual function and how it goes underneath</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838558#M1215107</link>
      <description>&lt;P&gt;It actually has two sections.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Dual(&lt;/STRONG&gt;&lt;FONT color="#FF00FF"&gt;Num(Sum(Quantity), '#,###.') &amp;amp; Chr(10) &amp;amp; Num(Sum(Quantity)/Sum(TOTAL &amp;lt;Market&amp;gt; Quantity), '##.##%')&lt;/FONT&gt;&lt;STRONG&gt;, &lt;/STRONG&gt;&lt;FONT color="#0000FF"&gt;Sum(Quantity)&lt;/FONT&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 07:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838558#M1215107</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-09-23T07:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dual function and how it goes underneath</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838562#M1215109</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does not evaluate three things?&lt;/P&gt;&lt;P&gt;I still dont get it . Lets assume in Quantity we have values of 3,2,1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Dual(&lt;/STRONG&gt;&lt;FONT color="#FF00FF"&gt;Num(Sum(Quantity), '#,###.')&amp;nbsp;&lt;FONT color="#FF0000"&gt; &lt;STRONG&gt;- GIVES 6.000.&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&amp;amp; Chr(10) &amp;amp; Num(Sum(Quantity)/Sum(TOTAL &amp;lt;Market&amp;gt; Quantity), '##.##%') &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;- GIVES XXX % (this is not mine expression, i didn't brought Market variable)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;FONT color="#0000FF"&gt;Sum(Quantity) &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;- GIVES 6&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I got 3 results from that query, suppose to get two. How its going?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 07:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838562#M1215109</guid>
      <dc:creator>QlickySense</dc:creator>
      <dc:date>2021-09-23T07:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dual function and how it goes underneath</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838564#M1215111</link>
      <description>&lt;P&gt;It does not evaluate three things?&lt;/P&gt;&lt;P&gt;I still dont get it . Lets assume in Quantity we have values of 3,2,1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Dual(&lt;/STRONG&gt;&lt;FONT color="#FF00FF"&gt;Num(Sum(Quantity), '#,###.')&amp;nbsp;&lt;FONT color="#FF0000"&gt; &lt;STRONG&gt;- GIVES 6.000.&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&amp;amp; Chr(10) &amp;amp; Num(Sum(Quantity)/Sum(TOTAL &amp;lt;Market&amp;gt; Quantity), '##.##%') &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;- GIVES XXX % (this is not mine expression, i didn't brought Market variable)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;FONT color="#0000FF"&gt;Sum(Quantity) &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;- GIVES 6&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I got 3 results from that query, suppose to get two. How its going?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 07:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838564#M1215111</guid>
      <dc:creator>QlickySense</dc:creator>
      <dc:date>2021-09-23T07:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dual function and how it goes underneath</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838582#M1215112</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;FYI:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum(Quantity), '#,###.') - gives 6.00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Num(Sum(Quantity)/Sum(TOTAL &amp;lt;Market&amp;gt; Quantity), '##.##%') - gives XX%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(Sum(Quantity), '#,###.')&amp;nbsp;&amp;amp; Chr(10) &amp;amp; Num(Sum(Quantity)/Sum(TOTAL &amp;lt;Market&amp;gt; Quantity), '##.##%')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gives 6.00 &amp;amp; XX% in text part&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End result for your expression is : Dual( 6.00 &amp;amp; XX%, 6)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 08:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838582#M1215112</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-09-23T08:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dual function and how it goes underneath</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838591#M1215116</link>
      <description>&lt;P&gt;You're right. What about the part highlighted in red? Without that this expression is wrong (i just changed variables to mine one)&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;=Dual(&lt;/STRONG&gt;Num(Sum(Quantity), '#,###.') &amp;amp; Chr(10) &amp;amp; Num(Sum(Quantity)/Sum(TOTAL &amp;lt;Market&amp;gt; Quantity), '##.##%')&lt;STRONG&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;Sum(Quantity)&lt;/FONT&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 09:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838591#M1215116</guid>
      <dc:creator>QlickySense</dc:creator>
      <dc:date>2021-09-23T09:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dual function and how it goes underneath</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838602#M1215117</link>
      <description>&lt;P&gt;I see a problem with your expression. The numerical value depends only on the Sum. The text depends on the Sum and the Total&amp;lt;Market&amp;gt;. Generally this won't work.&lt;/P&gt;&lt;P&gt;When creating duals, the following must be observed:&lt;/P&gt;&lt;P&gt;The relationship numerical value -&amp;gt; text value has to be unique. This means different texts cannot be assigned to the same numerical value.&lt;/P&gt;&lt;P&gt;On the other hand: The same text can be assigned to different numerical values.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;TEST1:&lt;BR /&gt;LOAD Dual(F1,F2) as Dual1 INLINE [&lt;BR /&gt;F1, F2&lt;BR /&gt;A, 1&lt;BR /&gt;B, 2&lt;BR /&gt;C, 3&lt;BR /&gt;D, 3&lt;BR /&gt;E, 3&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;TEST2:&lt;BR /&gt;LOAD Dual(F1,F2) as Dual2 INLINE [&lt;BR /&gt;F1, F2&lt;BR /&gt;A, 1&lt;BR /&gt;B, 2&lt;BR /&gt;C, 3&lt;BR /&gt;C, 4&lt;BR /&gt;C, 5&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The results:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cwolf_0-1632388821383.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62626i2563E15589AD4DFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cwolf_0-1632388821383.png" alt="cwolf_0-1632388821383.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 09:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838602#M1215117</guid>
      <dc:creator>cwolf</dc:creator>
      <dc:date>2021-09-23T09:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dual function and how it goes underneath</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838940#M1215137</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was expression from other thread&lt;/P&gt;&lt;P&gt;Mine expression is&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;DUAL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Num&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;(Var1&lt;/SPAN&gt;&lt;SPAN&gt;),'#.') &amp;amp; ' (' &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;Num&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Var1&lt;/SPAN&gt;&lt;SPAN&gt;)/&lt;/SPAN&gt;&lt;SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TOTAL&lt;/SPAN&gt; &lt;SPAN&gt;Var1&lt;/SPAN&gt;&lt;SPAN&gt;),'0.0%')&amp;amp;')',&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;count(Var1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and it works, but this count(Var1) at the end must be contained otherwise I got an error in the expression. I dont have any set analysis or other thing here. For me, where I close parenthesis so &amp;amp;')' should be finish of the expression, but its not and that's why this thread has been created&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Sep 2021 08:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-function-and-how-it-goes-underneath/m-p/1838940#M1215137</guid>
      <dc:creator>QlickySense</dc:creator>
      <dc:date>2021-09-24T08:03:16Z</dc:date>
    </item>
  </channel>
</rss>

