在 Power BI 中使用其他 table 的最后一行创建新的 table
Create new table using last row of other table in power BI
我有以下 table AllIterationTable
AreaPath
IterationPath
StartDate
EndDate
power
power - Sprint1
08-03-2021 00:00
13-03-2021 00:00
power
power - Sprint 3
15-03-2021 00:00
20-03-2021 00:00
power
power - Migration
22-03-2021 00:00
27-03-2021 00:00
power
power - License
29-03-2021 00:00
03-04-2021 00:00
我想根据 StartDate
列的最新日期获取整行。
我期待输出,LastRowTable,
AreaPath
IterationPath
StartDate
EndDate
power
power - License
29-03-2021 00:00
03-04-2021 00:00
尝试计算table如下:
MyTable=
VAR maxDate = CALCULATE( MAX( AllIterationTable[StartDate] ), ALL( AllIterationTable ) )
VAR result =
FILTER(
AllIterationTable,
AllIterationTable[StartDate] = maxDate
)
RETURN
result
我有以下 table AllIterationTable
AreaPath | IterationPath | StartDate | EndDate |
---|---|---|---|
power | power - Sprint1 | 08-03-2021 00:00 | 13-03-2021 00:00 |
power | power - Sprint 3 | 15-03-2021 00:00 | 20-03-2021 00:00 |
power | power - Migration | 22-03-2021 00:00 | 27-03-2021 00:00 |
power | power - License | 29-03-2021 00:00 | 03-04-2021 00:00 |
我想根据 StartDate
列的最新日期获取整行。
我期待输出,LastRowTable,
AreaPath | IterationPath | StartDate | EndDate |
---|---|---|---|
power | power - License | 29-03-2021 00:00 | 03-04-2021 00:00 |
尝试计算table如下:
MyTable=
VAR maxDate = CALCULATE( MAX( AllIterationTable[StartDate] ), ALL( AllIterationTable ) )
VAR result =
FILTER(
AllIterationTable,
AllIterationTable[StartDate] = maxDate
)
RETURN
result