<?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: Set Analysis with Month as Dimension in a Dimension Table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480388#M100697</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/288308"&gt;@AndreSchwarze&lt;/a&gt;&amp;nbsp; Without looking at your sample data or app it will be hard to say where the issue is. But expression I provided should work. Last thing I would like to highlight there is a typo (additional comma) in your expression, just see if resolving that works.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2024 09:32:42 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2024-09-09T09:32:42Z</dc:date>
    <item>
      <title>Set Analysis with Month as Dimension in a Dimension Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480067#M100648</link>
      <description>&lt;P&gt;Hello Qlik-Community,&lt;/P&gt;
&lt;P&gt;I´m working on the following issue.&lt;BR /&gt;I have a table with certain business units and want to create two KPI in a table next to each other:&lt;BR /&gt;1. Turnover per Business Unit YTD (no problem)&lt;BR /&gt;2. Turnover per Business Unit previos Year until Month(today())&lt;/P&gt;
&lt;P&gt;It should look like this:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="46px"&gt;Business Unit&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="46px"&gt;Turnover YTD&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="46px"&gt;Turnover prev. YTD (until Month(today()))&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;A&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;1000&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;800&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;B&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;5000&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;6000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;C&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;3000&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;3500&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;D&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;200&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;400&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;For the first bullet point my syntax looks as follows (I´m including and excluding certain parameters)&lt;BR /&gt;SUM(&lt;BR /&gt;{&amp;lt; V_BelegKopf.BelegArt={"C","I"}, &lt;BR /&gt;[MASTER_CAL.Year]={'$(=Year(Today()))'}, &lt;BR /&gt;[Client.Clientnumber] -={'0815'}, &lt;BR /&gt;[Parts.Partgroup]-={'4711',1234','7896'}, &lt;BR /&gt;[Client.Country]={'DE','AT', 'CH', 'LU'} &amp;gt;} &lt;BR /&gt;[Document.Total])&lt;BR /&gt;&lt;BR /&gt;It creates the desired output per each busines unit in the table.&lt;BR /&gt;&lt;BR /&gt;For the second bullet point/third row I tried the following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;SUM({&amp;lt; &lt;BR /&gt;{&amp;lt; V_BelegKopf.BelegArt={"C","I"}, , &lt;BR /&gt;[MASTER_CAL.Year]=&lt;FONT color="#FF0000"&gt;{'$(=Year(Today())-1)'}&lt;/FONT&gt;,&lt;BR /&gt;[MASTER_CAL.Month]=&lt;FONT color="#FF0000"&gt;{"&amp;lt;=$(=Month(Today()))"}&lt;FONT color="#000000"&gt;,&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;[Client.Clientnumber] -={'0815'}, &lt;BR /&gt;[Parts.Partgroup]-={'4711',1234','7896'}, &lt;BR /&gt;[Client.Country]={'DE','AT', 'CH', 'LU'} &amp;gt;} &lt;BR /&gt;[Document.Total])&lt;BR /&gt;&lt;BR /&gt;It results in NULL-Values.&lt;BR /&gt;I tried also different versions including a range from Yearstart, changed &lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt; to &lt;FONT color="#FF0000"&gt;'&lt;FONT color="#000000"&gt;, did Month(addyears(today(),-1)) as parameter and a lot more. Nothing worked.&lt;BR /&gt;&lt;BR /&gt;Addtionally I have a Graph to compare absolute and relative the differnces between both values with the additional dimension of the month (To display the difference by month) and the basic IF-Condition:&lt;BR /&gt;IF(MONTH(TODAY())&amp;gt;=[MASTER_CAL.Month] worked and only shows the months until today.&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Copying that before the SUM()-Set is not working as well.&lt;BR /&gt;Thereof I´m looking for your support. Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 10:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480067#M100648</guid>
      <dc:creator>AndreSchwarze</dc:creator>
      <dc:date>2024-09-06T10:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Month as Dimension in a Dimension Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480119#M100655</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/288308"&gt;@AndreSchwarze&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Ensure there are no extra commas or misplaced brackets in your set analysis.&lt;BR /&gt;&lt;BR /&gt;SUM(&lt;BR /&gt;{&amp;lt; V_BelegKopf.BelegArt={"C","I"},&lt;BR /&gt;[MASTER_CAL.Year]={'$(=Year(Today())-1)'},&lt;BR /&gt;[MASTER_CAL.Month]={"&amp;lt;=$(=Month(Today())&lt;STRONG&gt;)&lt;/STRONG&gt;"},&lt;BR /&gt;[Client.Clientnumber] -={'0815'},&lt;BR /&gt;[Parts.Partgroup]-={'4711','1234','7896'},&lt;BR /&gt;[Client.Country]={'DE','AT','CH','LU'} &amp;gt;}&lt;BR /&gt;[Document.Total])&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 10:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480119#M100655</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-09-06T10:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Month as Dimension in a Dimension Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480120#M100656</link>
      <description>&lt;P&gt;I corrected the original question. It was a mistake as I was typing instead of copy&amp;amp;pasting from my original code. Thank you for pointing that out.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 10:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480120#M100656</guid>
      <dc:creator>AndreSchwarze</dc:creator>
      <dc:date>2024-09-06T10:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Month as Dimension in a Dimension Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480129#M100659</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/288308"&gt;@AndreSchwarze&lt;/a&gt;&amp;nbsp; If you have date in your calendar, try below&lt;/P&gt;
