<?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 Calculated measure incorrect in line graph due to sorting with multiple dimensions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculated-measure-incorrect-in-line-graph-due-to-sorting-with/m-p/1582458#M63024</link>
    <description>&lt;P&gt;I have a line chart showing DSO (current month A/R divided by total revenue over last 3 months divided by 90)&amp;nbsp; trending over time.&amp;nbsp; The calculation works fine when I just have the data points plotted by project, but when I try to add the dimension of Payor Category, to split out each project even further, the calculations get thrown off due to the sorting order.&amp;nbsp; When I display the data in the table, if I sort by Payor Category, and then by Month/Date as the last sorted value, the calculation is correct.&amp;nbsp; However, in the line graph, it defaults to the month/date being the first sorted value, and I cannot reorder them.&amp;nbsp; I've tried a number of different things, but I'm still very new to all of this so any help would be appreciated!&lt;/P&gt;&lt;P&gt;Here's the calculation&amp;nbsp; (The chart is also only showing data for the last 6 months):&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[KPI Date.autoCalendar.MonthsAgo]={"&amp;lt;=6"}&amp;gt;}[Total A/R])/(RangeSum(Above(total Sum({$&amp;lt;[KPI Date.autoCalendar.YearMonth]&amp;gt;}SS.Revenue),0,3))/90)&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:49:54 GMT</pubDate>
    <dc:creator>BZane</dc:creator>
    <dc:date>2024-11-16T20:49:54Z</dc:date>
    <item>
      <title>Calculated measure incorrect in line graph due to sorting with multiple dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Calculated-measure-incorrect-in-line-graph-due-to-sorting-with/m-p/1582458#M63024</link>
      <description>&lt;P&gt;I have a line chart showing DSO (current month A/R divided by total revenue over last 3 months divided by 90)&amp;nbsp; trending over time.&amp;nbsp; The calculation works fine when I just have the data points plotted by project, but when I try to add the dimension of Payor Category, to split out each project even further, the calculations get thrown off due to the sorting order.&amp;nbsp; When I display the data in the table, if I sort by Payor Category, and then by Month/Date as the last sorted value, the calculation is correct.&amp;nbsp; However, in the line graph, it defaults to the month/date being the first sorted value, and I cannot reorder them.&amp;nbsp; I've tried a number of different things, but I'm still very new to all of this so any help would be appreciated!&lt;/P&gt;&lt;P&gt;Here's the calculation&amp;nbsp; (The chart is also only showing data for the last 6 months):&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[KPI Date.autoCalendar.MonthsAgo]={"&amp;lt;=6"}&amp;gt;}[Total A/R])/(RangeSum(Above(total Sum({$&amp;lt;[KPI Date.autoCalendar.YearMonth]&amp;gt;}SS.Revenue),0,3))/90)&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculated-measure-incorrect-in-line-graph-due-to-sorting-with/m-p/1582458#M63024</guid>
      <dc:creator>BZane</dc:creator>
      <dc:date>2024-11-16T20:49:54Z</dc:date>
    </item>
  </channel>
</rss>

