<?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: Text Object function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118759#M911111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=If(Year(Today()) = [Period Year] and MonthStart(Today()) = MonthStart(Date#([Period Name], 'MMM-YYYY')), [Period Name])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2016 19:06:14 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-06-02T19:06:14Z</dc:date>
    <item>
      <title>Text Object function</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118756#M911108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have a requirement where I need to display fiscal month period in a text Object. I have tried the following expression in list box and it works perfectly but the same expression fails to work in the Text Box. The list box is displaying a single value and I need to display the same value in Text Object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TODAY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Period Year]&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()), 'MMM-YY'))=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Period Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Period Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;How should I write this expression in the Text Object so It can bring back the fiscal period name?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;ZQ&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118756#M911108</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object function</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118757#M911109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doesn't look anything wrong, but may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Year(Today()) = [Period Year] and MonthStart(Today()) = [Period Name], [Period Name])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 17:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118757#M911109</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-02T17:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object function</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118758#M911110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny T,&lt;BR /&gt;Period Name column has a format of Jan-16, Feb-16, Mar-16. This is why I was formatting it as MMM-YY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;ZQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 18:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118758#M911110</guid>
      <dc:creator />
      <dc:date>2016-06-02T18:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object function</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118759#M911111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=If(Year(Today()) = [Period Year] and MonthStart(Today()) = MonthStart(Date#([Period Name], 'MMM-YYYY')), [Period Name])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 19:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118759#M911111</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-02T19:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object function</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118760#M911112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It didn't work. All I get is "-" in the text box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 19:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118760#M911112</guid>
      <dc:creator />
      <dc:date>2016-06-02T19:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object function</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118761#M911113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That expression is correct but it won't work unless you select a value from Period Year and Period Name. Looking into your expression I guess you want to show the current Period, said in Qlikview words the max period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So You can try the following:&lt;/P&gt;&lt;P&gt;=Upper(Date(MonthStart(Today()), 'MMM-YY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if you want to show based on the PeriodName field selection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount([Period Name])=1,[Period Name])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 19:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118761#M911113</guid>
      <dc:creator>CarlosAMonroy</dc:creator>
      <dc:date>2016-06-02T19:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object function</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118762#M911114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Carlos for the expression but it didn't work either. Let me provide you with a bigger picture. I have a requirement where I have a [Start Date] and [End Date] for each fiscal period. if today() date falls between [Start Date]and [End Date] then give me [Period Name].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 20:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118762#M911114</guid>
      <dc:creator />
      <dc:date>2016-06-02T20:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object function</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118763#M911115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;as Carlos said, your expression doesn't work because it needs a value to be selected on that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be achieved with Set analysis, like this:&lt;/P&gt;&lt;P&gt;=MAX( {&amp;lt;[Period Year]={"$(=YEAR(TODAY(1)))"},[Period Name]={"$(=MONTH(TODAY(1)))"}&amp;gt;} [Period Name])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will show the period if you have a value for the current period, kind of what you are asking because if you want to show current period i would go with Carlos option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helps.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 20:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118763#M911115</guid>
      <dc:creator>santiago_respane</dc:creator>
      <dc:date>2016-06-02T20:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object function</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118764#M911116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to look at?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 01:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118764#M911116</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-03T01:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object function</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118765#M911117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny T,&lt;/P&gt;&lt;P&gt;I have attached the file. I am trying to see if the current date falls between start and end date then give me Period Name. It is working in List Box but it won't work on the Text Box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;ZQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 13:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118765#M911117</guid>
      <dc:creator />
      <dc:date>2016-06-03T13:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object function</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118766#M911118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Only(if(Year(TODAY())=[Period Year]AND Upper(Date(MonthStart(Today()), 'MMM-YY'))=[Period Name],[Period Name]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 13:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118766#M911118</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-03T13:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Text Object function</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118767#M911119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zeeshan,&lt;/P&gt;&lt;P&gt;The simplest way is to create a spread sheet of your beginning and ending dates for each Fiscal Period&lt;/P&gt;&lt;P&gt;then do an interval match in the load script to get today's period.&amp;nbsp; Load Today's actual date in a field called TodaysDate.&lt;/P&gt;&lt;P&gt;You will use this simple logic in every QVW you ever make, because you will match an invoice date or a transaction date; any date - to get which period it was transacted in or when it is due.&amp;nbsp; These become dimensions in your QVW's for making pivot tables etc.&amp;nbsp; Since we actually have 3 year types, Model Year, Fiscal Year and Marketing Year that all begin and end in different months, this is the easiest way to define them.&amp;nbsp; I use the Month or Year ID field for doing rolling months expressions and Year/over/Year comparisons.&amp;nbsp; I name my Fiscal Periods in the spread sheet FP01, FP02... so they sort in order because the month name alpha sort puts them all awry.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//GetTodaysDate&lt;/P&gt;&lt;P&gt;TodaysDate = Today()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CalendarMatchOnDate:&lt;/P&gt;&lt;P&gt;IntervalMatch(TodaysDate)&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; Beginning, EndDate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\..\..\Common\SourceData-Excel\CompanyCalendar.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Beg End Dates]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CompanyCalendar:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; Beginning, &lt;/P&gt;&lt;P&gt;&amp;nbsp; EndDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp; MonthName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; FiscalPeriod,&lt;/P&gt;&lt;P&gt;&amp;nbsp; FiscalYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp; FiscalQtr,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WeekOfMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WeekOfFiscalYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp; MonthID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; YearID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\..\..\Common\SourceData-Excel\CompanyCalendar.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Beg End Dates]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 14:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Object-function/m-p/1118767#M911119</guid>
      <dc:creator>suepenick</dc:creator>
      <dc:date>2016-06-03T14:24:25Z</dc:date>
    </item>
  </channel>
</rss>

