<?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: Use calculated dimension in hypercubedef in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-calculated-dimension-in-hypercubedef/m-p/1521935#M9717</link>
    <description>My question is actually where to put that calculated dimension inside the config.</description>
    <pubDate>Tue, 18 Dec 2018 06:55:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-18T06:55:02Z</dc:date>
    <item>
      <title>Use calculated dimension in hypercubedef</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-calculated-dimension-in-hypercubedef/m-p/1521882#M9715</link>
      <description>&lt;P&gt;May I know how to send a calculated dimension in qlik config?&lt;/P&gt;&lt;P&gt;Usually, when sending the config to engine, we put the field name under qFieldDefs.&amp;nbsp; In below code, it's SOMEFIELD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
	"handle": 1,
	"method": "CreateSessionObject",
	"params": {
		"qProp": {
			"qInfo": {
				"qId": "",
				"qType": "HyperCube"
			},
			"qHyperCubeDef": {
				"qDimensions": [
					{
						"qNullSuppression": false,
						"qDef": {
							"qFieldDefs": [
								"SOMEFIELD"
							]
						}
					}
				],
				"qMeasures": [],
				"qInitialDataFetch": [
					{
						"qHeight": 10000,
						"qWidth": 1
					}
				]
			}
		}
	}
}&lt;/PRE&gt;&lt;P&gt;However, I want to pass a calculated dimension, like the following:&lt;/P&gt;&lt;PRE&gt;AGGR(DISTINCT Rank(FIELD1,4,1),FIELD2)&lt;/PRE&gt;&lt;P&gt;I really don't have any idea where to put a calculated dimension.&amp;nbsp; Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-calculated-dimension-in-hypercubedef/m-p/1521882#M9715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Use calculated dimension in hypercubedef</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-calculated-dimension-in-hypercubedef/m-p/1521923#M9716</link>
      <description>&lt;P&gt;It should be sufficient to add a '=' character to the beginning of the string used for the qFieldDefs property. So instead of "SOMEFIELD" you could write&lt;/P&gt;
&lt;PRE&gt;=AGGR(DISTINCT Rank(FIELD1,4,1),FIELD2)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 06:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-calculated-dimension-in-hypercubedef/m-p/1521923#M9716</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-12-18T06:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Use calculated dimension in hypercubedef</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-calculated-dimension-in-hypercubedef/m-p/1521935#M9717</link>
      <description>My question is actually where to put that calculated dimension inside the config.</description>
      <pubDate>Tue, 18 Dec 2018 06:55:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-calculated-dimension-in-hypercubedef/m-p/1521935#M9717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-18T06:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Use calculated dimension in hypercubedef</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-calculated-dimension-in-hypercubedef/m-p/1521961#M9718</link>
      <description>Oh... Just put it right in the "qFieldDefs" list just like you did for "SOMEFIELD".</description>
      <pubDate>Tue, 18 Dec 2018 07:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-calculated-dimension-in-hypercubedef/m-p/1521961#M9718</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-12-18T07:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Use calculated dimension in hypercubedef</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-calculated-dimension-in-hypercubedef/m-p/1521963#M9719</link>
      <description>it doesn't work</description>
      <pubDate>Tue, 18 Dec 2018 07:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-calculated-dimension-in-hypercubedef/m-p/1521963#M9719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-18T07:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Use calculated dimension in hypercubedef</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-calculated-dimension-in-hypercubedef/m-p/1521977#M9720</link>
      <description>&lt;P&gt;Hmm... It should. What kind of error are you getting? I added a calculated dimension to the following example that illustrates how to use hypercubes in the .Net SDK:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/kolsrud/qlik-dot-net-sdk-hypercube-usage/blob/master/HypercubeUsage/Program.cs#L113" target="_blank"&gt;https://github.com/kolsrud/qlik-dot-net-sdk-hypercube-usage/blob/master/HypercubeUsage/Program.cs#L113&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;That example produces a hypercube that is defined like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"qHyperCubeDef": {&lt;BR /&gt;  ...
  "qDimensions": [
    {&lt;BR /&gt;      ...
      "qDef": {
        "qFieldDefs": [
          "=Year(TimeStamp)&amp;amp;'-'&amp;amp;Month(TimeStamp)"
        ],&lt;BR /&gt;        ...
      }
    }
  ],
  "qMeasures": [
    {&lt;BR /&gt;      ...
      "qDef": {&lt;BR /&gt;        ...
        "qDef": "Sum([Sales Amount])"
      }
    }
  ]
}
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 08:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-calculated-dimension-in-hypercubedef/m-p/1521977#M9720</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-12-18T08:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Use calculated dimension in hypercubedef</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Use-calculated-dimension-in-hypercubedef/m-p/1521981#M9721</link>
      <description>Sorry, you're right. It works. I think I might have forgotten to put the '=' sign or create the necessary variable. Thanks a lot.</description>
      <pubDate>Tue, 18 Dec 2018 08:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Use-calculated-dimension-in-hypercubedef/m-p/1521981#M9721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-18T08:22:17Z</dc:date>
    </item>
  </channel>
</rss>

