蒙德里安从事实中找到维度

时间:2017-02-22 04:50:45

标签: mdx

我需要查找存在事实的维度的实际列值。 Mondrain中是否有语法可以找到相同的语法。 目前我正在运行下面的sql内连接查询来查找维度数据

    select 
            distinct the_month as Month,
            the_year as Year,
            quarter as Quarter,
            storename as name
            storedimension,
            perioddimension,
            storevisitfact where
            storevisitfact.time_id=perioddimension.time_id
            and storevisitfact.storedimension_id=storedimensionstoredimension_id

1 个答案:

答案 0 :(得分:0)

非空将完成您的工作:

select 
non empty {[Date].[Calendar].[Year].Members, [Date].[Calendar].[Quarter].Members, [Date].[Calendar].[Month].Members} * [Store].[Store].[Store].Members * [Measures].[Visits] on 0
from
[YourCube]