简体   繁体   English

如何计算计算会员中的第一个日期?

[英]How calculate First Date in calculated Member?

I need to have first filtered date in mdx that doesn't filter by date dimension that used in report rows.我需要在 mdx 中有第一个过滤日期,它不按报告行中使用的日期维度过滤。

I need that keep date filter but by pass dates that came in rows.我需要保留日期过滤器,但要通过行中的日期。

请检查示例图像

using MDX query you can use FirstChild property to get the first value of dimention members, assuming that the date dimension is called DimDate and the Date member is Date :使用 MDX 查询,您可以使用FirstChild属性获取维度成员的第一个值,假设日期维度称为DimDate并且 Date 成员是Date

SELECT {DimDate.Date.[All].FirstChild} ON 1,
{ ... } ON 0
FROM [myCudbe]

Also you can use MIN() function to retrieve the minimum date value, the link above (official documentation) contains a good example.您也可以使用MIN()函数来检索最小日期值,上面的链接(官方文档)包含一个很好的示例。

Helpful links有用的网址

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM