<?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: Weekly Metric in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32942#M781361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might be able to, but I don't really know your setup... would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Mar 2018 15:18:45 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-03-29T15:18:45Z</dc:date>
    <item>
      <title>Weekly Metric</title>
      <link>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32937#M781356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;Hi, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;I am working with a metric called trends that is on a weekly level, and others that are daily. The trends metric is pulled every Sunday which is the week start. Therefore, it results in null values for the rest of the week if other metrics are shown.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;For example,&lt;/SPAN&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;Keyword&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;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;Trends&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;Impressions&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Clicks&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3/25/18&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;55&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;40&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3/26/18&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;80&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3/27/18&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;60&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3/28/18&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;55&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3/29/18&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;I want the table to show 55 for the rest of the week. I was thinking of creating a flag to take the week start trend value. Any thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Arial; color: #000000;"&gt;Thanks!&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/Weekly-Metric/m-p/32937#M781356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Metric</title>
      <link>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32938#M781357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this something you are looking to address in the script or front end of your app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 14:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32938#M781357</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-29T14:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Metric</title>
      <link>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32939#M781358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prefferably in the script but front end on the app works just as fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 14:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32939#M781358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-29T14:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Metric</title>
      <link>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32940#M781359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Keyword = Previous(Keyword) and Len(Trim(Trend)) = 0, Peek('New_Trend'), Trend) as New_Trend&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By Keyword, Date;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table ...;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 14:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32940#M781359</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-29T14:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Metric</title>
      <link>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32941#M781360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried this on the script and it's still showing the same nulls as the table above. Is there something I could use on the front of the app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 15:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32941#M781360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-29T15:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Metric</title>
      <link>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32942#M781361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might be able to, but I don't really know your setup... would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 15:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32942#M781361</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-29T15:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Metric</title>
      <link>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32943#M781362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually the script worked just fine! Thanks so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other related question, so what if I have another trends table that pulls the daily value only for the past 30 days and we'll call it daily_trends table. The weekly_trends table above provides a weekly value but it goes back 5 years. What if I wanted to use the trends value from the daily_trends for the last 30 days but then use the trend value from weekly_trend table beyond 30 days. Would I just need to concatenate the two tables and use the same if statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;daily_trends:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;keyword, date, trend_value&lt;/P&gt;&lt;P&gt;.. , .. , ..&lt;/P&gt;&lt;P&gt;A, 3/19/2018, 76&lt;/P&gt;&lt;P&gt;A, 3/20/2018, 25&lt;/P&gt;&lt;P&gt;A, 3/21/2018, 55&lt;/P&gt;&lt;P&gt;A, 3/22/2018, 65&lt;/P&gt;&lt;P&gt;A, 3/23/2018, 50&lt;/P&gt;&lt;P&gt;A, 3/24/2018, 40&lt;/P&gt;&lt;P&gt;A, 3/25/2018, 30&lt;/P&gt;&lt;P&gt;A, 3/26/2018, 50&lt;/P&gt;&lt;P&gt;A, 3/27/2018, 35&lt;/P&gt;&lt;P&gt;A, 3/28/2018, 70&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;weekly_trends:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [ &lt;/P&gt;&lt;P&gt;keyword, date, trend_value&lt;/P&gt;&lt;P&gt;A, 2/25/2018, 60&lt;/P&gt;&lt;P&gt;A, 2/18/2018, 35&lt;/P&gt;&lt;P&gt;A, 2/11/2018, 25&lt;/P&gt;&lt;P&gt;A, 2/4/2018, 80&lt;/P&gt;&lt;P&gt;A, 1/28/2018, 15&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 16:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32943#M781362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-29T16:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Weekly Metric</title>
      <link>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32944#M781363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe so....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 16:08:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weekly-Metric/m-p/32944#M781363</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-29T16:08:56Z</dc:date>
    </item>
  </channel>
</rss>

