Hi @sauravk,
Below is a sample of some code you can use to work from. The main point is you need to first get a list of your assets and then perform your forEach on the distinct assets to perform your calculations for each asset.
with(
local!assetDataSet…