Any chance I can display Macro value on plot line?

User: "LilC"
New Altair Community Member
Updated by Jocelyn
Hi guys:
For example, if I use Macro to calculate the median of the sales.
And I want to add a plot line into bar chart for display the median. Apart from manual typing it as text, can I use formulate or is there any other ways of doing it?
Something like this:

Sort by:
1 - 1 of 11
    User: "BalazsBaranyRM"
    New Altair Community Member
    Accepted Answer
    Hi,

    you can use Generate Attributes to create a new attribute with the (constant) value from the macro.

    The charts only show data from example sets.

    Regards,
    Balázs