Data Lineage when query/model in macro

Hi, I have a query/model that is inside a macro so that I can pass it parameters, which I then use in a ‘group by’ and in a calculation. It all works properly and is very DRY. However, this breaks the data lineage functionality - I can’t see anything before the macro.

Is there any way to fix data lineage in this situation and/or parameterize a query/model differently so that data lineage will work?

Thanks!