<?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 line chart calculation on date and display string in x axis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/line-chart-calculation-on-date-and-display-string-in-x-axis/m-p/1570470#M41598</link>
    <description>&lt;P&gt;How to display line chart based on date dimension but display string calculated from date in x axis?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg- If date is from 1/1/2018 to 1/7/2018.&lt;/P&gt;&lt;P&gt;It should display day1,day2 ,day3 in x axis.&lt;/P&gt;&lt;P&gt;But sales calculation should be for Date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if user selects 2 date range like 1/1/2018 to 1/7/2018&lt;/P&gt;&lt;P&gt;and 1/14/2018 to 1/21/2018. Then 1/1/2018 and 1/14/2018 as day 1.&lt;/P&gt;&lt;P&gt;there should be 2 lines. 1 line corespong to 1/1/2018. 2nd line should display value for 1/7/2018&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:01:48 GMT</pubDate>
    <dc:creator>shwethaa</dc:creator>
    <dc:date>2024-11-16T21:01:48Z</dc:date>
    <item>
      <title>line chart calculation on date and display string in x axis</title>
      <link>https://community.qlik.com/t5/App-Development/line-chart-calculation-on-date-and-display-string-in-x-axis/m-p/1570470#M41598</link>
      <description>&lt;P&gt;How to display line chart based on date dimension but display string calculated from date in x axis?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg- If date is from 1/1/2018 to 1/7/2018.&lt;/P&gt;&lt;P&gt;It should display day1,day2 ,day3 in x axis.&lt;/P&gt;&lt;P&gt;But sales calculation should be for Date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if user selects 2 date range like 1/1/2018 to 1/7/2018&lt;/P&gt;&lt;P&gt;and 1/14/2018 to 1/21/2018. Then 1/1/2018 and 1/14/2018 as day 1.&lt;/P&gt;&lt;P&gt;there should be 2 lines. 1 line corespong to 1/1/2018. 2nd line should display value for 1/7/2018&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/line-chart-calculation-on-date-and-display-string-in-x-axis/m-p/1570470#M41598</guid>
      <dc:creator>shwethaa</dc:creator>
      <dc:date>2024-11-16T21:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: line chart calculation on date and display string in x axis</title>
      <link>https://community.qlik.com/t5/App-Development/line-chart-calculation-on-date-and-display-string-in-x-axis/m-p/1570535#M41600</link>
      <description>&lt;P&gt;For the first line, you could try these for a calculated dimension:&lt;/P&gt;&lt;PRE&gt;'day' &amp;amp; Num(date - Min(Total(date)))
or
Aggr('day' &amp;amp; Num(date - Min(Total(date))), date)&lt;/PRE&gt;&lt;P&gt;The second line is more of a problem. To do this you may need to explore data islands, an as-of table and/or alternate states.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 13:08:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/line-chart-calculation-on-date-and-display-string-in-x-axis/m-p/1570535#M41600</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-04-17T13:08:56Z</dc:date>
    </item>
  </channel>
</rss>

