<?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 Slowly changing dimension Day to Day comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-Day-to-Day-comparison/m-p/936825#M528784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying to work out how to make a line chart for a few days now and I'm really stuck, I hope someone can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to show the 'Net gain' change over time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data model that includes a slowly changing dimension&amp;nbsp; (Member State) and a master calendar. I define my 'Net gain' as the difference in 'Number of active members Today' VS the 'Number of active members Yesterday'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also able to calculate the 'Net gain' fairly easily and place it in KPI's or pie charts. I simply use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;Data_DATE = {'$(vMaxDate)'},STATEID ={'MEMBER'}&amp;gt;}EXTERNAL_ID)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;Data_DATE ={'$(vMaxDayBefore)'},STATEID ={'MEMBER'}&amp;gt;} EXTERNAL_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means I count the number of 'EXTERNAL_ID's (Unique person ID) which have a state of 'MEMBER' today (vMaxDate), and subtract the same calculation for yesterday (vMaxDayBefore).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this doesn't seem to work when I try to use this measure in a line chart, where the dimension is Data_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;Shouldn't it use the results of the calculation in the measure for each Data_DATE as the value the the Y Axis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any input, especially from someone who's done something similar before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2015 10:33:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-17T10:33:29Z</dc:date>
    <item>
      <title>Slowly changing dimension Day to Day comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-Day-to-Day-comparison/m-p/936825#M528784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying to work out how to make a line chart for a few days now and I'm really stuck, I hope someone can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to show the 'Net gain' change over time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data model that includes a slowly changing dimension&amp;nbsp; (Member State) and a master calendar. I define my 'Net gain' as the difference in 'Number of active members Today' VS the 'Number of active members Yesterday'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also able to calculate the 'Net gain' fairly easily and place it in KPI's or pie charts. I simply use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;Data_DATE = {'$(vMaxDate)'},STATEID ={'MEMBER'}&amp;gt;}EXTERNAL_ID)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;Data_DATE ={'$(vMaxDayBefore)'},STATEID ={'MEMBER'}&amp;gt;} EXTERNAL_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means I count the number of 'EXTERNAL_ID's (Unique person ID) which have a state of 'MEMBER' today (vMaxDate), and subtract the same calculation for yesterday (vMaxDayBefore).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this doesn't seem to work when I try to use this measure in a line chart, where the dimension is Data_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;Shouldn't it use the results of the calculation in the measure for each Data_DATE as the value the the Y Axis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any input, especially from someone who's done something similar before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 10:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-Day-to-Day-comparison/m-p/936825#M528784</guid>
      <dc:creator />
      <dc:date>2015-08-17T10:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Slowly changing dimension Day to Day comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-Day-to-Day-comparison/m-p/936826#M528785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide sample data please !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 10:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-Day-to-Day-comparison/m-p/936826#M528785</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-08-17T10:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Slowly changing dimension Day to Day comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-Day-to-Day-comparison/m-p/936827#M528786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm fairly new to the community, so let me know if you need some more data.&lt;/P&gt;&lt;P&gt;I'm including my QVF file, which has the data I'm testing with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see an example of the view I'm trying to make called 'First Remi view'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 13:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-Day-to-Day-comparison/m-p/936827#M528786</guid>
      <dc:creator />
      <dc:date>2015-08-17T13:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Slowly changing dimension Day to Day comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-Day-to-Day-comparison/m-p/936828#M528787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without seeing the example, I'd probably suggest loading both&amp;nbsp; into 2 expressions in a straight table to make sure the values are actually being returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could be a null value that's throwing it out, or an error with the dimension during load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 15:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-Day-to-Day-comparison/m-p/936828#M528787</guid>
      <dc:creator />
      <dc:date>2015-08-17T15:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Slowly changing dimension Day to Day comparison</title>
      <link>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-Day-to-Day-comparison/m-p/936829#M528788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Graeme,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion, I haven't tried that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives me some insight as to why I'm not getting the results I want, but I'm not really sure how to fix it.&lt;/P&gt;&lt;P&gt;Looks like I'm getting 2 lines in the straight table.&lt;/P&gt;&lt;P&gt;One for the day, where I get the correct value in the 'Members on date', but 0 in the 'Members day before',&amp;nbsp; and one for the day before, with the correct value in the 'Members day before', but 0 in the 'Members on date' ( I attached a screen shot).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing I'm limiting the data set in the row by saying $&amp;lt;Data_DATE = {'$(vMaxDate)'}&amp;gt;, so I can't get in the same row the data from $&amp;lt;Data_DATE ={'$(vMaxDayBefore)'}&amp;gt; (There is no line in the Data Model that matches both criteria).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how to solves this though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 11:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slowly-changing-dimension-Day-to-Day-comparison/m-p/936829#M528788</guid>
      <dc:creator />
      <dc:date>2015-08-19T11:21:07Z</dc:date>
    </item>
  </channel>
</rss>

