I have a measure which return for me first item from filtered row
_FirstFromSelected =
VAR _Filtereditems = CONCATENATEX(ALLSELECTED(_tbl),_tbl[Company_Name],"|")
RETURN
IF(PATHCONTAINS(_Filtereditems,"Name1"),"Name1",PATHITEM(_Filtereditems,1))
But it not working if setted as value in other measure
OtherMeasure =
VAR _CurrentAxis = SELECTEDVALUE ( _tbl_2[Company_Name] )
RETURN
CALCULATE(
[Measure2],
_tbl[Company_Name] = _CurrentAxis
)
-------------------------
Measure2 =IF (
ISFILTERED ( _tbl[Company_Name] ) = FALSE,
CALCULATE (
Sum(_tbl[sum])
)
,FILTER(_tbl,[Company_Name]=[_FirstFromSelected]) // this is not work
// ,FILTER(_tbl,[Company_Name]="Company1") // this work very well
// also [_FirstFromSelected]="Company1" return True
)
,CALCULATE (
Sum(_tbl[sum])
)
)
So how to put first item from filtered rows into filter in measure to filter only this value?