I'm introducing into mdx language and I came up with a problem. I want to sum up length of streets (DimStreet
) from dimension as calculated member in cube with hierarchy date to day level (e.g: [DimDate].[Alldate].[Day]
) I done in SQL to give a better understanding:
SELECT f.date_utc_key, SUM(s.length)
FROM "Fact_coord" as f
INNER JOIN "DimStreet" as s
GROUP BY date_utc_key
ORDER BY date_utc_key asc