I have a cube, and within that cube there is a date dimension which has the following attributes
Calendar Year, Calendar Month-Year, Fiscal Year, Fiscal Year-Quarter, Date
Now with these attributes I have two user defined hierarchies, they are as follows Calendar Hierarchy which has Calendar Year, Calendar Month-Year, Date
The second user defined hierarchy is Fiscal Hierarchy which has Fiscal Year, Fiscal Year-Quarter, Calendar Month Year and Date
I want to know the average sales so I created a measure which goes
Member [Measures].[Sales Daily Avg]
AS Avg ( Descendants ( [Date].[Calendar].CURRENTMEMBER, [Date].[Calendar].[Date] ), CoalesceEmpty([Measures].[Total Sales] , 0) )
This works great when running something like
SELECT {
[Measures].[Sales Daily Avg],
} ON COLUMNS,
{ [Date].[Calendar].[Calendar Year].Members } ON ROWS
FROM
[SalesCube]
This will work if I use [Date].[Calendar].[Calendar Month-Year].Members but it will not work on my fiscal hierarchy attributes except for Calendar Month-Year. How can I modify my measure so that it will accept the fiscal year hierarchy attributes.
I tried cross joining by the fiscal year, because if the set is empty, it will just evaluate the one that is being used. But it just doesnt work for me ( I am assuming sytnax might be the issue).
Sorry guys, I am really new at this.