<?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 Re: Enter variable directly into straight table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Enter-variable-directly-into-straight-table/m-p/1050357#M465328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, and you're right about the expression too.&amp;nbsp; It's not breaking out on the calculated dimension at all, and now I'm not managing to get the calculated dimension parts into the aggr() part of the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My calculated dimension looks okay when I just put 1 as the expression to test it.&amp;nbsp; Just a bear of a time trying to count the number of users who logged x number of days within the various date ranges of the calculated week dimension.&amp;nbsp; Presently, end users can select each 7-day period on a list box, and transcribe or export/paste week's information one at a time, which gets tedious around week 4 5 and 6 of any given event.&amp;nbsp; (Though a far sight better than the export/countif/vlookups of olden times. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Mar 2016 20:40:10 GMT</pubDate>
    <dc:creator>stevelord</dc:creator>
    <dc:date>2016-03-22T20:40:10Z</dc:date>
    <item>
      <title>Enter variable directly into straight table?</title>
      <link>https://community.qlik.com/t5/QlikView/Enter-variable-directly-into-straight-table/m-p/1050355#M465326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I feel like I saw this demo'd somewhere before but not finding it now.&amp;nbsp; I am setting up a table where the primary dimension would be like week1, week2, week3, week4 where the weeks begin at vStartDate entered by the user.&amp;nbsp; Since I'll be placing this new table into a container with some other graphs, I'd like to have an 'embedded' variable input on the table itself.&amp;nbsp; (But I will survive just putting an input box below the container if putting the input functionality in the table proves overly tricky. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculated dimension might be like (feel free to let me know if something more optimal than this):&lt;/P&gt;&lt;P&gt;if(loggingdate&amp;gt;=vStartDate AND loggingdate&amp;lt;=(vStartDate+6), Dual('Week1',1),&lt;/P&gt;&lt;P&gt;if(loggingdate&amp;gt;(vStartDate+6) AND loggingdate&amp;lt;=(vStartDate+13), Dual('Week2',2),&lt;/P&gt;&lt;P&gt;if(loggingdate&amp;gt;(vStartDate+13) AND loggingdate&amp;lt;=(vStartDate+20), Dual('Week3',3),&lt;/P&gt;&lt;P&gt;if(loggingdate&amp;gt;(vStartDate+20) AND loggingdate&amp;lt;=(vStartDate+27), Dual('Week4',4))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expressions will be along the lines of (trusting the calculated dimension to aggregate them correctly by week):&lt;/P&gt;&lt;P&gt;Met Goal: count(distinct if(count(distinct loggingdate)&amp;gt;=4, UserId))&lt;/P&gt;&lt;P&gt;Missed Goal: count(distinct if(count(distinct loggingdate)&amp;gt;0 AND count(distinct loggingdate)&amp;lt;4, UserId))&lt;/P&gt;&lt;P&gt;Logged 0: count(distinct if(count(distinct loggingdate)=0, UserId))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh yeah, would a line chart work with exactly the same setup?&amp;nbsp; Say have week 1,2 ,3, 4 on the bottom and a few lines zipping along?&amp;nbsp; (Suppose I'll find that out once I build it and just toggle graph types for kicks. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 19:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enter-variable-directly-into-straight-table/m-p/1050355#M465326</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2016-03-22T19:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Enter variable directly into straight table?</title>
      <link>https://community.qlik.com/t5/QlikView/Enter-variable-directly-into-straight-table/m-p/1050356#M465327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you would need to place an input box in your container, at least I can't really think of creating a single variable input within the chart itself (first thought was using input fields, but this was before I understood what you want to achieve).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(distinct if(count(distinct loggingdate)&amp;gt;=4, UserId))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is embedding an aggregation function into another aggregation, which in general does not work. You probably would need advanced aggregation here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 19:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enter-variable-directly-into-straight-table/m-p/1050356#M465327</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-22T19:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Enter variable directly into straight table?</title>
      <link>https://community.qlik.com/t5/QlikView/Enter-variable-directly-into-straight-table/m-p/1050357#M465328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, and you're right about the expression too.&amp;nbsp; It's not breaking out on the calculated dimension at all, and now I'm not managing to get the calculated dimension parts into the aggr() part of the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My calculated dimension looks okay when I just put 1 as the expression to test it.&amp;nbsp; Just a bear of a time trying to count the number of users who logged x number of days within the various date ranges of the calculated week dimension.&amp;nbsp; Presently, end users can select each 7-day period on a list box, and transcribe or export/paste week's information one at a time, which gets tedious around week 4 5 and 6 of any given event.&amp;nbsp; (Though a far sight better than the export/countif/vlookups of olden times. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 20:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enter-variable-directly-into-straight-table/m-p/1050357#M465328</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2016-03-22T20:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Enter variable directly into straight table?</title>
      <link>https://community.qlik.com/t5/QlikView/Enter-variable-directly-into-straight-table/m-p/1050358#M465329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And yes, I agree about advanced aggregation too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thinking now I need to make a master calendar..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then something on the challenges table to make a week column that labels dates week1, week2, etcetera based on calculations around challengestartdate values grouped by challenge id... (er.. calendar script inside that table even?!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then link the challenge dates and their corresponding week labels to the master calendar on one side..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then (ugh) link the users' loggingdates to the master calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to make the most hideous table like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mcdate, challengedates, challengeweek, challengeid, userid, userloggingdate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then a chart on the front:&lt;/P&gt;&lt;P&gt;dimension: challengeweek&lt;/P&gt;&lt;P&gt;expression: count(distinct if(aggr(count(distinct loggingdate),userid,challengeweek)&amp;gt;=4,UserId))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That count(distinct if(aggr(count(Distinct ),)) bit actually works okay in other kinds of tables.&amp;nbsp; I think because everything in the if(aggr()) part is isolated and calculated first and maybe the outside count(distinct ) is only seeing the resulting list of userids who had the if(aggr(count())) &amp;gt;=4.&amp;nbsp; It only gets lost when you try to bump it up against a calculated dimension.&amp;nbsp; .. or try to put the calculated dimension's expression directly in it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I got away with other tables like this (breakouts by week or month) if I was working with dates internal to the one table, or actual calendar months/years that could be extracted from the loggingdates.&amp;nbsp; What I'm doing now feels like dealing with multiple calendars. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 22:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enter-variable-directly-into-straight-table/m-p/1050358#M465329</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2016-03-22T22:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Enter variable directly into straight table?</title>
      <link>https://community.qlik.com/t5/QlikView/Enter-variable-directly-into-straight-table/m-p/1050359#M465330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And actually, if that outside count(distinct ) can only see the list of user ids, then it makes sense the calculated dimension itself can't do anything - it's only seeing the resulting counts from that outside count(distinct ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And efforts to get the date ranges into that expression were ineffective every way I tried.&amp;nbsp; Seems likely the only way to go will be for me to build up some big omni-table in script.&amp;nbsp; And maybe do all the counting functions one temptable at a time in script from there...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some hours of my life I'd like back now. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 22:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enter-variable-directly-into-straight-table/m-p/1050359#M465330</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2016-03-22T22:40:56Z</dc:date>
    </item>
  </channel>
</rss>

