RunQuery Script Examples

From QPR ProcessAnalyzer Wiki
Revision as of 22:30, 10 November 2021 by Ollvihe (talk | contribs) (Created page with "This page contains script examples for the RunScript script command. This example runs an Web_API:_RunScript/query|expression anal...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page contains script examples for the RunScript script command.

This example runs an expression analysis.

(SELECT 'TargetTable', '#MyTempTable') UNION ALL
(SELECT 'Configuration', '
{
	"Dimensions": [
		{
			"Name": "dimension0",
			"Expression": "Attribute(\"Company Code\")"
		}
	],
	"Values": [
		{
			"Name": "measure0",
			"Expression": "Count(_)",
			"AggregationExpression": "Sum(_)"
		}
	],
	"Ordering": [
		{
			"Name": "measure0",
			"Direction": "Descending"
		}
	],
	"AggregateOthers": true,
	"MaximumRowCount": 20,
	"EnableResultCaching": true,
	"ModelId": 140559
}
')
--#RunQuery