Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

MDX - Complicated Count Logics

$
0
0
A snapshot cube has three dimensions: Status (inactive, active), month, member, the measure is count (count of member).How do I calculate # of members who were inactive or not existing in the previous month, but active in the current month?Below is the sample code I used to get the count of active members in one month.select FROM [SnapshotCube]where ({[Status].[Status].&[Active]},{[Month].[Year Month Hierarchy].[Calendar Year].&[2015].&[2015Q1].&[201503]})

Viewing all articles
Browse latest Browse all 1341

Trending Articles