ssas - MDX Query for T-SQL -
i new mdx, can please me mdx query below t-sql
select count(distinct rf.patientid), (d.fiscalyearlong) fiscalyear [dbo].[referralfact] rf join [dim].[date] d on rf.referraldateid = d.dateid group d.fiscalyearlong order fiscalyear desc
without example of available within cube pure guesswork, might following:
select [measures].[numpatientid] on columns, [date].[calendar].[calendar year].members on rows [yourcube]; a date dimension have ordering built in no need explicit use of mdx function order.
also better if used measures calculated within cube, have assumed bi developer has created measure equivalent count(distinct rf.patientid) referenced using [measures].[numpatientid]
Comments
Post a Comment