Forum Discussion
OAlvarezGarcia
7 years agoNew Member
lastest value
Hello, I am trying to get the output of units from the last machine in this case the formula will say for article 23442111114 total output (QuGood) 1087 units. The total output needs to be cal...
AkhilAshok
7 years agoSolution Sage
How about this:
Latest TS = MAX('Table'[ManStartTime])
Latest QuGood =
VAR RankedMarchines =
ADDCOLUMNS (
SUMMARIZE (
'Table',
'Table'[MachineCode],
'Table'[Article Number],
'Table'[QuGood]
),
"Rnk", RANKX (
ALL ( 'Table'[MachineCode], 'Table'[QuGood] ),
[Latest TS],
,
DESC
)
)
VAR FirstRankMarchine =
FILTER ( RankedMarchines, [Rnk] = 1 )
RETURN
MAXX ( FirstRankMarchine, 'Table'[QuGood] )