SQL Server MDX query parameter -


I am very new in the MDX query. I am trying to pass a parameter through my query. This is giving me this SQL error:

Creating the query failed.
The function is expected to have a tufal expression for 5 arguments.
A taple set expression was used.

is the query:

  SELECT {[remedy]. [DENOMINATOR [Director] [Indicators], [remedy]. Columns on [target]}, non-empty ([dim indicator]. [Indicator set]. [Indicator set] .ALLMBERS, [dim indicator]. [Indicator group] [Indicator group]. [Indicator name]. [Indicator's Name]. [Name of Indicator] .MEMEMBERS] [Dummy-Dashboard] --Parameter's query on rows goes here WHERE (Strontosateender ID)  

If you need to ask a query with the parameter, then you will need to use XMLA for this. Please see the examples given below for xmla:

  & lt; Envelope xmlns = "http://schemas.xmlsoap.org/soap/envelope/" & gt; & Lt; Body & gt; & Lt; Execute xmlns = "karash: schema-microsoft-com: xml-analysis" & gt; & Lt; Command & gt; & Lt; Statement & gt; Here's your code & lt; / Statement & gt; & Lt; / Command & gt; & Lt; Properties & gt; & Lt; PropertyList xmlns = "karash: schema-microsoft-com: xml-analysis" & gt; & Lt; DataSourceInfo & gt; Provider = MSOLAP; Data source = local; & Lt; / DataSourceInfo & gt; & Lt; List & gt; CubeName & lt; / List & gt; & Lt; Format & gt; Tabbed & lt; / Format & gt; & Lt; Content & gt; Data & lt; / Content & gt; & Lt; Timeout & gt; 0 & lt; / Timeout & gt; & Lt; / PropertyList & gt; & Lt; / Properties & gt; & Lt; Parameter xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "http://www.w3.org/2001/XMLSchema" xmlns = "Blur: Schema- Microsoft Com : XML-Analysis "& gt; & Lt; Parameter & gt; & Lt; Name & gt; ParameterName & lt; / Name & gt; & Lt; Value xsi: type = "xsd: string" & gt; Parameter value & lt; / Value & gt; & Lt; / Parameters & gt; & Lt; / Parameters & gt; & Lt; / Execute & gt; & Lt; / Body & gt; & Lt; / Envelope & gt;    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -