<?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 Conditional Formatting with common calendar in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Conditional-Formatting-with-common-calendar/m-p/1601319#M44498</link>
    <description>&lt;P&gt;Hi All.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a app I am converting from using a Gregorian calendar to a Financial calendar. I am using the Common Calendar concept by Rob Wunderlich. So far everything has gone very well, until reaching one object where I need to highlight where certain Vehicle Licences need to be highlighted, based on their expiry date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As part of the Common Calendar I have a DateType of 'Veh_Lic'. When I select the DateType field, 'Veh_Lic', the color and text conditions show up correctly. If I do not select the&amp;nbsp;'DateType' 'Veh_Lic', all the Expiry Flag rows show as OK.&amp;nbsp;I would like to have the 'DateType' 'Veh_Lic' built into the expression itself so the user does not need to make a selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further info: the field&amp;nbsp;[_BaseMonth] is created in the loadscript and is made up from&amp;nbsp;Year(Today())*12 + Month(Today()). When I have a table the Months and [_BaseMonth] do correspond.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The current expression for the text condition is below. This expression still works in the&amp;nbsp;Gregorian version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"=if(AGGR(Year(Today())*12 + Month(Today()),[Registration Number]) = AGGR([_BaseMonth],[Registration Number]), 'Current Month',&lt;BR /&gt;if((AGGR(Year(Today())*12 + Month(Today()),[Registration Number]))+1 = AGGR([_BaseMonth],[Registration Number]), 'Next Month',&lt;BR /&gt;if(AGGR([_BaseMonth],[Registration Number]) &amp;lt; AGGR(Year(Today())*12 + Month(Today()),[Registration Number]), 'Expired', 'OK')))"&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried placing the {&amp;lt;DateType={'Veh_Lic'}&amp;gt;} in various places, without success. Please could someone assist with this? The screenshot shows the color and text condition working when the 'DateType' 'Veh_Lic' is selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Conditional.JPG" style="width: 299px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/15276i8971B50D5CC52D77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Conditional.JPG" alt="Conditional.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2019 10:59:01 GMT</pubDate>
    <dc:creator>johngouws</dc:creator>
    <dc:date>2019-07-11T10:59:01Z</dc:date>
    <item>
      <title>Conditional Formatting with common calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Formatting-with-common-calendar/m-p/1601319#M44498</link>
      <description>&lt;P&gt;Hi All.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a app I am converting from using a Gregorian calendar to a Financial calendar. I am using the Common Calendar concept by Rob Wunderlich. So far everything has gone very well, until reaching one object where I need to highlight where certain Vehicle Licences need to be highlighted, based on their expiry date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As part of the Common Calendar I have a DateType of 'Veh_Lic'. When I select the DateType field, 'Veh_Lic', the color and text conditions show up correctly. If I do not select the&amp;nbsp;'DateType' 'Veh_Lic', all the Expiry Flag rows show as OK.&amp;nbsp;I would like to have the 'DateType' 'Veh_Lic' built into the expression itself so the user does not need to make a selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further info: the field&amp;nbsp;[_BaseMonth] is created in the loadscript and is made up from&amp;nbsp;Year(Today())*12 + Month(Today()). When I have a table the Months and [_BaseMonth] do correspond.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The current expression for the text condition is below. This expression still works in the&amp;nbsp;Gregorian version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"=if(AGGR(Year(Today())*12 + Month(Today()),[Registration Number]) = AGGR([_BaseMonth],[Registration Number]), 'Current Month',&lt;BR /&gt;if((AGGR(Year(Today())*12 + Month(Today()),[Registration Number]))+1 = AGGR([_BaseMonth],[Registration Number]), 'Next Month',&lt;BR /&gt;if(AGGR([_BaseMonth],[Registration Number]) &amp;lt; AGGR(Year(Today())*12 + Month(Today()),[Registration Number]), 'Expired', 'OK')))"&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried placing the {&amp;lt;DateType={'Veh_Lic'}&amp;gt;} in various places, without success. Please could someone assist with this? The screenshot shows the color and text condition working when the 'DateType' 'Veh_Lic' is selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Conditional.JPG" style="width: 299px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/15276i8971B50D5CC52D77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Conditional.JPG" alt="Conditional.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 10:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Formatting-with-common-calendar/m-p/1601319#M44498</guid>
      <dc:creator>johngouws</dc:creator>
      <dc:date>2019-07-11T10:59:01Z</dc:date>
    </item>
  </channel>
</rss>

