<?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 Aggregating multiple dimensions on line graph in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggregating-multiple-dimensions-on-line-graph/m-p/1825022#M67774</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is a bit of a tricky one to explain, do let me know if anything is unclear.&lt;/P&gt;&lt;P&gt;So I have data that looks like the following&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnnyjohn_5-1627437876015.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59278i7AB5070A559CA28B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnnyjohn_5-1627437876015.png" alt="johnnyjohn_5-1627437876015.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I am trying to accomplish here is to create a line graph that would look like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnnyjohn_3-1627437586030.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59275i8758D9CBC00F6194/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnnyjohn_3-1627437586030.png" alt="johnnyjohn_3-1627437586030.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, given how the data exists, I'm not sure how to do this, because the line graph can only be given one dimension (which given the data above would have to be just one of the 5 time buckets), so I need to be able to somehow aggregate these different time buckets into one dimension so that it can work as intended.&lt;/P&gt;&lt;P&gt;I guess one solution here is to write my loader so that somehow my data ends up like this, in which case I can use my "time bucket" as dimension and "reversion measure" as measure, but I dont know how to do this, and am not even sure it is the best way to approach this problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnnyjohn_6-1627437997740.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59279i2EED53F37AB71E32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnnyjohn_6-1627437997740.png" alt="johnnyjohn_6-1627437997740.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyone have any ideas how to solve this?&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jul 2021 02:07:20 GMT</pubDate>
    <dc:creator>johnnyjohn</dc:creator>
    <dc:date>2021-07-28T02:07:20Z</dc:date>
    <item>
      <title>Aggregating multiple dimensions on line graph</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregating-multiple-dimensions-on-line-graph/m-p/1825022#M67774</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is a bit of a tricky one to explain, do let me know if anything is unclear.&lt;/P&gt;&lt;P&gt;So I have data that looks like the following&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnnyjohn_5-1627437876015.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59278i7AB5070A559CA28B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnnyjohn_5-1627437876015.png" alt="johnnyjohn_5-1627437876015.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I am trying to accomplish here is to create a line graph that would look like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnnyjohn_3-1627437586030.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59275i8758D9CBC00F6194/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnnyjohn_3-1627437586030.png" alt="johnnyjohn_3-1627437586030.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, given how the data exists, I'm not sure how to do this, because the line graph can only be given one dimension (which given the data above would have to be just one of the 5 time buckets), so I need to be able to somehow aggregate these different time buckets into one dimension so that it can work as intended.&lt;/P&gt;&lt;P&gt;I guess one solution here is to write my loader so that somehow my data ends up like this, in which case I can use my "time bucket" as dimension and "reversion measure" as measure, but I dont know how to do this, and am not even sure it is the best way to approach this problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnnyjohn_6-1627437997740.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59279i2EED53F37AB71E32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnnyjohn_6-1627437997740.png" alt="johnnyjohn_6-1627437997740.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyone have any ideas how to solve this?&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 02:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregating-multiple-dimensions-on-line-graph/m-p/1825022#M67774</guid>
      <dc:creator>johnnyjohn</dc:creator>
      <dc:date>2021-07-28T02:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating multiple dimensions on line graph</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregating-multiple-dimensions-on-line-graph/m-p/1825033#M67776</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The Crosstable function is fantastic for this sort of thing. It will take the column headers and pivot them so they will perform exactly what you have supplied above.&lt;/P&gt;&lt;P&gt;Here's the documentation with examples from the Qlik site.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/May2021/Subsystems/Hub/Content/Sense_Hub/LoadData/work-with-cross-tables.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/May2021/Subsystems/Hub/Content/Sense_Hub/LoadData/work-with-cross-tables.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here's the code as per your example:&lt;/P&gt;&lt;P&gt;data:&lt;BR /&gt;load * inline [&lt;BR /&gt;OrderID, -2s, -1s, 0s, 1s, 2s&lt;BR /&gt;aaa, -2.30, -2.20, -0.10, -1.10, 1.80&lt;BR /&gt;bbb, -0.52, -0.86, -0.06, 0.45, 0.40&lt;BR /&gt;ccc, -0.30, -0.23, -0.06, 0.23, 1.78&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;cross:&lt;BR /&gt;crosstable([Time Bucket], [Reversion Measure],1)&lt;BR /&gt;Load&lt;BR /&gt;OrderID,&lt;BR /&gt;[-2s],&lt;BR /&gt;[-1s],&lt;BR /&gt;[0s],&lt;BR /&gt;[1s],&lt;BR /&gt;[2s]&lt;BR /&gt;Resident data;&lt;/P&gt;&lt;P&gt;Which creates a table like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anthonyj_0-1627446911700.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59281i30FC28EF3D708CB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anthonyj_0-1627446911700.png" alt="anthonyj_0-1627446911700.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 04:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregating-multiple-dimensions-on-line-graph/m-p/1825033#M67776</guid>
      <dc:creator>anthonyj</dc:creator>
      <dc:date>2021-07-28T04:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating multiple dimensions on line graph</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregating-multiple-dimensions-on-line-graph/m-p/1825075#M67783</link>
      <description>&lt;P&gt;Yep, that did it, thank you sir&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 08:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregating-multiple-dimensions-on-line-graph/m-p/1825075#M67783</guid>
      <dc:creator>johnnyjohn</dc:creator>
      <dc:date>2021-07-28T08:21:54Z</dc:date>
    </item>
  </channel>
</rss>

