<?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: Always one specific dimension first in pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Always-one-specific-dimension-first-in-pivot-table/m-p/2048184#M86191</link>
    <description>&lt;P&gt;Hello, Henrikalmen,&lt;/P&gt;
&lt;P&gt;Why don't you write a condition on your measure like this:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;if(GetObjectField(0) = 'FIRST_FIELD_NAME',&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp; SUM(VALUE) // YOUR EXPRESSION&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp; 'The first column must to be "NAME OF THE FIELD"'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;So when the first column is not the column you want it will display that message.&lt;/P&gt;
&lt;P&gt;To make it clearer for the user you can use this, to just show the error message just on the first row:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;if(GetObjectField(0) = 'FIRST_FIELD_NAME',&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp; SUM(VALUE) // YOUR EXPRESSION&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; if(rowno() = 1,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'The first column must to be "NAME OF THE FIELD"'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; ,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ''&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; )&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 12 Mar 2023 14:20:13 GMT</pubDate>
    <dc:creator>rpennacchi</dc:creator>
    <dc:date>2023-03-12T14:20:13Z</dc:date>
    <item>
      <title>Always one specific dimension first in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Always-one-specific-dimension-first-in-pivot-table/m-p/2046079#M86037</link>
      <description>&lt;P&gt;I have a pivot table in Qlik Sense, and there are multiple dimensions for rows and columns that the user is allowed to move around to explore the data. The first row dimension should always stay the same - it must not be moved. If the user moves it I want to use the calculation condition for the pivot table to display an error message so that the user is forced to move that field back to its obligatory location.&lt;/P&gt;
&lt;P&gt;Apparently it is not possible to use GetObjectDimension() as calculation condition, it just fails with an error (even though it is actually possible to use that expression in the "Displayed message" field for when the calculation condition fails).&lt;/P&gt;
&lt;P&gt;Can I achieve what I want some other way? I'm out of ideas. (And why is GetObjectDimension() not usable in the calculation condition?)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 09:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Always-one-specific-dimension-first-in-pivot-table/m-p/2046079#M86037</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2023-03-07T09:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Always one specific dimension first in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Always-one-specific-dimension-first-in-pivot-table/m-p/2047914#M86177</link>
      <description>&lt;P&gt;An alternative "solution" (although it's not a solution) I've come up with is to create a new dimension with the label "WARNING! Move dimension X back" and the measure is something like ='You must have dimension X as first dimension', and I set the calculation condition to =GetObjectDimension(0)&amp;lt;&amp;gt;'[thedimensionthatmustbefirst]' so that this dimension is only visible when the problem occurs. It's not what I want and the user might miss it, but it's better than nothing.&lt;/P&gt;
&lt;P&gt;Better ideas are welcome! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 13:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Always-one-specific-dimension-first-in-pivot-table/m-p/2047914#M86177</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2023-03-10T13:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Always one specific dimension first in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Always-one-specific-dimension-first-in-pivot-table/m-p/2048184#M86191</link>
      <description>&lt;P&gt;Hello, Henrikalmen,&lt;/P&gt;
&lt;P&gt;Why don't you write a condition on your measure like this:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;if(GetObjectField(0) = 'FIRST_FIELD_NAME',&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp; SUM(VALUE) // YOUR EXPRESSION&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp; 'The first column must to be "NAME OF THE FIELD"'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;So when the first column is not the column you want it will display that message.&lt;/P&gt;
&lt;P&gt;To make it clearer for the user you can use this, to just show the error message just on the first row:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;if(GetObjectField(0) = 'FIRST_FIELD_NAME',&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp; SUM(VALUE) // YOUR EXPRESSION&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; if(rowno() = 1,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'The first column must to be "NAME OF THE FIELD"'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; ,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ''&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; )&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2023 14:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Always-one-specific-dimension-first-in-pivot-table/m-p/2048184#M86191</guid>
      <dc:creator>rpennacchi</dc:creator>
      <dc:date>2023-03-12T14:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Always one specific dimension first in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Always-one-specific-dimension-first-in-pivot-table/m-p/2048206#M86194</link>
      <description>&lt;P&gt;But of course! Why did I not think of that! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Thanks! And great idea with the error message in just one place. (I'm also adding columnno()=0 to that message criteria).&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2023 20:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Always-one-specific-dimension-first-in-pivot-table/m-p/2048206#M86194</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2023-03-12T20:16:32Z</dc:date>
    </item>
  </channel>
</rss>

