Hi All,
Do I have a way to run a MDX query with a DMX query? (Avoiding the “link server” options… )
I need to get the cube last update date like this DMX query:
SELECT 1as CubeStatus
FROM $System.MDSCHEMA_CUBES
where format(LAST_DATA_UPDATE, 'dd/MM/yyyy') = format(now(), 'dd/MM/yyyy') --"1" means that the cube was processed, NULL cube did not process today
and cube_source = 1
and cross reference it to a result I get from this MDX query:
withmember measures.LastDateCube as [Comm Date UTC].[Date].currentmember.PROPERTIES("KEY")
select measures.LastDateCubeon 0 from comms
the purpose of this is to know for sure that my current member (date integer) is equal to the cube last update date. thus, making sure the cube was processed and I get the correct member I expect.
What do you think?
Thank you
Yoni.