What is the simplest MDX request?
I want to test whether my MDX endpoint answers correctly to a very simple request.
In SQL, I would say SELECT 1;
What is the simplest MDX request?
I want to test whether my MDX endpoint answers correctly to a very simple request.
In SQL, I would say SELECT 1;
I'm not sure that you can bring back constants in an MDX query - you've piqued my interest. I would just fire off a query against a base measure in your cube, if you don't specify any additional axis you'll get a single value result set.
SELECT [MeasureGroup].[Measure]
FROM [Cube]
Pretty basic - here's MS guide to the basic syntax for an MDX statement.
This query will display your first measure against the top level of the first dimension it finds. All you need to specify is the name of your cube. It will return one number.
SELECT {Dimensions(0).defaultMember} ON ROWS,
{[Measures].defaultMember} ON COLUMNS
FROM [NameOfCube]
WITH MEMBER Test AS 1
SELECT Test ON COLUMNS FROM [Cube]
Constants all the way down.
I guess the simplest MDX request would be : SELECT FROM cubeName