MDXについてはほとんど何もありません。MDXクエリを使用してシステム/サーバーから現在の年を取得する方法はありますか?日付などに関連する次元はありませんでした。
よろしく。
メンバーを作成し、「YEAR(NOW())」として定義します
Member [Measures].[Current Year] as 'YEAR(NOW())'
これがより完全なサンプルです
-- The First Calculated member is the value of NOW()
WITH MEMBER [Measures].[Full Date] as 'NOW()'
-- The Second Calculated Member is the Day part of the first calculated member.
MEMBER [Measures].[What Day] as 'DAY([Full Date])'
-- The Third Calculated Member is the Month part of the first calculated member.
MEMBER [Measures].[What Month] as 'MONTH([Full Date])'
-- The Fourth Calculated Member is the Year part of the first calculated member.
Member [Measures].[What Year] as 'YEAR([Full Date])'
SELECT
{[Full Date],[What Day],[What Month],[What Year]} ON COLUMNS
FROM [Your Cube]