<?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 Calculated Dimension with a date field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-a-date-field/m-p/1772600#M717164</link>
    <description>&lt;P&gt;Hi, I have a field called OUT_ROOM_DT_TM.&amp;nbsp; See below. I want to create a calculated dimension that displays only the last instance for each day.&amp;nbsp; So it would display 1/3/2021 9:55pm, 1/2/2021 9:44pm, and 1/1/2021 8:32pm.&amp;nbsp; Please help!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="drohm002_0-1610036704009.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46558i6CD1537BFAB3C58B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="drohm002_0-1610036704009.png" alt="drohm002_0-1610036704009.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jan 2021 16:28:18 GMT</pubDate>
    <dc:creator>drohm002</dc:creator>
    <dc:date>2021-01-07T16:28:18Z</dc:date>
    <item>
      <title>Calculated Dimension with a date field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-a-date-field/m-p/1772600#M717164</link>
      <description>&lt;P&gt;Hi, I have a field called OUT_ROOM_DT_TM.&amp;nbsp; See below. I want to create a calculated dimension that displays only the last instance for each day.&amp;nbsp; So it would display 1/3/2021 9:55pm, 1/2/2021 9:44pm, and 1/1/2021 8:32pm.&amp;nbsp; Please help!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="drohm002_0-1610036704009.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46558i6CD1537BFAB3C58B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="drohm002_0-1610036704009.png" alt="drohm002_0-1610036704009.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 16:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-a-date-field/m-p/1772600#M717164</guid>
      <dc:creator>drohm002</dc:creator>
      <dc:date>2021-01-07T16:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension with a date field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-a-date-field/m-p/1772621#M717165</link>
      <description>&lt;P&gt;you can add this info in your script, add a DATE field, DATE(floor(OUT_ROOM_DT_TIME)) as OUT_ROOM_DT, then left join your table with:&lt;BR /&gt;&lt;BR /&gt;noconcatenate&lt;BR /&gt;load OUT_ROOM_DT, timestamp(max(OUT_ROOM_DT_TIME)) as maxTime resident YOURTABLE group by OUT_ROOM_DT&lt;/P&gt;&lt;P&gt;this will get the latest time per day and add it to your table (you can drop the OUT_ROOM_DT field if you wont need it&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 17:06:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-a-date-field/m-p/1772621#M717165</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-01-07T17:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension with a date field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-a-date-field/m-p/1772677#M717166</link>
      <description>&lt;P&gt;Hi there, thank you for your response.&amp;nbsp; I already have an OUT_ROOM_DT field, just a little fyi.&amp;nbsp; Is there anyway to achieve what i am trying to do by just creating a calculated dimension?&amp;nbsp; I am not very good with joining tables and such inside of the script.&amp;nbsp; thank you for your time&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 19:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-a-date-field/m-p/1772677#M717166</guid>
      <dc:creator>drohm002</dc:creator>
      <dc:date>2021-01-07T19:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension with a date field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-a-date-field/m-p/1772719#M717167</link>
      <description>&lt;P&gt;adding the date field and the actual max timestamp in the data table IMO is an efficient way to determine the info you are looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you dont want to mess with the script, then you can create a chart with OUT_ROOM_DT as your dimension and timestamp(max(OUT_ROOM_DT_TM)) as your expression.&lt;/P&gt;&lt;P&gt;this would do the aggregation in the chart instead of the data model&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 21:13:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-with-a-date-field/m-p/1772719#M717167</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-01-07T21:13:57Z</dc:date>
    </item>
  </channel>
</rss>

