which function should i use to replace the "attvalue"?

Afif
Afif New Altair Community Member
edited November 2024 in Community Q&A
I want to use this expression but it says "attvalue" is unknown, which function should i use to replace the "attvalue"?


Tagged:

Answers

  • Caperez
    Caperez Altair Community Member
    Hi @Afif
    To use the lag function you need to provide two arguments, lag("attribute name", offset).
    the first is the name of your attribute or column, and the second is the offset. 

    In your case, the attvalue is not necessary, and the basic sentence is lag("Price", 1 )

    Best, 

    Cesar