sql - Excel MDX - same period last month - totals -
i have following mdx expression helps me display data 'same period last month' cube per day.
filter( [date].[date].[date], [date].[date].currentmember.member_value >= dateserial(year(dateadd('m', -1, vba![date]())), month(dateadd('m', -1, vba![date]())), 1 ) , [date].[date].currentmember.member_value < dateadd('m', -1, vba![date]()) )
now redo code display total period without breaking down per day. reason is, if example want see total number of active users same period last month can't sum numbers of daily users higher real number of total users in period (user may active on more 1 day , want count him once period).
i tried chaning code nothing works far. ideas?
many in advance, maciej
Comments
Post a Comment