Forum Discussion
JuliaYebra
Helper III
8 years agoLast reading
Hello, I have this dataset with different temperature readings for same items. Is it any way to only keep the last reading for each item? This would be the yellow records. Thanks
- Anonymous8 years ago
Go to Modeling and hit New Table.
NewTable = SUMMARIZE( FILTER( ADDCOLUMNS( TableName, "Last Reading", VAR lastreadingdate = CALCULATE( MAX(TableName[Date]), ALLEXCEPT(TableName, TableName[Item]) ) RETURN IF(TableName[Date] = lastreadingdate, TRUE, FALSE) ), [Last Reading] = TRUE ), TableName[Machine], TableName[Item], TableName[Date], TableName[Temperature] )
v-huizhn-msft
Microsoft Employee
8 years agoHi JuliaYebra,
Have you resolved your issue? If you have, welcome to share your solution or mark the right reply as answer. More people will find solution easily here.
Best Regards,
Angelia