<?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 get a time series while a date is picked? (SET Analysis) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-get-a-time-series-while-a-date-is-picked-SET-Analysis/m-p/1934224#M76959</link>
    <description>&lt;P&gt;You can base your calculations on the Date field as below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example Consider monthyear March-22 is selected&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Expression for Previous Month(Feb 22)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;=Sum({&amp;lt;[Datefield]=&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{"&amp;gt;=$(=Date(monthstart(max(Datefield),-1),'Yyy-mm-dd'))&amp;lt;=$(=Date(monthend(max(Datefield),-1),'Yyy-mm-dd'))"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;}[NumOfEmploye])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Expression for YTD 2022&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=Sum({&amp;lt;[Datefield]=&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{"&amp;gt;=$(=Date(yearstart(max(Datefield)),'Yyy-mm-dd'))&amp;lt;=$(=Date(monthend(max(Datefield),-1),'Yyy-mm-dd'))"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;}[NumOfEmploye])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2022 11:19:38 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2022-05-23T11:19:38Z</dc:date>
    <item>
      <title>How to get a time series while a date is picked? (SET Analysis)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-a-time-series-while-a-date-is-picked-SET-Analysis/m-p/1934175#M76951</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;i have a fact table employee data and using including date like (MonthYear, Year, Month etc.). For my App i'm mainly working with a one selected MonthYear per time . Until today. Because i just want to know "how much in month feb 21".&lt;/P&gt;
&lt;P&gt;I would like to extend my analysis to include time series and time comparisons. For hours I have been testing different calculus formulas. Unsuccessfully.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Formulae such as&lt;/P&gt;
&lt;P&gt;1&lt;BR /&gt;=Sum({1&amp;lt;[MonthYear]={$(vPrevoiusMonat)}&amp;gt;}[NumOfEmploye])&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;2&lt;/P&gt;
&lt;P&gt;=Sum({1&amp;lt;MonthYear={ "&amp;gt;=2022" }&amp;gt;}{$&amp;lt;#Company={ [#Company] }&amp;gt;}[NumOfEmploye)&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The Problem: MonthYear is alawys selected (due to all other reports).&lt;/P&gt;
&lt;P&gt;2nd Problem. If i work with the Identier "1" it coudl work, but i need the drill through the companies. At the 2nd&amp;nbsp; &lt;A href="https://www.dict.cc/?s=formula" target="_blank" rel="noopener"&gt;formula&lt;/A&gt; u see how i try to combine the identifier "1" und "$", but it doesnt work. Formular 1 is working for e.g. Buttons, but not for visual comparsion like bar chart.&amp;nbsp; How to deal with single data points in visualisations?&lt;BR /&gt;&lt;BR /&gt;I want to have time series in bar or line charts or &lt;A href="https://www.dict.cc/?s=monthly" target="_blank" rel="noopener"&gt;monthly&lt;/A&gt; &lt;A href="https://www.dict.cc/?s=comparison" target="_blank" rel="noopener"&gt;comparisons.&amp;nbsp;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Whats is the best practise solution to my problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 10:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-a-time-series-while-a-date-is-picked-SET-Analysis/m-p/1934175#M76951</guid>
      <dc:creator>Seier-Alsenz</dc:creator>
      <dc:date>2022-05-23T10:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a time series while a date is picked? (SET Analysis)</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-a-time-series-while-a-date-is-picked-SET-Analysis/m-p/1934224#M76959</link>
      <description>&lt;P&gt;You can base your calculations on the Date field as below&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example Consider monthyear March-22 is selected&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Expression for Previous Month(Feb 22)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;=Sum({&amp;lt;[Datefield]=&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{"&amp;gt;=$(=Date(monthstart(max(Datefield),-1),'Yyy-mm-dd'))&amp;lt;=$(=Date(monthend(max(Datefield),-1),'Yyy-mm-dd'))"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;}[NumOfEmploye])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Expression for YTD 2022&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=Sum({&amp;lt;[Datefield]=&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{"&amp;gt;=$(=Date(yearstart(max(Datefield)),'Yyy-mm-dd'))&amp;lt;=$(=Date(monthend(max(Datefield),-1),'Yyy-mm-dd'))"}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;}[NumOfEmploye])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 11:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-a-time-series-while-a-date-is-picked-SET-Analysis/m-p/1934224#M76959</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-23T11:19:38Z</dc:date>
    </item>
  </channel>
</rss>

