来自2个不同尺寸表的Power-bi日期,与事实表有关

发布于 2025-02-12 03:03:18 字数 317 浏览 2 评论 0原文

这个事实表是中心的。我想在“ StartverKoopDatum”日期和“ Kaoondertekend”日期之间与日期之间的约会夫一起创建一个措施,这与这一事实有关。每一个事实线都会获得一个价值约会者(startverkoopdatum,kaoondertekend,day)。

红线是连接的字段。蓝色箭头是我想在约会夫中使用的值。

是否有可能在事实上创建一个措施,将获得这个价值?

表结构

This fact table is central. I'd like to create a measure with a DATEDIFF between the "StartVerkoopdatum" date and the "KAOOndertekend" date, related to this fact. Every fact line get's a value DATEDIFF(StartVerkoopdatum, KAOOndertekend, DAY).

The red lines are the connected fields. The blue arrows are the values I'd like to use in the datediff.

Is it possible to create a measure in the fact, that wil get this value?

Table structure

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜灵血窟げ 2025-02-19 03:03:18

stack 强烈建议您在表格格式而不是图片。

使用以下措施

Measure =
DATEDIFF (
    CALCULATE (
        MAX ( INT_Subproject[StartVerkoopdatum] ),
        //CROSSFILTER reverses the filter direction on-the-fly
        //to retrieve the MAX of dim by fact
        CROSSFILTER ( factINT[ProjID], INT_Subproject[ProjID], BOTH )
    ),
    CALCULATE (
        MAX ( INT_Hoofdk[KAOOndertekend] ),
         //CROSSFILTER reverses the filter direction on-the-fly
        //to retrieve the MAX of dim by fact
        CROSSFILTER ( factINT[HoofID], INT_Hoofdk[HoofID], BOTH )
    ),
    DAY
)

Stack strongly recommends that you provide the sample data in table format and not picture.

Use the following measure

Measure =
DATEDIFF (
    CALCULATE (
        MAX ( INT_Subproject[StartVerkoopdatum] ),
        //CROSSFILTER reverses the filter direction on-the-fly
        //to retrieve the MAX of dim by fact
        CROSSFILTER ( factINT[ProjID], INT_Subproject[ProjID], BOTH )
    ),
    CALCULATE (
        MAX ( INT_Hoofdk[KAOOndertekend] ),
         //CROSSFILTER reverses the filter direction on-the-fly
        //to retrieve the MAX of dim by fact
        CROSSFILTER ( factINT[HoofID], INT_Hoofdk[HoofID], BOTH )
    ),
    DAY
)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文