SSAS连接具有不同时间粒度的事实表

huangapple go评论56阅读模式
英文:

SSAS joining fact tables with different time granularity

问题

我有两个度量组,一个使用时间粒度year/month(YearMonthDim),另一个使用时间粒度datetime(CalenderDim)。我可以将月度粒度的事实表与CalenderDimension关联起来,以便可以制作从两个事实表连接的时间维度的报表吗?

我刚刚做了一个快速修复,将YearMonthDim添加到了带有datetime粒度的事实表中。还有其他解决方法吗?

英文:

I have two Measure Groups, one with time grain year/month(YearMonthDim), the other with time grain datetime(CalenderDim). Can I link the Month-grained fact to the CalenderDimension so I can make reports joined from both fact tables on the time dimension?

I just made a quick fix and added the YearMonthDim to the fact table with the datetime granularity. Is there another way to solve this?

答案1

得分: 0

我正在寻找的术语是角色扮演维度

我将第二个度量组连接到“Month”粒度,与已经存在的“CalendarDimension”中的“Month”属性连接,其粒度为天。

现在它像魔法一样运作。

英文:

The term I was looking for was Role Playing Dimension.

I connected the second measure group on Month granularity with the Month attribute in the already existing CalendarDimension whose granularity is on days.

It now works like a charm.

huangapple
  • 本文由 发表于 2020年1月4日 00:42:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/59582198.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定