We have a MDX query which looks like this:
WITH Member [Measures].[Z] AS (DATEADD("H",-1,[X].[Y].Member_Caption))
SELECT { [X].[Y].Children } ON Rows,
{ [Measures].[Z] } ON Columns
FROM ABC
It basically returns Datetime (LastRefresh).
My task is to create an MDX query that returns the following columns:
LastRefresh, Getdate(), datediff(Mins, LastRefresh, Getdate())
Its equivalent SQL query is:
select LastRefresh, getdate() as CurrentDate, datediff(Mins, LastRefresh, getdate()) as DateDifference from XYZ
How can I do the same in MDX on the Cube?
Note:
We can't create any new measures, as we are just using the Cube to get data, and don't have any kind of access to create measures etc.