QoQ Comparison By Week

I can't seem to get the right combination to make this line chart work.

Series 1 = Q1

Series 2 = Q2

Series 3 = Q3

Series 4 = Q4

Line comparison by week (week 1-13ish)

each plot is the count of activities that week


Anyone point me in the right direction?

Best Answer

  • MarkSnodgrass
    Answer ✓

    You can use the QUARTER function to create a beast mode for your series like this:

    QUARTER('datefield')
    

    You can create another beast mode so that the x-axis always shows 1 - 13-ish for each of the quarters with this:

    WEEKOFYEAR(`datefield`) - ((QUARTER(`datefield`)-1)*13)
    

    Having said that, you can use period over period charts and change the date range filter to compare to previous quarters. You may want to look into that and see if it can create the visualization you are going for.

    **Check out my Domo Tips & Tricks Videos

    **Make sure to <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.

Answers

  • Hi @tobypenn

    How is your data formatted? You'll likely need it to look like:

    Quarter | Week | Activities

    Q1 | 1 | 500

    Q1 | 2 | 450

    ...

    Q4 | 13 | 1000


    You can then use the Week as the x-axis, Activities as your y-axis and Quarter as your series.

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**
  • data is formatted as a single line per activity. so a looooong list of activities with dates, unique IDs, descriptions, etc.

  • MarkSnodgrass
    Answer ✓

    You can use the QUARTER function to create a beast mode for your series like this:

    QUARTER('datefield')
    

    You can create another beast mode so that the x-axis always shows 1 - 13-ish for each of the quarters with this:

    WEEKOFYEAR(`datefield`) - ((QUARTER(`datefield`)-1)*13)
    

    Having said that, you can use period over period charts and change the date range filter to compare to previous quarters. You may want to look into that and see if it can create the visualization you are going for.

    **Check out my Domo Tips & Tricks Videos

    **Make sure to <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.
  • thanks