<?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 Set Analysis behaviour in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-behaviour-in-pivot-table/m-p/197626#M57229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The file has 3 columns : Agent-ID, CallPickedUpTime, CallFinalTime&lt;/P&gt;&lt;P&gt;I need to find the "Agent_ID"s of agents on call and list it over time.&lt;/P&gt;&lt;P&gt;To prototype the set analysis syntax, I have added a variable (vTemp) and display the result in a text box :&lt;/P&gt;&lt;P&gt;concat({$&amp;lt;CallPickedUpTime={"$(='&amp;lt;'&amp;amp;'$(vTemp)')"},CallFinalTime={"$(='&amp;gt;'&amp;amp;'$(vTemp)')"}&amp;gt;} Agent_ID,' ')&lt;/P&gt;&lt;P&gt;It works perfect.&lt;/P&gt;&lt;P&gt;To get the list over time, I have built a pivot table with&lt;/P&gt;&lt;P&gt;- as dimension : a timestamp, from a timeline table&lt;/P&gt;&lt;P&gt;- as expression :&lt;/P&gt;&lt;P&gt;1- concat({$&amp;lt;CallPickedUpTime={"$(='&amp;lt;'&amp;amp;column(0))"}, CallFinalTime={"$(='&amp;gt;'&amp;amp;column(0))"}&amp;gt;} Agent_ID,' ')&lt;/P&gt;&lt;P&gt;2- concat( Agent_ID,' ')&lt;/P&gt;&lt;P&gt;Both expression give the same result : the agent that picked a call at the timestamp reported in the dimension. Calls picked at previous timestamps are ignored.&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;How can I get the expected result in a chart?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pierre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG height="24" hidden="true" id="myFxSearchImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADsElEQVR4nK2VTW9VVRSGn33OPgWpYLARbKWhQlCHTogoSkjEkQwclEQcNJEwlfgD/AM6NBo1xjhx5LyJ0cYEDHGkJqhtBGKUpm3SFii3vb2956wPB/t+9raEgSs52fuus89613rftdcNH8/c9q9++oe/Vzb5P+3McyNcfm2CcPj9af9w6gwjTwzvethx3Bx3x8xwd1wNM8dMcTNUHTfFLPnX6nVmZpeIYwf3cWD/PhbrvlPkblAzVFurKS6GmmGqqComaS+qmBoTI0Ncu3mXuGvWnrJ+ZSxweDgnkHf8ndVTdbiT3M7cQp2Z31dRTecHAfqydp4ejhwazh6Zezfnu98E1WIQwB3crEuJ2Y45PBTAQUVR9X4At66AppoEVO1Q8sgAOKJJjw6Am6OquDmvHskZ3R87gW+vlHz98zpmiqphkkRVbQtsfPTOC30lJKFbFTgp83bWh7Zx/uX1B6w3hI3NkkZTqEpBRDBRzG2AQHcwcYwEkOGkTERREbLQ/8HxJwuW7zdYrzfZ2iopy4qqEspKaDYravVm33k1R91Q69FA1VBRzFIVvXbx5AgXT44A8MWP81yfu0utIR2aVK3vfCnGrcUNxp8a7gKYKiLCvY2SUvo/aNtnM3e49ucK9S3p0aDdaT0UAVsKi2tVi6IWwNL9JvdqTdihaz79/l+u/rHMxmaJVMLkS2OoKKLWacdeE3IsSxctc2D5Qcl6vUlVVgNt+fkPPcFFmTw1xruvT7SCd7nuVhDQvECzJH90h0azRKoKFRkAmP5lKTWAGRdefoZL554FQNUxB92WvYeA5UN4PtSqwB2phKqsqMpBgAunRhFR3j49zuU3jnX8k6fHEQKXzh1jbmGDuYU6s4t1rt6socUeLLZHhYO2AHSHmzt19ihTZ48O8Hzl/AmunD/BjTvrvPfNX3hWsNpwJCvwYm+ngug4UilSCSq6k8YPtxDwfA+WRawIWFbgscDiULcCEaWqBFOlrLazurupOSHLqGnEKJAY8TwBEHumqUirAjNm52vEPPRV4p01XXMPAQhUBjcWm9QZwijwokgAeYHlHYA06KR1cT6ZvoV56pDUJQEjw0KeaMgj1hPEY4vz2A4eW0/e1qA7KtQdsxTYAG0H3iG4xyK1Y+xm7XmEPOJZDiENzLi2WZHngeOjj2Pe+sMg4GRYyLAsx7ME4FnsyTD9pr0PEc8zPGRAwKXBkYOPEd96cZRvf11g9MDe7e3R4Z4Q+vyEnn3P4t0XzK/W+ODN5/kPfRLewAJVEQ0AAAAASUVORK5CYII%3D" style="border: medium none; position: absolute; z-index: 2147483647; opacity: 0.6; display: none;" width="24" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Dec 2009 05:00:18 GMT</pubDate>
    <dc:creator>pdumas</dc:creator>
    <dc:date>2009-12-29T05:00:18Z</dc:date>
    <item>
      <title>Set Analysis behaviour in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-behaviour-in-pivot-table/m-p/197626#M57229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The file has 3 columns : Agent-ID, CallPickedUpTime, CallFinalTime&lt;/P&gt;&lt;P&gt;I need to find the "Agent_ID"s of agents on call and list it over time.&lt;/P&gt;&lt;P&gt;To prototype the set analysis syntax, I have added a variable (vTemp) and display the result in a text box :&lt;/P&gt;&lt;P&gt;concat({$&amp;lt;CallPickedUpTime={"$(='&amp;lt;'&amp;amp;'$(vTemp)')"},CallFinalTime={"$(='&amp;gt;'&amp;amp;'$(vTemp)')"}&amp;gt;} Agent_ID,' ')&lt;/P&gt;&lt;P&gt;It works perfect.&lt;/P&gt;&lt;P&gt;To get the list over time, I have built a pivot table with&lt;/P&gt;&lt;P&gt;- as dimension : a timestamp, from a timeline table&lt;/P&gt;&lt;P&gt;- as expression :&lt;/P&gt;&lt;P&gt;1- concat({$&amp;lt;CallPickedUpTime={"$(='&amp;lt;'&amp;amp;column(0))"}, CallFinalTime={"$(='&amp;gt;'&amp;amp;column(0))"}&amp;gt;} Agent_ID,' ')&lt;/P&gt;&lt;P&gt;2- concat( Agent_ID,' ')&lt;/P&gt;&lt;P&gt;Both expression give the same result : the agent that picked a call at the timestamp reported in the dimension. Calls picked at previous timestamps are ignored.&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;How can I get the expected result in a chart?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pierre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG height="24" hidden="true" id="myFxSearchImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADsElEQVR4nK2VTW9VVRSGn33OPgWpYLARbKWhQlCHTogoSkjEkQwclEQcNJEwlfgD/AM6NBo1xjhx5LyJ0cYEDHGkJqhtBGKUpm3SFii3vb2956wPB/t+9raEgSs52fuus89613rftdcNH8/c9q9++oe/Vzb5P+3McyNcfm2CcPj9af9w6gwjTwzvethx3Bx3x8xwd1wNM8dMcTNUHTfFLPnX6nVmZpeIYwf3cWD/PhbrvlPkblAzVFurKS6GmmGqqComaS+qmBoTI0Ncu3mXuGvWnrJ+ZSxweDgnkHf8ndVTdbiT3M7cQp2Z31dRTecHAfqydp4ejhwazh6Zezfnu98E1WIQwB3crEuJ2Y45PBTAQUVR9X4At66AppoEVO1Q8sgAOKJJjw6Am6OquDmvHskZ3R87gW+vlHz98zpmiqphkkRVbQtsfPTOC30lJKFbFTgp83bWh7Zx/uX1B6w3hI3NkkZTqEpBRDBRzG2AQHcwcYwEkOGkTERREbLQ/8HxJwuW7zdYrzfZ2iopy4qqEspKaDYravVm33k1R91Q69FA1VBRzFIVvXbx5AgXT44A8MWP81yfu0utIR2aVK3vfCnGrcUNxp8a7gKYKiLCvY2SUvo/aNtnM3e49ucK9S3p0aDdaT0UAVsKi2tVi6IWwNL9JvdqTdihaz79/l+u/rHMxmaJVMLkS2OoKKLWacdeE3IsSxctc2D5Qcl6vUlVVgNt+fkPPcFFmTw1xruvT7SCd7nuVhDQvECzJH90h0azRKoKFRkAmP5lKTWAGRdefoZL554FQNUxB92WvYeA5UN4PtSqwB2phKqsqMpBgAunRhFR3j49zuU3jnX8k6fHEQKXzh1jbmGDuYU6s4t1rt6socUeLLZHhYO2AHSHmzt19ihTZ48O8Hzl/AmunD/BjTvrvPfNX3hWsNpwJCvwYm+ngug4UilSCSq6k8YPtxDwfA+WRawIWFbgscDiULcCEaWqBFOlrLazurupOSHLqGnEKJAY8TwBEHumqUirAjNm52vEPPRV4p01XXMPAQhUBjcWm9QZwijwokgAeYHlHYA06KR1cT6ZvoV56pDUJQEjw0KeaMgj1hPEY4vz2A4eW0/e1qA7KtQdsxTYAG0H3iG4xyK1Y+xm7XmEPOJZDiENzLi2WZHngeOjj2Pe+sMg4GRYyLAsx7ME4FnsyTD9pr0PEc8zPGRAwKXBkYOPEd96cZRvf11g9MDe7e3R4Z4Q+vyEnn3P4t0XzK/W+ODN5/kPfRLewAJVEQ0AAAAASUVORK5CYII%3D" style="border: medium none; position: absolute; z-index: 2147483647; opacity: 0.6; display: none;" width="24" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 05:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-behaviour-in-pivot-table/m-p/197626#M57229</guid>
      <dc:creator>pdumas</dc:creator>
      <dc:date>2009-12-29T05:00:18Z</dc:date>
    </item>
    <item>
      <title>Set Analysis behaviour in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-behaviour-in-pivot-table/m-p/197627#M57230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not completely following your post, but it sounds like you are trying to ignore the dimension. In order to ignore the dimension in an aggregate function, use the TOTAL modifier: Sum(TOTAL Sales).&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;concat(TOTAL {$&amp;lt;CallPickedUpTime={"$(='&amp;lt;'&amp;amp;column(0))"},&lt;BR /&gt;CallFinalTime={"$(='&amp;gt;'&amp;amp;column(0))"}&amp;gt;} Agent_ID,' ')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This should give you a list of all Agent_IDs in the data set:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;concat(TOTAL Agent_ID,' ')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 05:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-behaviour-in-pivot-table/m-p/197627#M57230</guid>
      <dc:creator />
      <dc:date>2009-12-29T05:29:16Z</dc:date>
    </item>
    <item>
      <title>Set Analysis behaviour in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-behaviour-in-pivot-table/m-p/197628#M57231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With your suggestion, I get a chain with all Agent_IDs, which is better,&lt;/P&gt;&lt;P&gt;but I want only the Agent_IDs where the CallPickUpTime is before the timestamp in the current dimension and the CallFinalTime after timestamp in the current dimension.&lt;/P&gt;&lt;P&gt;eg : Data :&lt;/P&gt;&lt;P&gt;Agent ID, CallPickUpTime, CallFinalTime&lt;/P&gt;&lt;P&gt;1, 10am, 10:12 am&lt;/P&gt;&lt;P&gt;2, 10am, 10:09 am&lt;/P&gt;&lt;P&gt;Table&lt;/P&gt;&lt;P&gt;10am / 1 2 (agents 1 and 2 on call)&lt;/P&gt;&lt;P&gt;10:10am / 1 (agent 1 on call)&lt;/P&gt;&lt;P&gt;10:20am / - (no agent on call)&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pierre.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 06:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-behaviour-in-pivot-table/m-p/197628#M57231</guid>
      <dc:creator>pdumas</dc:creator>
      <dc:date>2009-12-29T06:17:50Z</dc:date>
    </item>
  </channel>
</rss>

