Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

MDX to get amount that calculates multiple columns

$
0
0

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.


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>