[英]MDX Query: How to use where condition in query using filter()
Need Suggestions for below mdx query.需要以下 mdx 查询的建议。 It's giving syntax error.
它给出了语法错误。 trying to calculate total sales where pop2019 larger than 5000 & GDPgrowth more than 1
试图计算 pop2019 大于 5000 且 GDP 增长大于 1 的总销售额
SELECT
{[Measures].[Sales]} ON 0,
{[Dim Company Info].[LOC].ALLMEMBERS} ON 1
FROM [Database] where (filter ([Dim Company Info].[Loc].members],[Measures].[pop19]>5000, [dim company info].[loc].members,[measures].[gdp growth]>1)
Make the corrections to your query更正您的查询
SELECT {[Measures].[Sales]} ON 0, {[Dim Company Info].[LOC].ALLMEMBERS} ON 1 FROM [Database] where (filter ([Dim Company Info].[Loc].members],[Measures].[pop19]>5000, [dim company info].[loc].members,[measures].[gdp growth]>1)
SELECT {[Measures].[Sales]} ON 0, {[Dim Company Info].[LOC].ALLMEMBERS} ON 1 FROM [Database] where (filter ([Dim Company Info].[Loc].members],[措施].[pop19]>5000, [dim company info].[loc].members,[measures].[gdp growth]>1)
SELECT
{[Measures].[Sales]} ON 0,
{
filter([Dim Company Info].[LOC].ALLMEMBERS,[Measures].[pop19]>5000 and [measures].[gdp growth]>1)
}
ON 1
FROM [Database]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.