<?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: Need help with set expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-set-expression/m-p/2041589#M1222787</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/219405"&gt;@wanijkesv&lt;/a&gt;&amp;nbsp; There is a minor issue with the set analysis Expression. Also, which Year are you looking at?&lt;/P&gt;
&lt;P&gt;Something like below expression should help:&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Year={"$(=Year(Max(OrderDate)))"}&amp;gt;}LineSalesAmount)&lt;/P&gt;
&lt;P&gt;Try to replicate the same expression using your Dimensions.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2023 17:08:40 GMT</pubDate>
    <dc:creator>sidhiq91</dc:creator>
    <dc:date>2023-02-23T17:08:40Z</dc:date>
    <item>
      <title>Need help with set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-set-expression/m-p/2041559#M1222786</link>
      <description>&lt;DIV class="_3xX726aBn29LDbsDtzr_6E _1Ap4F5maDtT1E1YuCiaO0r D3IL3FD0RFy_mkKLPwL4" data-click-id="text" data-adclicklocation="media"&gt;
&lt;DIV class="_292iotee39Lmt0MkQZ2hPV RichTextJSON-root"&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I am new to qliksense and I'm trying out a scenario as part of my learning. I have two tables Sales(contains Sales_Date) and Target(contains Target_Year and Target_Value). Sales table has values for every day and Target has year level data. I'm trying to create a table visual with both data combined. So the table visual will have the following columns: Sales_Date Target_Value&lt;/P&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Since the Target table has year level data, I'm trying to bring Target_Value into the table visual using the below set expression in a measure =Sum({&amp;lt;Target_Year = {$(=Year(Date(Sales_Date)))}&amp;gt;}Target_Value)&lt;/P&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;This doesn't seem to work and I get no value. The expression editor doesn't throw any error. The next option would be to create a Sales_Year column in the Sales table and associate it with the Target_Year in Target table to get the corresponding Target_Value. But I would like to understand why the above expression doesn't work. Do set expression not work in row level? Any guidance is greatly appreciated.&lt;/P&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Thank you.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Feb 2023 16:21:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-set-expression/m-p/2041559#M1222786</guid>
      <dc:creator>wanijkesv</dc:creator>
      <dc:date>2023-02-23T16:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-set-expression/m-p/2041589#M1222787</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/219405"&gt;@wanijkesv&lt;/a&gt;&amp;nbsp; There is a minor issue with the set analysis Expression. Also, which Year are you looking at?&lt;/P&gt;
&lt;P&gt;Something like below expression should help:&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Year={"$(=Year(Max(OrderDate)))"}&amp;gt;}LineSalesAmount)&lt;/P&gt;
&lt;P&gt;Try to replicate the same expression using your Dimensions.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 17:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-set-expression/m-p/2041589#M1222787</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2023-02-23T17:08:40Z</dc:date>
    </item>
  </channel>
</rss>

