# Call macro within another macro

**URL:** <https://discourse.getdbt.com/t/call-macro-within-another-macro/12976>\
**Category:** Help\
**Tags:** jinja, macros\
**Created:** [April 19, 2024, 5:47pm UTC](https://discourse.getdbt.com/t/call-macro-within-another-macro/12976 "2024-04-19T17:47:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Priest](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@Priest](https://discourse.getdbt.com/u/Priest)\
**Post date:** [July 31, 2025, 12:43pm UTC](https://discourse.getdbt.com/t/call-macro-within-another-macro/12976/2 "2025-07-31T12:43:52Z")

</div>

Is this something similar?

> [@Rendering Macro within Macro](https://discourse.getdbt.com/t/rendering-macro-within-macro/20001):
>
> The problem I’m having Hi, I’m trying to dynamically build the columns in the “SELECT” query utilizing a customer macro and the model’s YML file. And I’m getting ‘macro’ undefined error. The context of why I’m trying to do this This gives the users to control the value for the column that they want. Even though we declare a standard, that might be satisfactory to the client and this enables them to provide overwrites to a specific column. What I’ve already tried Desired YML Structure that t…

---

_[View the full topic](https://discourse.getdbt.com/t/call-macro-within-another-macro/12976)._
