<?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: Can we create Date Field from Month and Year and also can we generate fiscal calendar based on t in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Can-we-create-Date-Field-from-Month-and-Year-and-also-can-we/m-p/1670826#M50708</link>
    <description>&lt;P&gt;Hi Kashyap,&lt;/P&gt;&lt;P&gt;I have already generated date field using below expression:-&lt;/P&gt;&lt;P&gt;Date(MakeDate(years, months, 1), 'MMM-YYYY') as Date, this gives me date as &lt;STRONG&gt;2010-Jan&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I have linked this date field with master calendar, but when I calculate YTD expression, it's giving me blank values.&lt;/P&gt;&lt;P&gt;I am using below expression to calculate YTD, please guide me where I am doing wrong, I think it's not able to recognize the date format, as format is in&amp;nbsp;'MMM-YYYY' only.&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;fYear,FMonth,Date={"&amp;gt;=$(=YearStart(max(Date),0,4))&amp;lt;$(= addyears(max(Date), 0,4))"}&amp;gt;}qty)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2020 11:14:46 GMT</pubDate>
    <dc:creator>abc_18</dc:creator>
    <dc:date>2020-01-30T11:14:46Z</dc:date>
    <item>
      <title>Can we create Date Field from Month and Year and also can we generate fiscal calendar based on that.</title>
      <link>https://community.qlik.com/t5/App-Development/Can-we-create-Date-Field-from-Month-and-Year-and-also-can-we/m-p/1670718#M50695</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How do I create a Date Field if i have Data for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have&amp;nbsp;created&amp;nbsp;a date filed like&amp;nbsp;below:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Date#(years &amp;amp; '-' &amp;amp; months, 'YYYY-MMM') as Date_Test, but I have to generate&amp;nbsp;fiscal&amp;nbsp;calendar based on this date field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried to link this date field to my master calendar, but for Fyear, Fmonth I am getting blank values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Script for master cal:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Set vFM = 4 ; // First month of fiscal year&lt;BR /&gt;Calendar:&lt;BR /&gt;Load Dual(fYear-1 &amp;amp;'/'&amp;amp; fYear, fYear) as FYear, // Dual fiscal year&lt;BR /&gt;Dual(Month, fMonth) as FMonth, // Dual fiscal month&lt;BR /&gt;*;&lt;BR /&gt;Load Year + If(Month&amp;gt;=$(vFM), 1, 0) as fYear, // Numeric fiscal year&lt;BR /&gt;Mod(Month-$(vFM), 12)+1 as fMonth, // Numeric fiscal month&lt;BR /&gt;*;&lt;BR /&gt;Load Year(Date_Test) as Year, // Your standard master calendar&lt;BR /&gt;Month(Date_Test) as Month,&lt;BR /&gt;num(Month(Date_Test)) as monthno,&lt;BR /&gt;Date(Monthstart(Date_Test), 'YYYY-MMM') as MonthYear,&lt;BR /&gt;Date_Test&lt;BR /&gt;Resident XYZ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-we-create-Date-Field-from-Month-and-Year-and-also-can-we/m-p/1670718#M50695</guid>
      <dc:creator>abc_18</dc:creator>
      <dc:date>2024-11-16T03:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create Date Field from Month and Year and also can we generate fiscal calendar based on t</title>
      <link>https://community.qlik.com/t5/App-Development/Can-we-create-Date-Field-from-Month-and-Year-and-also-can-we/m-p/1670785#M50699</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;to create a date you can use this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DateDate#(years &amp;amp; '-' &amp;amp; months, 'YYYY-MMM'),'DD/MM/YYYY') as Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the output will be given as only 1st day of every month like 01/01/2019,01/02/2019,01/03/2019....etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;for fiscal calendar go through this link&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-QlikView/Different-fiscal-year-from-calender-year/td-p/300654" target="_blank"&gt;https://community.qlik.com/t5/New-to-QlikView/Different-fiscal-year-from-calender-year/td-p/300654&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 09:15:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-we-create-Date-Field-from-Month-and-Year-and-also-can-we/m-p/1670785#M50699</guid>
      <dc:creator>Kashyap_R</dc:creator>
      <dc:date>2020-01-30T09:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create Date Field from Month and Year and also can we generate fiscal calendar based on t</title>
      <link>https://community.qlik.com/t5/App-Development/Can-we-create-Date-Field-from-Month-and-Year-and-also-can-we/m-p/1670826#M50708</link>
      <description>&lt;P&gt;Hi Kashyap,&lt;/P&gt;&lt;P&gt;I have already generated date field using below expression:-&lt;/P&gt;&lt;P&gt;Date(MakeDate(years, months, 1), 'MMM-YYYY') as Date, this gives me date as &lt;STRONG&gt;2010-Jan&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I have linked this date field with master calendar, but when I calculate YTD expression, it's giving me blank values.&lt;/P&gt;&lt;P&gt;I am using below expression to calculate YTD, please guide me where I am doing wrong, I think it's not able to recognize the date format, as format is in&amp;nbsp;'MMM-YYYY' only.&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;fYear,FMonth,Date={"&amp;gt;=$(=YearStart(max(Date),0,4))&amp;lt;$(= addyears(max(Date), 0,4))"}&amp;gt;}qty)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 11:14:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-we-create-Date-Field-from-Month-and-Year-and-also-can-we/m-p/1670826#M50708</guid>
      <dc:creator>abc_18</dc:creator>
      <dc:date>2020-01-30T11:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create Date Field from Month and Year and also can we generate fiscal calendar based on t</title>
      <link>https://community.qlik.com/t5/App-Development/Can-we-create-Date-Field-from-Month-and-Year-and-also-can-we/m-p/1670830#M50710</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try to maintain the same date format for both the master calendar date and your table date column.&lt;/P&gt;&lt;P&gt;2010 - Jan is not the date format it is YYYY - MMM format instead you can use the expression that is mentioned in the above comment that I have posted or you can use yours with some changes as below&lt;/P&gt;&lt;P&gt;Date(MakeDate(years, months,01)) as Date&lt;/P&gt;&lt;P&gt;Hope this Helps&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 10:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-we-create-Date-Field-from-Month-and-Year-and-also-can-we/m-p/1670830#M50710</guid>
      <dc:creator>Kashyap_R</dc:creator>
      <dc:date>2020-01-31T10:02:14Z</dc:date>
    </item>
  </channel>
</rss>

