The easiest MDX request?

What is the easiest MDX request ?

I want to check if the MDX endpoint answers a very simple request correctly.
In SQL, I would saySELECT 1;

+3
source share
5 answers

This query will display your first dimension against the top level of the first dimension that it finds. All you need to specify is the name of your cube. He will return a single number.

 SELECT {Dimensions(0).defaultMember} ON ROWS, 
 {[Measures].defaultMember} ON COLUMNS 
 FROM [NameOfCube]
+6
source

I think the simplest MDX query is: SELECT FROM cubeName

+5
source

, MDX- - . , - , .

SELECT [MeasureGroup].[Measure]
  FROM [Cube]

- MS MDX.

+3
WITH MEMBER Test AS 1
SELECT Test ON COLUMNS FROM [Cube]

.

+2

MDSchema. select * from $system.Discover_Schema_Rowsets, . :

TOP 0 [CATALOG_NAME] $system.DBSCHEMA_CATALOGS

1 , XMLA.

; ( ), . :

PS C: > Invoke-ASCmd -Query "CREATE MEMBER [mycube].x AS 1" -Server myserver -Database mydatabase

< return xmlns = "urn: schemas-microsoft-com: xml-" < root xmlns = "urn: schemas-microsoft-com: xml-analysis: empty" > </root> </ >

0

Source: https://habr.com/ru/post/1755483/


All Articles