Any chance I can display Macro value on plot line?

LilC
LilC New Altair Community Member
edited November 2024 in Community Q&A
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:

Best Answer

  • BalazsBaranyRM
    BalazsBaranyRM New Altair Community Member
    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

Answers

  • BalazsBaranyRM
    BalazsBaranyRM New Altair Community Member
    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

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.