有没有办法使用 GetSchemaDataSet 获取度量值组中的度量值数量?
我们有一个使用 Microsoft.AnalysisServices.AdomdClient 的多维数据集浏览器来获取数据。 当我们获得 MeasureGroups 时,我们使用 GetSchemaDataSet("MDSCHEMA_MEASUREGROUPS", requests)
我们希望隐藏没有任何 Measures 的 MeasureGroups,但我们发现实现此目的的唯一方法是 GetSchemaDataSet("MDSCHEMA_MEASURES", 限制)
对于每个 MeasureGroup,这对于我们的多维数据集来说需要很长时间。
当我们获取 MeasureGroups 时,有没有办法获取 Measures 的数量?
谢谢!
we have a cube browser using Microsoft.AnalysisServices.AdomdClient to get the data.
When we get MeasureGroups, we useGetSchemaDataSet("MDSCHEMA_MEASUREGROUPS", restrictions)
We want to hide MeasureGroups without any Measures, but the only way we've found to do this is to doGetSchemaDataSet("MDSCHEMA_MEASURES", restrictions)
for each MeasureGroup, and that takes a long time for our cubes.
Is there a way to get number of Measures already when we get the MeasureGroups?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们正常查询 DMV 如下所示以获取措施的详细信息。即,查询
$SYSTEM.MDSCHEMA_MEASURES
DMV。在我们的环境中,这通常非常快。更多详细信息,请参阅非常古老的博客:
https://bennyaustin.com/2011/03/01 /ssas-dmv-queries-cube-metadata/
We normal query the DMV like below to get the details of measures. i.e., query the
$SYSTEM.MDSCHEMA_MEASURES
DMV. This is usually very fast in our environment.More details in the very old blog:
https://bennyaustin.com/2011/03/01/ssas-dmv-queries-cube-metadata/