Hey,
Based on my understanding, you would need to use dataflow for that distinct rows since your lookup is a file rather than SQL .
https://www.cloudfronts.com/azure/adfs-mapping-data-flows-how-do-you-get-distinct-rows-and-rows-count-from-the-data-source/
@Nasreen Akter : any thoughts on this ?