<?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: How to highlight or show only New data based on Time Frame (month) in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-highlight-or-show-only-New-data-based-on-Time-Frame-month/m-p/82661#M17536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suggest you would want to do this in the colour condition for the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To work out the spend before the latest month you would need to use a TOTAL function, which totals ignoring dimensions in the chart, and set analysis to exclude the current month.&amp;nbsp; You will need a Month field in the data, as well as a date (Created in the load script with &lt;STRONG&gt;Date(MonthStart(Date), 'MMM-YY') as Month,&lt;/STRONG&gt; ) to use with the Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The colour condition would then be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(sum(TOTAL &amp;lt;[Advertiser Name]&amp;gt; {&amp;lt;Month={"&amp;lt;=$(=Date(Max(Month), 'MMM-YY')"}&amp;gt;}Spend) &amp;gt; 0, rgb(160,220,160), null())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Happy to explain what any of the component parts of that expression are doing if it is not clear, or if it doesn't work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2018 19:34:44 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2018-05-24T19:34:44Z</dc:date>
    <item>
      <title>How to highlight or show only New data based on Time Frame (month)</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-highlight-or-show-only-New-data-based-on-Time-Frame-month/m-p/82657#M17532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another specific question, I'm hoping to figure out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set of data going back to the start of 2017 by day.&amp;nbsp; I track and measure a lot of things at a MTD level though as well.&amp;nbsp; What I'm wanting to do, is create a visualization wherein it will basically Highlight or only display New Accounts based on certain parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a simplified layout of my data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Advertiser Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Spend&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4/30/2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Company A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;99.40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;4/30/2018&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Company B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;107.65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5/1/2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Company A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;253.45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5/1/2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Company B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;110.11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5/1/2018&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Company C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;74.32&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in this small excerpt, basically, lets assume that Company C is "New" in May.&amp;nbsp; We know this, because Company C doesn't have any spend in April (assuming the sample data was expanded).&amp;nbsp; Basically, I'm trying to thin of a formula that will basically compare Current Month spend and really only report back the Advertiser Name IF that spend of Current month is greater than if that Advertiser had any spend previous month.&amp;nbsp; If that advertiser had even $1.00 spend in Previous Month, I would not want to highlight that it's new, but if there was No spend in previous month, I'd like to be able to show visually, and quickly, what would be considered a New Account for the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this makes sense, and I'm happy to provide any additional detail.&amp;nbsp; Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 18:18:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-highlight-or-show-only-New-data-based-on-Time-Frame-month/m-p/82657#M17532</guid>
      <dc:creator>jlakehivewyre</dc:creator>
      <dc:date>2018-05-23T18:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight or show only New data based on Time Frame (month)</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-highlight-or-show-only-New-data-based-on-Time-Frame-month/m-p/82658#M17533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been trying to think of ways to take&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if"Sum of Current Month" &amp;gt;0, "Sum of Last Month" =0, then output "Advertiser Name"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically reading it as if Current Month Revenue is Greater than 0 and the Sum of Last Month = 0, output the 'Advertiser Name' Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No Luck so far getting the syntax right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 22:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-highlight-or-show-only-New-data-based-on-Time-Frame-month/m-p/82658#M17533</guid>
      <dc:creator>jlakehivewyre</dc:creator>
      <dc:date>2018-05-23T22:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight or show only New data based on Time Frame (month)</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-highlight-or-show-only-New-data-based-on-Time-Frame-month/m-p/82659#M17534</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;Dimension: &lt;STRONG&gt;Advertiser Name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Exp: &lt;STRONG&gt;Sum({&amp;lt;[Advertiser Name]={"=count( [Advertiser Name])=1"}&amp;gt;}Spend)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you want to retrieve only latest month related then you can use below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Exp: &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Sum({&amp;lt;[Advertiser Name]={"=count( [Advertiser Name])=1"}, Month={$(=max(Month) )}&amp;gt;}Spend)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 04:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-highlight-or-show-only-New-data-based-on-Time-Frame-month/m-p/82659#M17534</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2018-05-24T04:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight or show only New data based on Time Frame (month)</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-highlight-or-show-only-New-data-based-on-Time-Frame-month/m-p/82660#M17535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for that - though I'm not certain if you are meaning to use the Dimension of Advertiser Name and then plug the Expression into the same Field?&amp;nbsp; Or does the Expression need to go into the Measure?&amp;nbsp; I have tried both combination and not able to get my desired output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 18:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-highlight-or-show-only-New-data-based-on-Time-Frame-month/m-p/82660#M17535</guid>
      <dc:creator>jlakehivewyre</dc:creator>
      <dc:date>2018-05-24T18:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight or show only New data based on Time Frame (month)</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-highlight-or-show-only-New-data-based-on-Time-Frame-month/m-p/82661#M17536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suggest you would want to do this in the colour condition for the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To work out the spend before the latest month you would need to use a TOTAL function, which totals ignoring dimensions in the chart, and set analysis to exclude the current month.&amp;nbsp; You will need a Month field in the data, as well as a date (Created in the load script with &lt;STRONG&gt;Date(MonthStart(Date), 'MMM-YY') as Month,&lt;/STRONG&gt; ) to use with the Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The colour condition would then be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(sum(TOTAL &amp;lt;[Advertiser Name]&amp;gt; {&amp;lt;Month={"&amp;lt;=$(=Date(Max(Month), 'MMM-YY')"}&amp;gt;}Spend) &amp;gt; 0, rgb(160,220,160), null())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Happy to explain what any of the component parts of that expression are doing if it is not clear, or if it doesn't work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 19:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-highlight-or-show-only-New-data-based-on-Time-Frame-month/m-p/82661#M17536</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2018-05-24T19:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight or show only New data based on Time Frame (month)</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-highlight-or-show-only-New-data-based-on-Time-Frame-month/m-p/82662#M17537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve,&amp;nbsp; I'm finally getting a chance to circle back to this, and I'm unable to get it to work.&amp;nbsp; I think the critical piece I may be confused on is the Month Field in the data (I do have the month in there as a MMM-YY format).&amp;nbsp; But I tried the color condition, and it's not yielding any results in the background colors.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attempting to do this as a Table, wherein I could ultimately sort or ignore those that aren't matching the correct expression.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could review again, and let me know what more I can share for you, I'd greatly appreciate it.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 17:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-highlight-or-show-only-New-data-based-on-Time-Frame-month/m-p/82662#M17537</guid>
      <dc:creator>jlakehivewyre</dc:creator>
      <dc:date>2018-06-25T17:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight or show only New data based on Time Frame (month)</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-highlight-or-show-only-New-data-based-on-Time-Frame-month/m-p/82663#M17538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's a couple of glitches in the code I posted, it should have a less than, rather than less than or equal and there was a missing bracket in the Date dollar expansion. So, it should have been:&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(sum(TOTAL &amp;lt;[Advertiser Name]&amp;gt; {&amp;lt;Month={"&amp;lt;$(=Date(Max(Month), 'MMM-YY'))"}&amp;gt;}Spend) &amp;gt; 0, rgb(160,220,160), null())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing to do is to put the constituent parts of the colour expression as measures in your table, to see if they work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the colour and null values to 0 and 1 and add this as another expression:&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(sum(TOTAL &amp;lt;[Advertiser Name]&amp;gt; {&amp;lt;Month={"&amp;lt;$(=Date(Max(Month), 'MMM-YY'))"}&amp;gt;}Spend) &amp;gt; 0, 1, 0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then add a column for spend before current month:&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;sum(TOTAL &amp;lt;[Advertiser Name]&amp;gt; {&amp;lt;Month={"&amp;lt;$(=Date(Max(Month), 'MMM-YY'))"}&amp;gt;}Spend) &lt;/STRONG&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;&lt;BR /&gt;&lt;/STRONG&gt;And another expression for max month (this will be the same for all rows):&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;$(=Date(Max(Month), 'MMM-YY'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By checking the constituent parts of the expression you should hopefully be able to work out what is going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 23:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-highlight-or-show-only-New-data-based-on-Time-Frame-month/m-p/82663#M17538</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2018-06-25T23:14:48Z</dc:date>
    </item>
  </channel>
</rss>

