Generate attribute: Column name* macro

Teja_Varanasi
Teja_Varanasi New Altair Community Member
edited November 5 in Community Q&A
I am trying to do this
A B C D
2 1  1 4
3 2  4 1
'
using generate attribute i want to multiply each column with macro but i am getting error ( '*' must have a argument of type numerical).
A* macro like that i have given function.

Best Answer

  • Caperez
    Caperez Altair Community Member
    Answer ✓
    Hi @Teja_Varanasi

    When you use a macro name into a formula you need to include and eval operator, e.g. eval(%{macro_name})

    Best, 

    Cesar

Answers

  • Caperez
    Caperez Altair Community Member
    Answer ✓
    Hi @Teja_Varanasi

    When you use a macro name into a formula you need to include and eval operator, e.g. eval(%{macro_name})

    Best, 

    Cesar