<?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: Include all the dimension values regardless of user selection of another dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Include-all-the-dimension-values-regardless-of-user-selection-of/m-p/1752276#M57950</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/124985"&gt;@tas_taba1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really don't fully understand the calculations , but the suggestion I can make is to use valuelist and Set Analysis.&lt;/P&gt;&lt;P&gt;I don't think you have a many Race, so I get the output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42201i87B575B5754BC61D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;PFA the qvf file&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2020 08:30:40 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-10-14T08:30:40Z</dc:date>
    <item>
      <title>Include all the dimension values regardless of user selection of another dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Include-all-the-dimension-values-regardless-of-user-selection-of/m-p/1751189#M57831</link>
      <description>&lt;P&gt;Hello Qlikkers,&lt;/P&gt;&lt;P&gt;I have stumbled upon a problem and was hoping if someone could help me out. I have a dataset with the following fields-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="dataset" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42028i219D3A92EA464A4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="dataset.JPG" alt="dataset" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;dataset&lt;/span&gt;&lt;/span&gt;I use the fields- &lt;STRONG&gt;CinemaStratum&lt;/STRONG&gt;, &lt;STRONG&gt;CinemaPSU&lt;/STRONG&gt; and &lt;STRONG&gt;UtilityWt&lt;/STRONG&gt; to calculate the measure &lt;STRONG&gt;Standard&lt;/STRONG&gt; &lt;STRONG&gt;Error.&amp;nbsp;&lt;/STRONG&gt;And the expression I use for this is-&lt;/P&gt;&lt;P&gt;'&lt;EM&gt;sqrt(Sum(ALL Aggr(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sqr(Sum(UtilityWt)-(Sum(TOTAL &amp;lt;CinemaStratum&amp;gt; UtilityWt)/Count(DISTINCT ALL &amp;lt;CinemaStratum&amp;gt; CinemaPSU))) * (Count(DISTINCT ALL &amp;lt;CinemaStratum&amp;gt; CinemaPSU)/(Count(DISTINCT ALL &amp;lt;CinemaStratum&amp;gt; CinemaPSU)-1))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;, CinemaPSU, CinemaStratum)))&lt;/EM&gt;'&lt;/P&gt;&lt;P&gt;It is giving me the correct SE for the entire dataset-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output1" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42006i99BD11969DB2916F/image-size/large?v=v2&amp;amp;px=999" role="button" title="output1.JPG" alt="output1" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;output1&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, when I use a filter pane for another dimension e.g. &lt;STRONG&gt;Race&lt;/STRONG&gt;, it is also showing the correct SE for the particular selection-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output2" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42029iC9AC6C31D6175A4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="output2.JPG" alt="output2" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;output2&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when I create a separate table with &lt;STRONG&gt;Race&lt;/STRONG&gt; as the &lt;STRONG&gt;dimension&lt;/STRONG&gt; and &lt;STRONG&gt;SE&lt;/STRONG&gt; as &lt;STRONG&gt;measure&lt;/STRONG&gt;, it is no longer giving the correct row by row SE for each race values-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wrong_result" style="width: 452px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42012i3A073E97496055CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="wrong_result.jpg" alt="wrong_result" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;wrong_result&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Because now it is no longer taking into account some of the stratums/PSUs whose value does not exist for the particular race type. But I want all the stratums/PSU's to be included and their corresponding values to be considered as '0' in the respective SE calculation. The desired table is below-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="desired_result" style="width: 272px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42030i5A81FAED721A975A/image-size/large?v=v2&amp;amp;px=999" role="button" title="correct_result.JPG" alt="desired_result" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;desired_result&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am attaching the app and excel file (for SE calculation demo) for reference. If anyone can give any insight or share their valuable insights, it would be great! Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Include-all-the-dimension-values-regardless-of-user-selection-of/m-p/1751189#M57831</guid>
      <dc:creator>tas_taba1</dc:creator>
      <dc:date>2024-11-16T01:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Include all the dimension values regardless of user selection of another dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Include-all-the-dimension-values-regardless-of-user-selection-of/m-p/1752276#M57950</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/124985"&gt;@tas_taba1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really don't fully understand the calculations , but the suggestion I can make is to use valuelist and Set Analysis.&lt;/P&gt;&lt;P&gt;I don't think you have a many Race, so I get the output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42201i87B575B5754BC61D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;PFA the qvf file&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 08:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Include-all-the-dimension-values-regardless-of-user-selection-of/m-p/1752276#M57950</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-10-14T08:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Include all the dimension values regardless of user selection of another dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Include-all-the-dimension-values-regardless-of-user-selection-of/m-p/1752509#M57974</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/56648"&gt;@Taoufiq_Zarra&lt;/a&gt;, thank you for your response. It works like charm for this dataset.&lt;/P&gt;&lt;P&gt;Having said that, the real dataset I am working on is far more complex and vast.So, I have to be able to create a &lt;STRONG&gt;dynamic valuelist()&lt;/STRONG&gt; where&amp;nbsp; users can select the dimensions at will, e.g., in this case if I want to select the &lt;STRONG&gt;AgeYrs &lt;/STRONG&gt;field instead of &lt;STRONG&gt;Race&lt;/STRONG&gt; as table dimension and still want to see the &lt;STRONG&gt;row by row SE calculations&lt;/STRONG&gt; or if I want to create a pivot table with &lt;STRONG&gt;Race&lt;/STRONG&gt; as the 1st row value and then have &lt;STRONG&gt;gender&lt;/STRONG&gt; as the second row value and so on. Basically I want the solution for multi-dimensional row-level calculations in tables/pivot tables that are also responsive to filters.&lt;/P&gt;&lt;P&gt;But your solution definitely led me to the right direction. May be passing variables as parameters to the valuelist() function is a reasonable option here? I will keep exploring. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 15:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Include-all-the-dimension-values-regardless-of-user-selection-of/m-p/1752509#M57974</guid>
      <dc:creator>tas_taba1</dc:creator>
      <dc:date>2020-10-14T15:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Include all the dimension values regardless of user selection of another dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Include-all-the-dimension-values-regardless-of-user-selection-of/m-p/1753915#M58115</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I didn't have a chance to dive deep into the logic, but from a quick look at your formula I have a feeling that the key to your problem is in a particular rule about using AGGR in a chart, that I am calling in my book "The Third Law of AGGR". Henric Cronström calls the same issue the "grain mismatch".&lt;/P&gt;&lt;P&gt;In short, the dimensions of your AGGR function have to be more granular than the dimensions of your chart. Using your AGGR formula in a chart by Race violates "The Third Law of AGGR", or creates a "grain mismatch", hence producing the wrong results.&lt;/P&gt;&lt;P&gt;You can learn this and a lot more about AGGR from my Masters Summit lecture about AGGR and Set Analysis, that I will be delivering virtually on November 18th. I am inviting you and everyone who is interested in the topic to check out our web site. See the link below.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 01:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Include-all-the-dimension-values-regardless-of-user-selection-of/m-p/1753915#M58115</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2020-10-20T01:29:38Z</dc:date>
    </item>
  </channel>
</rss>

