<?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 Median for today's date only in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Median-for-today-s-date-only/m-p/1629930#M46903</link>
    <description>&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;I have the flu and am completely dead on my knees but need to get this work completed by Friday and am coming up against problems which I can't resolve in my current state!&amp;nbsp; I need to work out the median of a set of data, but only relating to data with today's date on it.&lt;/P&gt;&lt;P&gt;I've done something similar for a basic count i.e.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count({$&amp;lt;[WBR_Stat_Date]={"=$(=Date(Today(),'DD/MM/YYYY'))"}&amp;gt;} DISTINCT [WBR_Event_Key])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But I can't replicate the same for median as it is based on a calculation of the difference between two fields i.e. WBR_Event_Date and WBR_Clock_Reset_Date.&amp;nbsp; I then need the median of this calculation but only for today's date (we have daily feeds of data and I need to only show the current (today's figures).&amp;nbsp; Thanks guys!&lt;/P&gt;&lt;P&gt;This is the formula I have so far but it's obviously looking at ALL the data.&amp;nbsp; I just need to slip in there somewhere to look at just today's date using today() in there somewhere...!!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=num(median([WBR_Event_Date]-[WBR_Clock_Reset_Date]),'#,###')&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Dec 2021 16:36:32 GMT</pubDate>
    <dc:creator>jlampard40</dc:creator>
    <dc:date>2021-12-22T16:36:32Z</dc:date>
    <item>
      <title>Median for today's date only</title>
      <link>https://community.qlik.com/t5/App-Development/Median-for-today-s-date-only/m-p/1629930#M46903</link>
      <description>&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;I have the flu and am completely dead on my knees but need to get this work completed by Friday and am coming up against problems which I can't resolve in my current state!&amp;nbsp; I need to work out the median of a set of data, but only relating to data with today's date on it.&lt;/P&gt;&lt;P&gt;I've done something similar for a basic count i.e.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=count({$&amp;lt;[WBR_Stat_Date]={"=$(=Date(Today(),'DD/MM/YYYY'))"}&amp;gt;} DISTINCT [WBR_Event_Key])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But I can't replicate the same for median as it is based on a calculation of the difference between two fields i.e. WBR_Event_Date and WBR_Clock_Reset_Date.&amp;nbsp; I then need the median of this calculation but only for today's date (we have daily feeds of data and I need to only show the current (today's figures).&amp;nbsp; Thanks guys!&lt;/P&gt;&lt;P&gt;This is the formula I have so far but it's obviously looking at ALL the data.&amp;nbsp; I just need to slip in there somewhere to look at just today's date using today() in there somewhere...!!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=num(median([WBR_Event_Date]-[WBR_Clock_Reset_Date]),'#,###')&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 16:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Median-for-today-s-date-only/m-p/1629930#M46903</guid>
      <dc:creator>jlampard40</dc:creator>
      <dc:date>2021-12-22T16:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Median for today's date only</title>
      <link>https://community.qlik.com/t5/App-Development/Median-for-today-s-date-only/m-p/1630015#M46916</link>
      <description>&lt;P&gt;Is this really working?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Count({$&amp;lt;[WBR_Stat_Date] = {"=$(=Date(Today(),'DD/MM/YYYY'))"}&amp;gt;} DISTINCT [WBR_Event_Key])&lt;/LI-CODE&gt;&lt;P&gt;I see an extra '=' before $(= in the set modifier... I feel like it should be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Count({$&amp;lt;[WBR_Stat_Date]={"$(=Date(Today(),'DD/MM/YYYY'))"}&amp;gt;} DISTINCT [WBR_Event_Key])&lt;/LI-CODE&gt;&lt;P&gt;Anyhow, getting back to your question... have you tried this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Num(Median({$&amp;lt;[WBR_Stat_Date]={"$(=Date(Today(),'DD/MM/YYYY'))"}&amp;gt;} RangeSum([WBR_Event_Date], -[WBR_Clock_Reset_Date])),'#,###')&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Oct 2019 11:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Median-for-today-s-date-only/m-p/1630015#M46916</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-01T11:57:34Z</dc:date>
    </item>
  </channel>
</rss>

