i am not sure but if you are calculating something in dbt for example
{% macro sum_of_two_columns(a, b) %}
a + b
{% endmacro %}
then in your model file you will have something like
select
revenue1,
revenue2,
{{ sum_of_two_columns('revenue1','revenue2') }} as total_revenue
from [table]
now you can pass the total_revenue in your second macro that you would like to create: for example:
{% macro subtracting_column(a) %}
a - 100
{% endmacro %}
finally you can use it :
select
revenue1,
revenue2,
{{ sum_of_two_columns('revenue1','revenue2') }} as total_revenue,
{{ subtracting_column('total_revenue') }} as adjusted_revenue
from [table]
In short you will be passing the results of one macro to another which is what you want
subtracting_column
is not accepting the expectedtotal_revenue
argument for your example. – Hiccup