<?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: Why are dimension values not grouped? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Why-are-dimension-values-not-grouped/m-p/2136498#M92360</link>
    <description>&lt;P&gt;Yes, because even though it shows only MMM YYYY, it is still storing the full date.&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;   Date(MonthStart(messages.created_at), 'MMM YYYY') AS [MonthYear], &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2023 02:15:47 GMT</pubDate>
    <dc:creator>Lisa_P</dc:creator>
    <dc:date>2023-11-10T02:15:47Z</dc:date>
    <item>
      <title>Why are dimension values not grouped?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-are-dimension-values-not-grouped/m-p/2136479#M92357</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have the following data (just one table, &lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;all columns in it are dimensions, and it is identical to one table from the data model&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_0-1699573783041.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119675i350417513E5CC3B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_0-1699573783041.png" alt="RoyBatty_0-1699573783041.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and on sheet I createed a new table that has &lt;CODE&gt;MonthYear&lt;/CODE&gt; as dimension and one &lt;CODE&gt;Count&lt;/CODE&gt; measure: &lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Count(distinct [auth_user_id])&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, values of&amp;nbsp;&lt;CODE&gt;MonthYear&lt;/CODE&gt; dimension are not grouped. For example, you can see multiple "&lt;STRONG&gt;Nov 2023&lt;/STRONG&gt;":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_1-1699573943974.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119676i259E9CEA2D716943/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_1-1699573943974.png" alt="RoyBatty_1-1699573943974.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Do you know why dimension values are not grouped?&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;As far as I understood how Qlik works, in this case they should be grouped, there should be only one "&lt;EM&gt;Nov 2023&lt;/EM&gt;" which will show the total number of different users for that MonthYear value, right? &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Can you help me to solve this so that in this case the values of the dimension "MonthYear" are grouped?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 00:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-are-dimension-values-not-grouped/m-p/2136479#M92357</guid>
      <dc:creator>RoyBatty</dc:creator>
      <dc:date>2023-11-10T00:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why are dimension values not grouped?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-are-dimension-values-not-grouped/m-p/2136481#M92358</link>
      <description>&lt;P&gt;How did you create your MonthYear Dimension ?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 00:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-are-dimension-values-not-grouped/m-p/2136481#M92358</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2023-11-10T00:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why are dimension values not grouped?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-are-dimension-values-not-grouped/m-p/2136495#M92359</link>
      <description>&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;These are the parts of the load-scripts that show how "MonthYear" is created:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[Relevant Activities]:&lt;BR /&gt;LOAD &lt;BR /&gt;   users_auth.id AS [auth_user_id],&lt;BR /&gt;   Date(Floor(users_auth.created_at), 'YYYY-MM-DD') AS [Activity Date],&lt;BR /&gt;   Date(Floor(users_auth.created_at), 'MMM YYYY') AS [MonthYear], &lt;BR /&gt;FROM [lib://QVDFOLDER/users.qvd] (qvd);&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;CONCATENATE([Relevant Activities])&lt;BR /&gt;LOAD &lt;BR /&gt;   auth_user_id AS [auth_user_id],&lt;BR /&gt;   Date(Floor(payments.created_at), 'YYYY-MM-DD') AS [Activity Date],&lt;BR /&gt;   Date(Floor(payments.created_at), 'MMM YYYY') AS [MonthYear], &lt;BR /&gt;RESIDENT [payments];&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;CONCATENATE([Relevant Activities])&lt;BR /&gt;LOAD &lt;BR /&gt;   auth_user_id AS [auth_user_id],&lt;BR /&gt;   Date(Floor(messages.created_at), 'YYYY-MM-DD') AS [Activity Date],&lt;BR /&gt;   Date(Floor(messages.created_at), 'MMM YYYY') AS [MonthYear], &lt;BR /&gt;RESIDENT [costs];&lt;BR /&gt;&lt;BR /&gt;...&amp;nbsp;and&amp;nbsp;so&amp;nbsp;on&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;So, maybe the issue is because we have multiple concatenations? Or maybe the issue is the way we create "MonthYear":&amp;nbsp;&lt;CODE&gt;Date(Floor(messages.created_at), 'MMM YYYY') AS [MonthYear]&lt;/CODE&gt; ?&lt;/P&gt;
&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt; &lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;The problem is definitely with the load-script, because when I added only the "&lt;EM&gt;MonthYear&lt;/EM&gt;" dimension, without any measure, it can be seen that it is not grouped (the image below shows multiple "Nov 2018"):&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_0-1699582510140.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/119680i8EC4136A4621D243/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_0-1699582510140.png" alt="RoyBatty_0-1699582510140.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;But I don't understand why it is not grouped&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;why there isn't just one "Nov 2018"?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 02:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-are-dimension-values-not-grouped/m-p/2136495#M92359</guid>
      <dc:creator>RoyBatty</dc:creator>
      <dc:date>2023-11-10T02:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why are dimension values not grouped?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-are-dimension-values-not-grouped/m-p/2136498#M92360</link>
      <description>&lt;P&gt;Yes, because even though it shows only MMM YYYY, it is still storing the full date.&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;   Date(MonthStart(messages.created_at), 'MMM YYYY') AS [MonthYear], &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 02:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-are-dimension-values-not-grouped/m-p/2136498#M92360</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2023-11-10T02:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why are dimension values not grouped?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-are-dimension-values-not-grouped/m-p/2136502#M92361</link>
      <description>&lt;P&gt;When I changed from:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Date(Floor(messages.created_at), 'MMM YYYY') AS [MonthYear]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Date(MonthStart(Date(Floor(messages.created_at), 'YYYY-MM-DD')), 'MMM YYYY') As [MonthYear],&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I'm not sure why, but I assume that when I use the first way, then even though it shows "Nov 2018" - Qlik treats each "Nov 2018" as a separate date (but if that's the case, why wasn't there more "Nov 2018"?).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;When I use another way to create "MonthYear", &lt;CODE&gt;MonthStart()&lt;/CODE&gt; function makes all dates from Month/Year equal.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 02:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-are-dimension-values-not-grouped/m-p/2136502#M92361</guid>
      <dc:creator>RoyBatty</dc:creator>
      <dc:date>2023-11-10T02:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why are dimension values not grouped?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-are-dimension-values-not-grouped/m-p/2136503#M92362</link>
      <description>&lt;P&gt;MonthStart makes it the1st of the month, but only shows the Month and year.&lt;/P&gt;
&lt;P&gt;Originally it was keeping the Day, but not presenting it.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 02:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-are-dimension-values-not-grouped/m-p/2136503#M92362</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2023-11-10T02:40:27Z</dc:date>
    </item>
  </channel>
</rss>

