Is there a way to list dimension members without fetching default Measure for each member?
相关问题
- Filter Today's Date in MDX
- Distinct count to exclude NULL
- 图片如何批量加画布?
- DateAdd Column caused an overflow
- MDX SSAS - Max Date in Measure
相关文章
- 图片如何批量加画布?
- Process SSAS cube through c# code
- Adding Adomd parameters programmatically C#
- C# amo get roles complete
- SSAS tabular model timeout raised during processin
- MDX - TopCount plus 'Other' or 'The Re
- 计算成员具有多个属性层次 - MDX(Calculated Members with multip
- SSRS MDX报告:如果行不选择也列dimenstion输出空(SSRS mdx report:
You could SELECT nothing on the opposite axis:
SELECTing an empty set prevents SSAS from adding the default measure on the opposite axis.
The way I used to query without data was:
But after watching BIDS work in SQL Profiler I learned about
e.g.
Not sure if there are unintended side-effects of this route but if you just want to dump the contents a hierarchy without worrying about data, it's another option.
You can use the ADOMD
Catalog
object to interrogate a cube, and find out what measures/dimensions it has etc. This does not involved MDX at all.You can access the catalog views which Magnus mentions (which by the way are documented here), from SQL Server 2008 using the following SQL syntax instead of MDX:
The SQL understood by Analysis Services is limited: There are no joins possible, and the
WHERE
condition may only contain clauses like[HIERARCHY_UNIQUE_NAME] = '[Date].[Order Date]'
connected via AND. GROUP BY and ORDER BY are not supported. But nevertheless, you can query the cube meta data.Depending on the interface you are using to access Analysis Services there might be some issues, as these metadata are returned in resultset format, not in cellset format.