See picture below. I need to create this in an MDX query. It pulls yesterday's date (May 6) and the day before yesterday (May 5), but i need the dates to be dynamic, such as StrToMember('[Date].[Year - Quarter - Month - Date].[Date].&['+VBA!Format(now()-1, 'yyyy-MM-ddT00:00:00')+ ']'). I also need a 3rd column that does this calculation: 1 - (Avg MTD Rev. for Yesterday (May 6) / Avg MTD Rev. for the day before Yesterday (May 5)). That column is what i want to create as a calculated member in an SSAS cube.
↧