<?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 Display daily rate of highest value in set in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Display-daily-rate-of-highest-value-in-set/m-p/1968157#M79815</link>
    <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;My company rents out rooms at variable rates, and I'm building a report such that the sales team can quickly check "historically, what did we charge for this room in this week of the year"?&lt;/P&gt;
&lt;P&gt;So, the user selects a room and inputs their desired week.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;A text box displays the average total rate for that room in that week (total rental revenue divided by number of relevant events). The expression looks like this:
&lt;UL&gt;
&lt;LI&gt;=ceil(sum({&amp;lt;[Space Status]={'Contracted', 'Documented'}, [Event End Year]-={'2020', '2021'}, [Order Line Status]={'O'}, [Event End Week]={'$(vProposalWeek)'}, [Space Description]={'$(vProposalSpace)'}, [Order Department]={'01'}&amp;gt;}[Item Amount])&lt;BR /&gt;/count({&amp;lt;[Space Status]={'Contracted', 'Documented'}, [Event End Year]-={'2020', '2021'}, [Order Line Status]={'O'}, [Event End Week]={'$(vProposalWeek)'}, [Space Description]={'$(vProposalSpace)'}, [Order Department]={'01'}&amp;gt;}[Event Desc])))&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;A second text box displays the average daily rate for that room in that week (total rental revenue divided by total duration of all the relevant events).&amp;nbsp;The expression looks like this:
&lt;UL&gt;
&lt;LI&gt;=ceil(sum({&amp;lt;[Space Status]={'Contracted', 'Documented'}, [Event End Year]-={'2020', '2021'}, [Order Line Status]={'O'}, [Event End Week]={'$(vProposalWeek)'}, [Space Description]={'$(vProposalSpace)'}, [Order Department]={'01'}&amp;gt;}[Item Amount])&lt;BR /&gt;/ceil(sum({&amp;lt;[Space Status]={'Contracted', 'Documented'}, [Event End Year]-={'2020', '2021'}, [Order Line Status]={'O'}, [Event End Week]={'$(vProposalWeek)'}, [Space Description]={'$(vProposalSpace)'}, [Order Department]={'01'}&amp;gt;}[Event Days]))), '#,##0')&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;A third text box shows the highest total rate charged for that room in that week.&amp;nbsp;The expression looks like this:
&lt;UL&gt;
&lt;LI&gt;=Max({&amp;lt;[Space Status]={'Contracted', 'Documented'}, [Event End Year]-={'2020', '2021'}, [Order Line Status]={'O'}, [Event End Week]={'$(vProposalWeek)'}, [Space Description]={'$(vProposalSpace)'}, [Order Department]={'01'}&amp;gt;}[Item Amount])&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;"vProposalWeek" is just a variable that stores the current selected week, and "vProposalSpace" stores the current selected space.&lt;/P&gt;
&lt;P&gt;Where I'm stuck is that I'd like to show a fourth text box which lists the highest daily rate charged i.e. the highest total rate, divided by the duration of the event in which that rate was charged.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Aug 2022 10:50:00 GMT</pubDate>
    <dc:creator>FionnM</dc:creator>
    <dc:date>2022-08-12T10:50:00Z</dc:date>
    <item>
      <title>Display daily rate of highest value in set</title>
      <link>https://community.qlik.com/t5/App-Development/Display-daily-rate-of-highest-value-in-set/m-p/1968157#M79815</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;My company rents out rooms at variable rates, and I'm building a report such that the sales team can quickly check "historically, what did we charge for this room in this week of the year"?&lt;/P&gt;
&lt;P&gt;So, the user selects a room and inputs their desired week.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;A text box displays the average total rate for that room in that week (total rental revenue divided by number of relevant events). The expression looks like this:
&lt;UL&gt;
&lt;LI&gt;=ceil(sum({&amp;lt;[Space Status]={'Contracted', 'Documented'}, [Event End Year]-={'2020', '2021'}, [Order Line Status]={'O'}, [Event End Week]={'$(vProposalWeek)'}, [Space Description]={'$(vProposalSpace)'}, [Order Department]={'01'}&amp;gt;}[Item Amount])&lt;BR /&gt;/count({&amp;lt;[Space Status]={'Contracted', 'Documented'}, [Event End Year]-={'2020', '2021'}, [Order Line Status]={'O'}, [Event End Week]={'$(vProposalWeek)'}, [Space Description]={'$(vProposalSpace)'}, [Order Department]={'01'}&amp;gt;}[Event Desc])))&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;A second text box displays the average daily rate for that room in that week (total rental revenue divided by total duration of all the relevant events).&amp;nbsp;The expression looks like this:
&lt;UL&gt;
&lt;LI&gt;=ceil(sum({&amp;lt;[Space Status]={'Contracted', 'Documented'}, [Event End Year]-={'2020', '2021'}, [Order Line Status]={'O'}, [Event End Week]={'$(vProposalWeek)'}, [Space Description]={'$(vProposalSpace)'}, [Order Department]={'01'}&amp;gt;}[Item Amount])&lt;BR /&gt;/ceil(sum({&amp;lt;[Space Status]={'Contracted', 'Documented'}, [Event End Year]-={'2020', '2021'}, [Order Line Status]={'O'}, [Event End Week]={'$(vProposalWeek)'}, [Space Description]={'$(vProposalSpace)'}, [Order Department]={'01'}&amp;gt;}[Event Days]))), '#,##0')&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;A third text box shows the highest total rate charged for that room in that week.&amp;nbsp;The expression looks like this:
&lt;UL&gt;
&lt;LI&gt;=Max({&amp;lt;[Space Status]={'Contracted', 'Documented'}, [Event End Year]-={'2020', '2021'}, [Order Line Status]={'O'}, [Event End Week]={'$(vProposalWeek)'}, [Space Description]={'$(vProposalSpace)'}, [Order Department]={'01'}&amp;gt;}[Item Amount])&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;"vProposalWeek" is just a variable that stores the current selected week, and "vProposalSpace" stores the current selected space.&lt;/P&gt;
&lt;P&gt;Where I'm stuck is that I'd like to show a fourth text box which lists the highest daily rate charged i.e. the highest total rate, divided by the duration of the event in which that rate was charged.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 10:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-daily-rate-of-highest-value-in-set/m-p/1968157#M79815</guid>
      <dc:creator>FionnM</dc:creator>
      <dc:date>2022-08-12T10:50:00Z</dc:date>
    </item>
  </channel>
</rss>

