Quantcast
Channel: Debunking Kimball Effective Dates
Viewing all articles
Browse latest Browse all 83

re: Debunking Kimball Effective Dates

$
0
0

If you want IsCurrent instead of IsLatest, you could do something like:

, CONVERT(BIT,CASE WHEN GETDATE() BETWEEN MIN(dim1.[SCDStartDate]) AND MIN(dim2.[SCDStartDate]) THEN 1 ELSE 0 END) AS [IsCurrent]

IsCurrent and IsLatest may not be the same if your source system allows you to record dates of future events in advance of them happening.

What about IsEarliest? Could that be calculated in the view?


Viewing all articles
Browse latest Browse all 83

Trending Articles