The issue is that anything from a secondary datasource must be aggregated. Every time you reference a field from a secondary datasource you will have to aggregate it. This is with a min, max, sum, avg, etc.
The reason for this is that blends are not joins (which are row to row) Blends are done at the aggregated level. So we blend on a dimension we sum up everything in both data sources first and then compare it in the blend.
In that case, how do I compare day difference for every Shipment ID and compare with TAT. When I try to perform the same calc, I get ATTR which is due to aggregation:
IF ATTR(day([Out day/time])) > 0 then ( IF ATTR([TAT].[TAT]) >= ATTR([In Out Diff]) then 1 else 0 end ) else 0 END
Is there any other way out for my case here?