简体   繁体   中英

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.

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 :

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.

Helpful links

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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