<?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 Waterfall Chart - Measure is time gap between two fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Waterfall-Chart-Measure-is-time-gap-between-two-fields/m-p/1878443#M72420</link>
    <description>&lt;P&gt;Hello everyone, I need to create something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gitguto_0-1641560385542.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69798i620D7CBC63F1B991/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gitguto_0-1641560385542.png" alt="gitguto_0-1641560385542.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My dimension would have to be an aggregated function, something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=aggr(if(&lt;BR /&gt;only({&amp;lt;name = {'Create proposal'}&amp;gt;}activityfinishdate)-only({&amp;lt;name = {'Study approval'}&amp;gt;}activitystartdate)&amp;lt;16,&lt;BR /&gt;'0 - 15 days',if(&lt;BR /&gt;only({&amp;lt;name = {'Create proposal'}&amp;gt;}activityfinishdate)-only({&amp;lt;name = {'Study approval'}&amp;gt;}activitystartdate)&amp;lt;31,&lt;BR /&gt;'15 - 30 days','30+ days')),[Request Number])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm creating slots according to the difference between the finish date of the task "Create Proposal" and the start date of the task "Study Approval". That is, "0-15 days", "15-30 days" and "+30days"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I'm having trouble getting this visualization, the closest I can get is this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gitguto_1-1641560563017.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69799i4673F426F48CC519/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gitguto_1-1641560563017.png" alt="gitguto_1-1641560563017.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be very appreciated. Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2022 13:03:08 GMT</pubDate>
    <dc:creator>gitguto</dc:creator>
    <dc:date>2022-01-07T13:03:08Z</dc:date>
    <item>
      <title>Waterfall Chart - Measure is time gap between two fields</title>
      <link>https://community.qlik.com/t5/App-Development/Waterfall-Chart-Measure-is-time-gap-between-two-fields/m-p/1878443#M72420</link>
      <description>&lt;P&gt;Hello everyone, I need to create something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gitguto_0-1641560385542.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69798i620D7CBC63F1B991/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gitguto_0-1641560385542.png" alt="gitguto_0-1641560385542.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My dimension would have to be an aggregated function, something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=aggr(if(&lt;BR /&gt;only({&amp;lt;name = {'Create proposal'}&amp;gt;}activityfinishdate)-only({&amp;lt;name = {'Study approval'}&amp;gt;}activitystartdate)&amp;lt;16,&lt;BR /&gt;'0 - 15 days',if(&lt;BR /&gt;only({&amp;lt;name = {'Create proposal'}&amp;gt;}activityfinishdate)-only({&amp;lt;name = {'Study approval'}&amp;gt;}activitystartdate)&amp;lt;31,&lt;BR /&gt;'15 - 30 days','30+ days')),[Request Number])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm creating slots according to the difference between the finish date of the task "Create Proposal" and the start date of the task "Study Approval". That is, "0-15 days", "15-30 days" and "+30days"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I'm having trouble getting this visualization, the closest I can get is this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gitguto_1-1641560563017.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69799i4673F426F48CC519/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gitguto_1-1641560563017.png" alt="gitguto_1-1641560563017.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be very appreciated. Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 13:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Waterfall-Chart-Measure-is-time-gap-between-two-fields/m-p/1878443#M72420</guid>
      <dc:creator>gitguto</dc:creator>
      <dc:date>2022-01-07T13:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Waterfall Chart - Measure is time gap between two fields</title>
      <link>https://community.qlik.com/t5/App-Development/Waterfall-Chart-Measure-is-time-gap-between-two-fields/m-p/1879026#M72469</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;If you want to create a Qlik Waterfall chart you don't add a dimension, you just create the bars.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your first bar could be something like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;sum(aggr(if( only({&amp;lt;name = {'Create proposal'}&amp;gt;}activityfinishdate)-only({&amp;lt;name = {'Study approval'}&amp;gt;}activitystartdate)&amp;lt;16,1,0),[Request Number]))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;(if it is no of Request Number you are after and they are distinct, I had no example data to work with)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second bar:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;sum(aggr(if( only({&amp;lt;name = {'Create proposal'}&amp;gt;}activityfinishdate)-only({&amp;lt;name = {'Study approval'}&amp;gt;}activitystartdate)&amp;lt;31,1,0),[Request Number]))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;sum(aggr(if( only({&amp;lt;name = {'Create proposal'}&amp;gt;}activityfinishdate)-only({&amp;lt;name = {'Study approval'}&amp;gt;}activitystartdate)&amp;lt;16,1,0),[Request Number]))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and last bar:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;sum(aggr(if( only({&amp;lt;name = {'Create proposal'}&amp;gt;}activityfinishdate)-only({&amp;lt;name = {'Study approval'}&amp;gt;}activitystartdate)&amp;gt;30,1,0),[Request Number]))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the checkbox&amp;nbsp;&lt;SPAN&gt;Add subtotal in the second and third bar to add the total bars.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The calculations can probably be less complex than my examples from your function, (but if I understood you correct I think it should work). The key take away is you don't add dimensions in a waterfall chart, you only add measures and specify their relationships.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 14:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Waterfall-Chart-Measure-is-time-gap-between-two-fields/m-p/1879026#M72469</guid>
      <dc:creator>jbhappysocks</dc:creator>
      <dc:date>2022-01-10T14:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Waterfall Chart - Measure is time gap between two fields</title>
      <link>https://community.qlik.com/t5/App-Development/Waterfall-Chart-Measure-is-time-gap-between-two-fields/m-p/1879104#M72477</link>
      <description>&lt;P&gt;Thank you very much! Your answer was perfect. Helped me a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 16:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Waterfall-Chart-Measure-is-time-gap-between-two-fields/m-p/1879104#M72477</guid>
      <dc:creator>gitguto</dc:creator>
      <dc:date>2022-01-10T16:59:24Z</dc:date>
    </item>
  </channel>
</rss>

