<?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: Creating a new column in the script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777707#M60348</link>
    <description>&lt;P&gt;You can fix this bug by replace the expression with this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;week(YourDateTimeField)&amp;amp;'/'&amp;amp;Year(WeekStart(YourDateTimeField)) as WeekYear&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 27 Jan 2021 12:26:49 GMT</pubDate>
    <dc:creator>micheledenardi</dc:creator>
    <dc:date>2021-01-27T12:26:49Z</dc:date>
    <item>
      <title>Creating a new column in the script</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777667#M60339</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a large data set in which a column with a date exists (format: dd.mm.yyyy). Now I need to create an extra column which shows the respective calendar week and year. I want to implement that in the script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone can help me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777667#M60339</guid>
      <dc:creator>jan2</dc:creator>
      <dc:date>2024-11-16T17:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column in the script</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777678#M60341</link>
      <description>&lt;P&gt;Use &lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/DateAndTimeFunctions/week.htm" target="_self"&gt;Week()&lt;/A&gt; and &lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/DateAndTimeFunctions/year.htm" target="_self"&gt;Year()&lt;/A&gt; functions to build something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Load *,
week(YourDateTimeField)&amp;amp;'/'&amp;amp;Year(YourDateTimeField) as WeekYear
From YourDataSource;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Jan 2021 10:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777678#M60341</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2021-01-27T10:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column in the script</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777689#M60344</link>
      <description>&lt;P&gt;Thanks, is that also possible when a time is included? Format: "yyyy-mm-dd hh-mm-sec" as you see in the attachment?&lt;/P&gt;&lt;P&gt;Or is there another command that I can use?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 12:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777689#M60344</guid>
      <dc:creator>jan2</dc:creator>
      <dc:date>2021-01-27T12:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column in the script</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777694#M60346</link>
      <description>&lt;P&gt;Yes, it works in that case as well:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-01-27 13_06_46-test - My new sheet (47) _ Sheet - Qlik Sense.png" style="width: 483px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47829i9BD974F551DCB59F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-01-27 13_06_46-test - My new sheet (47) _ Sheet - Qlik Sense.png" alt="2021-01-27 13_06_46-test - My new sheet (47) _ Sheet - Qlik Sense.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 12:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777694#M60346</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2021-01-27T12:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column in the script</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777704#M60347</link>
      <description>&lt;P&gt;It worked, thanks. But that leads me to the next problem. The first three days of 2021 are labeled as calender week 53. So if I combine week() and year () I get 53/2021. Any idea how I could fix that?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 12:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777704#M60347</guid>
      <dc:creator>jan2</dc:creator>
      <dc:date>2021-01-27T12:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column in the script</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777707#M60348</link>
      <description>&lt;P&gt;You can fix this bug by replace the expression with this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;week(YourDateTimeField)&amp;amp;'/'&amp;amp;Year(WeekStart(YourDateTimeField)) as WeekYear&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Jan 2021 12:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777707#M60348</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2021-01-27T12:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column in the script</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777713#M60349</link>
      <description>&lt;P&gt;Alternatively you can use &lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/DateAndTimeFunctions/weekname.htm" target="_self"&gt;WeekName()&lt;/A&gt; to get week number e year in YYYY/WW format:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WeekName(YourDateTimeField) as YearWeek&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Jan 2021 12:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777713#M60349</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2021-01-27T12:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column in the script</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777715#M60350</link>
      <description>&lt;P&gt;If I try this the first days of 2020 are displayed as 2019.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 12:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777715#M60350</guid>
      <dc:creator>jan2</dc:creator>
      <dc:date>2021-01-27T12:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column in the script</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777726#M60352</link>
      <description>&lt;P&gt;please post some example data&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 13:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1777726#M60352</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2021-01-27T13:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column in the script</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1778020#M60387</link>
      <description>&lt;P&gt;At what place do I have to put it in the script? At the moment it looks like:&lt;/P&gt;&lt;P&gt;[Table Name]:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Data1,&lt;/P&gt;&lt;P&gt;Data2,&lt;/P&gt;&lt;P&gt;Data3&lt;/P&gt;&lt;P&gt;From[Data Source]&lt;/P&gt;&lt;P&gt;CONCATENATE (Table Name)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Data 1,&lt;/P&gt;&lt;P&gt;Data 2,&lt;/P&gt;&lt;P&gt;Data 3&lt;/P&gt;&lt;P&gt;From[Data Source]&lt;/P&gt;&lt;P&gt;Store[]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 09:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1778020#M60387</guid>
      <dc:creator>jan2</dc:creator>
      <dc:date>2021-01-28T09:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new column in the script</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1778022#M60388</link>
      <description>&lt;LI-CODE lang="markup"&gt;[Table Name]:
Load
Data1,
WeekName(Data1) as [YearWeek Data1],
Data2,
WeekName(Data2) as [YearWeek Data2],
Data3,
WeekName(Data3) as [YearWeek Data3]
From[Data Source]

CONCATENATE (Table Name)
Load
Data 1,
WeekName([Data 1]) as [YearWeek Data 1],
Data 2,
WeekName([Data 2]) as [YearWeek Data 2],
Data 3,
WeekName([Data 3]) as [YearWeek Data 3]
From[Data Source]

Store[]&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Jan 2021 09:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-new-column-in-the-script/m-p/1778022#M60388</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2021-01-28T09:57:38Z</dc:date>
    </item>
  </channel>
</rss>

