Forum Discussion
Calculate Transit time between port destination
- 8 years ago
Thanks for your recommendation,
I was able to solved the problem using the following DAX formula:
Cumulative TT=
CALCULATE(
SUM( Table1[CummulativeTT] ) ,
FILTER(
ALL( Table1 ) ,
Table1[Index] <= MAX( Table1[Index] )
&& Table1[LineDirection] = MAX( Table1[LineDirection] )
)
)The *MAGIC* for me wat the last line - where I can compare TEXT with the MAX function.
Thanks for your recommendation,
I was able to solved the problem using the following DAX formula:
Cumulative TT=
CALCULATE(
SUM( Table1[CummulativeTT] ) ,
FILTER(
ALL( Table1 ) ,
Table1[Index] <= MAX( Table1[Index] )
&& Table1[LineDirection] = MAX( Table1[LineDirection] )
)
)
The *MAGIC* for me wat the last line - where I can compare TEXT with the MAX function.