SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


DAX query to figure out the latest hour that's loaded into Tabular cube for today (date dim & hour...


DAX query to figure out the latest hour that's loaded into Tabular cube for today (date dim & hour dim)

Author
Message
boxta
boxta
SSC Journeyman
SSC Journeyman (98 reputation)SSC Journeyman (98 reputation)SSC Journeyman (98 reputation)SSC Journeyman (98 reputation)SSC Journeyman (98 reputation)SSC Journeyman (98 reputation)SSC Journeyman (98 reputation)SSC Journeyman (98 reputation)

Group: General Forum Members
Points: 98 Visits: 238
Hi guys,

We have a tabular cube set up, which has a date dimension and an hour dimension, along with a few others, and a simple count fact measure.

So for every day, the hour dimension would just be 00 to 23.

The cube is updated hourly, so as the hour completes, we will see new hour shows up for the day in the cube.

As a data quality check, I would like to write a dax query that basically returns the max(hour id) from hour dimension from the cube where date dimension = today's date.

From there, I am hoping to write a script which compares the max hour from the cube to the hour in real life, and sends an alert email out if the cube has been delayed for more than xxx hours, for example.

I haven't done much in DAX yet, so I am newbie. Can someone please help me in what to do with this?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search