Forum Discussion
JuliaYebra
8 years agoHelper III
Last 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
8 years agoMicrosoft Employee
Hi 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