<?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 Needed a Correction in a syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Needed-a-Correction-in-a-syntax/m-p/1820239#M1213404</link>
    <description>&lt;P&gt;Hello All ,GM&lt;/P&gt;&lt;P&gt;I trying to sort Bucket Column based upon Bucket Date at backend (Scripting),the syntax I have written is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scripting.PNG" style="width: 586px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58138iDBA7E6AD5007CF47/image-size/large?v=v2&amp;amp;px=999" role="button" title="Scripting.PNG" alt="Scripting.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dual(Bucket,num(date(Timestamp#(Bucket_Date, 'MM/DD/YYYY hh:mm:ss'), 'YYYY/MM/DD' ))) as [Bucket],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;output&lt;STRONG&gt; :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sorting.PNG" style="width: 494px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58137iCDE1930EDA86827E/image-dimensions/494x219?v=v2" width="494" height="219" role="button" title="Sorting.PNG" alt="Sorting.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we observe the above table the Values in the &lt;STRONG&gt;Bucket&lt;/STRONG&gt;&amp;nbsp; Column(3rd) suppose to be as same as the &lt;STRONG&gt;test_Bucket&lt;/STRONG&gt; column but what I am getting is wrong&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest what change do I need to do in the dual Syntax or can we sort the bucket with any other syntaxs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jul 2021 05:01:56 GMT</pubDate>
    <dc:creator>kunkumnaveen</dc:creator>
    <dc:date>2021-07-07T05:01:56Z</dc:date>
    <item>
      <title>Needed a Correction in a syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Needed-a-Correction-in-a-syntax/m-p/1820239#M1213404</link>
      <description>&lt;P&gt;Hello All ,GM&lt;/P&gt;&lt;P&gt;I trying to sort Bucket Column based upon Bucket Date at backend (Scripting),the syntax I have written is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scripting.PNG" style="width: 586px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58138iDBA7E6AD5007CF47/image-size/large?v=v2&amp;amp;px=999" role="button" title="Scripting.PNG" alt="Scripting.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dual(Bucket,num(date(Timestamp#(Bucket_Date, 'MM/DD/YYYY hh:mm:ss'), 'YYYY/MM/DD' ))) as [Bucket],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;output&lt;STRONG&gt; :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sorting.PNG" style="width: 494px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58137iCDE1930EDA86827E/image-dimensions/494x219?v=v2" width="494" height="219" role="button" title="Sorting.PNG" alt="Sorting.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we observe the above table the Values in the &lt;STRONG&gt;Bucket&lt;/STRONG&gt;&amp;nbsp; Column(3rd) suppose to be as same as the &lt;STRONG&gt;test_Bucket&lt;/STRONG&gt; column but what I am getting is wrong&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest what change do I need to do in the dual Syntax or can we sort the bucket with any other syntaxs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 05:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Needed-a-Correction-in-a-syntax/m-p/1820239#M1213404</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2021-07-07T05:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Needed a Correction in a syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Needed-a-Correction-in-a-syntax/m-p/1820249#M1213407</link>
      <description>&lt;P&gt;I don't see any issue with the syntax , please check on the expression results , I feel it is giving he null/blank output&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 05:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Needed-a-Correction-in-a-syntax/m-p/1820249#M1213407</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2021-07-07T05:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Needed a Correction in a syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Needed-a-Correction-in-a-syntax/m-p/1820372#M1213424</link>
      <description>&lt;P&gt;BucketDate needs to be to correspond with the multiple values from Bucket - but this doesn't happens here. Regarding to your screenshot you have two different dates and therefore you get two different string-values from Bucket.&lt;/P&gt;&lt;P&gt;This means you couldn't use BucketDate as numeric value within the dual(). Maybe you could use another field and/or creating with recno(), rowno() and/or autonumber() in any combination an unqiue field-value. Another approach might be to load the relevant tables and/or fields-combinations with your wanted sort-order.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 12:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Needed-a-Correction-in-a-syntax/m-p/1820372#M1213424</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-07-07T12:11:59Z</dc:date>
    </item>
  </channel>
</rss>

