<?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: Last Month Start ($lastmonthstart) Exists but not Last Month End ($lastmonthend) in Dashboards &amp; Analytics Discussions</title>
    <link>https://community.incorta.com/t5/dashboards-analytics-discussions/last-month-start-lastmonthstart-exists-but-not-last-month-end/m-p/4768#M497</link>
    <description>&lt;P&gt;I got this, seems like session variable created are strings by default. We have to convert the session variable to desired format. In this case data type should be - Date Type.&lt;/P&gt;&lt;P&gt;I used the below query to create a session variable and it worked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;queryDistinct(formatDate( date_Column, "yyyy-MM-dd" ), date_Column = addDays( $currentMonthStart, -1 ) ))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2023 14:07:18 GMT</pubDate>
    <dc:creator>nikhil_cr</dc:creator>
    <dc:date>2023-07-31T14:07:18Z</dc:date>
    <item>
      <title>Last Month Start ($lastmonthstart) Exists but not Last Month End ($lastmonthend)</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/last-month-start-lastmonthstart-exists-but-not-last-month-end/m-p/4710#M473</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to set a Default value for the Dashboard Filter (in Prompt Filter) which is a date filter as "&amp;nbsp;&lt;STRONG&gt;$lastmonthend&lt;/STRONG&gt;" but this variable does not exists.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see&amp;nbsp;&lt;STRONG&gt;$lastmonthstart&lt;/STRONG&gt; variable but not&amp;nbsp;&lt;STRONG&gt;$lastmonthend&lt;/STRONG&gt;. How can I create this variable and use it in my dashboard? So that Dashboard filter (&lt;EM&gt;Date Column&lt;/EM&gt;) is always set at Last Month End date ?&amp;nbsp; &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="nikhil_cr_1-1689674529702.png" style="width: 400px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/2330iE1C2D16C92293A58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nikhil_cr_1-1689674529702.png" alt="nikhil_cr_1-1689674529702.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 10:03:29 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/last-month-start-lastmonthstart-exists-but-not-last-month-end/m-p/4710#M473</guid>
      <dc:creator>nikhil_cr</dc:creator>
      <dc:date>2023-07-18T10:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Start ($lastmonthstart) Exists but not Last Month End ($lastmonthend)</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/last-month-start-lastmonthstart-exists-but-not-last-month-end/m-p/4716#M475</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you should use formula below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mhornak_0-1689757909820.png" style="width: 400px;"&gt;&lt;img src="https://community.incorta.com/t5/image/serverpage/image-id/2331iFDF8ED37D5E75D13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mhornak_0-1689757909820.png" alt="mhornak_0-1689757909820.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 09:12:14 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/last-month-start-lastmonthstart-exists-but-not-last-month-end/m-p/4716#M475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-19T09:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Start ($lastmonthstart) Exists but not Last Month End ($lastmonthend)</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/last-month-start-lastmonthstart-exists-but-not-last-month-end/m-p/4722#M483</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp; Thanks for your reply. Using this formula in the dashboard filter will restrict data till last month end date. I want to keep the default values for the date column as last month end date but also give the users the flexibility to change this date. Making it dynamic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI - I tired creating a internal variable using this formula and use it in the dashboard. But the variable gives me an error - "Invalid Date"&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 07:04:45 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/last-month-start-lastmonthstart-exists-but-not-last-month-end/m-p/4722#M483</guid>
      <dc:creator>nikhil_cr</dc:creator>
      <dc:date>2023-07-20T07:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Start ($lastmonthstart) Exists but not Last Month End ($lastmonthend)</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/last-month-start-lastmonthstart-exists-but-not-last-month-end/m-p/4768#M497</link>
      <description>&lt;P&gt;I got this, seems like session variable created are strings by default. We have to convert the session variable to desired format. In this case data type should be - Date Type.&lt;/P&gt;&lt;P&gt;I used the below query to create a session variable and it worked.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;queryDistinct(formatDate( date_Column, "yyyy-MM-dd" ), date_Column = addDays( $currentMonthStart, -1 ) ))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2023 14:07:18 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/last-month-start-lastmonthstart-exists-but-not-last-month-end/m-p/4768#M497</guid>
      <dc:creator>nikhil_cr</dc:creator>
      <dc:date>2023-07-31T14:07:18Z</dc:date>
    </item>
  </channel>
</rss>

