<?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 Hi Community in Data Movement &amp; Streaming</title>
    <link>https://community.qlik.com/t5/Data-Movement-Streaming/Hi-Community/m-p/2549118#M3655</link>
    <description>&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" tabindex="-1" role="text" aria-label="Texto traduzido: Hello, I'm trying to create a line chart by week and average number of days. Using the `week` (field), I can get the weeks of the year (from 1 to 52), but I want to create a line chart that shows only the current month and its four weeks (1, 2, 3, 4, and 5).

I've tested some scripts, but none worked because they consider the average of the week numbers from previous years.

Does anyone have any idea how to solve this, either in the data loading script or in the chart itself?" data-ved="2ahUKEwiH1on76LeUAxUuH7kGHU7gK0oQ3ewLegQIDRAV" data-placeholder="Tradução"&gt;&lt;SPAN class="Y2IQFc"&gt;Hello, I'm trying to create a line chart by week and average number of days. Using the `week` (field), I can get the weeks of the year (from 1 to 52), but I want to create a line chart that shows only the current month and its four weeks (1, 2, 3, 4, and 5).

I've tested some scripts, but none worked because they consider the average of the week numbers from previous years.

Does anyone have any idea how to solve this, either in the data loading script or in the chart itself?&lt;/SPAN&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 May 2026 03:26:06 GMT</pubDate>
    <dc:creator>Otavio_Ads</dc:creator>
    <dc:date>2026-05-14T03:26:06Z</dc:date>
    <item>
      <title>Hi Community</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/Hi-Community/m-p/2549118#M3655</link>
      <description>&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" tabindex="-1" role="text" aria-label="Texto traduzido: Hello, I'm trying to create a line chart by week and average number of days. Using the `week` (field), I can get the weeks of the year (from 1 to 52), but I want to create a line chart that shows only the current month and its four weeks (1, 2, 3, 4, and 5).

I've tested some scripts, but none worked because they consider the average of the week numbers from previous years.

Does anyone have any idea how to solve this, either in the data loading script or in the chart itself?" data-ved="2ahUKEwiH1on76LeUAxUuH7kGHU7gK0oQ3ewLegQIDRAV" data-placeholder="Tradução"&gt;&lt;SPAN class="Y2IQFc"&gt;Hello, I'm trying to create a line chart by week and average number of days. Using the `week` (field), I can get the weeks of the year (from 1 to 52), but I want to create a line chart that shows only the current month and its four weeks (1, 2, 3, 4, and 5).

I've tested some scripts, but none worked because they consider the average of the week numbers from previous years.

Does anyone have any idea how to solve this, either in the data loading script or in the chart itself?&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 May 2026 03:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/Hi-Community/m-p/2549118#M3655</guid>
      <dc:creator>Otavio_Ads</dc:creator>
      <dc:date>2026-05-14T03:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Community</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/Hi-Community/m-p/2549124#M3656</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;If you are using Avg(Days) as the expression in the line chart, you can do something like this to get only this year's values:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Avg( {&amp;lt;Year={"$(=Year(Today()))"}&amp;gt;} Days)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if you want to show only this month's values you can do it with:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Avg({&amp;lt;Year={"$(=Year(Today()))"}, Month={"$(=Month(Today()))"}&amp;gt;} Days)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;This fields are given considered that you have a masterCalendar table joined on CalendarDate with your Fact Data's Date field:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Let vMinDate = Num(Date(Floor(YearStart(AddYears(Today(),-2))),'DD.MM.YYYY'))-1;
Let vMaxDate = Num(Date(Floor(YearEnd(AddYears(Today(),1))),'DD.MM.YYYY'));
SET vHolidays = '01.01.2026','14.02.2026'; // Holidays etc.
Let vToday = Num(Today());
//Autogenerate a source table for your calendar
MasterCalendar:
NoConcatenate
Load
    date(TempDate,'DD.MM.YYYY') as CalendarDate,
    Week(TempDate) as Week,
    Year(TempDate) as Year,
    Month(TempDate) as Month,
    Day(TempDate) as Day,
    WeekDay(TempDate) as WeekDayName,
    Date(TempDate)-YearStart(TempDate)+1 as DayNumber,
    Num(WeekDay(TempDate)+1) as WeekDay,
    'Q' &amp;amp; ceil(Month(TempDate)/3) as Quarter,
    Date(monthstart(TempDate),'MMM-YYYY') as MonthYear,
    Week(TempDate) &amp;amp; '-' &amp;amp; Year(TempDate) as WeekYear,
    inyeartodate(TempDate,$(vToday),0) * -1 as CurYTDFlag,
    inyeartodate(TempDate,$(vToday),-1) * -1 as LastYTDFlag,
    NetworkDays(TempDate,TempDate,$(vHolidays)) as IsWorkingDay
;
Load																	                                                      
    $(vMinDate) + (IterNo()) as TempDate					    
AutoGenerate 1										
While 												
    $(vMinDate) + (IterNo()) &amp;lt;= $(#vMaxDate)
;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2026 07:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/Hi-Community/m-p/2549124#M3656</guid>
      <dc:creator>BIAKS</dc:creator>
      <dc:date>2026-05-14T07:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hi Community</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/Hi-Community/m-p/2549221#M3657</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" tabindex="-1" role="text" aria-label="Texto traduzido: I received an insight from a developer here at my company and was able to solve the problem even before testing the solution." data-ved="2ahUKEwjFg_W6y7uUAxWnCrkGHdNuA0kQ3ewLegQIDRAV" data-placeholder="Tradução"&gt;&lt;SPAN class="Y2IQFc"&gt;Hi! &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I received an insight from a developer here at my company and was able to solve the problem even before testing the solution.&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Even so, tks.&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2026 15:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/Hi-Community/m-p/2549221#M3657</guid>
      <dc:creator>Otavio_Ads</dc:creator>
      <dc:date>2026-05-15T15:19:53Z</dc:date>
    </item>
  </channel>
</rss>

