Forum Discussion

StaceyGriffeth's avatar
5 years ago
Solved

Trailing 12 months, year over year

Hello,   I have a table of sales data.  I would like to create a clustered bar chart where the x-axis is the trailing 12 months (e.g. today it would display April - March), and each month would hav...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi StaceyGriffeth ,

     

    Sorry for late reply. Thanks for your reply.😊

    It's quite easy. You just need to find your "Relative Month" column in Table "Calendar" and drag it to the "tooltips" field. Then sort the chart by "Relative Month". (ascending)

    Hope that's what you were looking for.

    Best Regards,

    Yuna

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • BA_Pete's avatar
    BA_Pete
    5 years ago

    StaceyGriffeth ,

     

    I guess you could merge both my solution and Yuna's solution together:

     

    Create both the numerical and text monthYear fields in your calendar and set the text field sort order based on the numerical field. Then place the text field into the tooltip instead of on the axis then sort on it in the chart.

     

    This would add the monthYear text to the tooltip, but it wouldn't be as offensive/confusing as having the relative month number on there.

     

    Pete