[英]How calculate First Date in calculated Member?
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.