&lt;P&gt;Date ={"&amp;gt;=$(=yearstart(addyears(today(),-1)))&amp;lt;=$(addyears(today(),-1))"}&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 11:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480129#M100659</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-09-06T11:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Month as Dimension in a Dimension Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480334#M100684</link>
      <description>&lt;P&gt;How is that related to month as a dimension?&lt;BR /&gt;Nevertheless I tried it - allocated it to MASTER_CAL.Date - and it did not work, but gives me a zero-Value&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 05:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480334#M100684</guid>
      <dc:creator>AndreSchwarze</dc:creator>
      <dc:date>2024-09-09T05:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Month as Dimension in a Dimension Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480359#M100686</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/288308"&gt;@AndreSchwarze&lt;/a&gt;&amp;nbsp; there was a typo. try below&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Date ={"&amp;gt;=$(=yearstart(addyears(today(),-1)))&amp;lt;=$(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/FONT&gt;addyears(today(),-1))"}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 08:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480359#M100686</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-09-09T08:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Month as Dimension in a Dimension Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480363#M100690</link>
      <description>&lt;P&gt;Unfortunatly the same result appears: Zero-Values.&lt;BR /&gt;But thank you for your efforts. I appreciate it.&lt;BR /&gt;&lt;BR /&gt;I really don´t understand how to solve the issue as YTD is working perfectly fine...&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 08:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480363#M100690</guid>
      <dc:creator>AndreSchwarze</dc:creator>
      <dc:date>2024-09-09T08:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Month as Dimension in a Dimension Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480368#M100692</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/288308"&gt;@AndreSchwarze&lt;/a&gt;&amp;nbsp; It should work unless you have selections on Month &amp;amp; Year. If you have selections on any other Calendar dimension, you need to exclude that in your set analysis&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SUM({&amp;lt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&amp;lt; V_BelegKopf.BelegArt={"C","I"},&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Date ={"&amp;gt;=$(=yearstart(addyears(today(),-1)))&amp;lt;=$(&lt;FONT color="#FF0000"&gt;=&lt;/FONT&gt;addyears(today(),-1))"},&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;Year=, Month =&lt;/FONT&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Client.Clientnumber] -={'0815'},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Parts.Partgroup]-={'4711',1234','7896'},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Client.Country]={'DE','AT', 'CH', 'LU'} &amp;gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Document.Total])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 08:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480368#M100692</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-09-09T08:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Month as Dimension in a Dimension Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480386#M100696</link>
      <description>&lt;P&gt;I have already excluded - better paraphrased - exchanged year and month with your suggestion. Nevertheless thank you for pointing to that explicitly:&lt;BR /&gt;&lt;BR /&gt;SUM({&amp;lt; &lt;BR /&gt;{&amp;lt; V_BelegKopf.BelegArt={"C","I"}, , &lt;BR /&gt;[MASTER_CAL.Date]&lt;STRONG&gt; =&lt;FONT color="#FF0000"&gt;{"&amp;gt;=$(=yearstart(addyears(today(),-1)))&amp;lt;=$(=addyears(today(),-1))"}&lt;/FONT&gt;&lt;/STRONG&gt;,&lt;BR /&gt;[Client.Clientnumber] -={'0815'}, &lt;BR /&gt;[Parts.Partgroup]-={'4711',1234','7896'}, &lt;BR /&gt;[Client.Country]={'DE','AT', 'CH', 'LU'} &amp;gt;} &lt;BR /&gt;[Document.Total])&lt;BR /&gt;&lt;BR /&gt;The result was as above mentioned: Zero-Values.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 09:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480386#M100696</guid>
      <dc:creator>AndreSchwarze</dc:creator>
      <dc:date>2024-09-09T09:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Month as Dimension in a Dimension Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480388#M100697</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/288308"&gt;@AndreSchwarze&lt;/a&gt;&amp;nbsp; Without looking at your sample data or app it will be hard to say where the issue is. But expression I provided should work. Last thing I would like to highlight there is a typo (additional comma) in your expression, just see if resolving that works.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 09:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480388#M100697</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-09-09T09:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Month as Dimension in a Dimension Table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480390#M100698</link>
      <description>&lt;P&gt;What are the values in you Month field? Are these month names or numbers? You made sure the output of your set-analysis is the same as the values in the field?&lt;BR /&gt;(in case of a dual, set-analysis will always use the textual representation)&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 09:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-with-Month-as-Dimension-in-a-Dimension-Table/m-p/2480390#M100698</guid>
      <dc:creator>madelonjansen</dc:creator>
      <dc:date>2024-09-09T09:42:19Z</dc:date>
    </item>
  </channel>
</rss>

