选定昏暗日期的事实表中的最新更新日期记录 [英] Latest update date record from fact table for selected dim date
问题描述
我需要将日期维度表与事实表映射在DimDate.Date = fact.UpdateDate
这里的问题是当我映射这两个日期时,事实表记录将仅显示更新日期可用的日期。
我想实施的场景:
即使我从昏暗的日期表中选择任何日期,事实表的最近更新日期记录应显示Fact.UpdateDate< = Dim date。我尝试用
给出的解决方案
链接在这里但它不起作用,如果我从更新日期以外的日期过滤器中选择暗日期,那么我没有得到任何记录。
提前致谢。
  ;
如果你问的是MDX表达式,那么就不足以使用LASTNONEMPTY函数吗?
或者可能是其中一个
I need to map date dimension table with the fact table on DimDate.Date = fact.UpdateDate
Problem here is when i map these two dates, fact table record will only display for the date for which update date is available.
Scenario I want to implement :
Even i select any date from the dim date table, fact table's nearest update date record should display with having Fact.UpdateDate <= Dim date. I tried solution given in link here but it is not working, if i select dim date from date filter other than Update date then i do not getting any record.
Thanks in advance.
If you're asking about MDX expression, then isnt it enough to use LASTNONEMPTY function for this?
Or may be one of these
https://paultebraak.wordpress.com/2011/07/10/the-last-non-empty-dilemma/
这篇关于选定昏暗日期的事实表中的最新更新日期记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!