# Need Help W Bar Graph (Month Over Month Variance 2023 v 2022)

**URL:** <https://pug.phocassoftware.com/t/need-help-w-bar-graph-month-over-month-variance-2023-v-2022/2629>\
**Category:** Ask the Community\
**Tags:** howto\
**Created:** [January 18, 2024, 3:36pm UTC](https://pug.phocassoftware.com/t/need-help-w-bar-graph-month-over-month-variance-2023-v-2022/2629 "2024-01-18T15:36:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wdavis](https://avatars.discourse-cdn.com/v4/letter/w/d07c76/32.png) [@wdavis](https://pug.phocassoftware.com/u/wdavis)\
**Post date:** [January 18, 2024, 3:36pm UTC](https://pug.phocassoftware.com/t/need-help-w-bar-graph-month-over-month-variance-2023-v-2022/2629/1 "2024-01-18T15:36:23Z")

</div>

As the title states, I need some help focusing on a segment of the business and showing as a bar graph. The sales rep wants to analyze month by month sales this year over last year. Currently using a custom date range by month, this year over last year but using the Period Variance mode, it will not break it down by month but instead, just show the total for the entire year. There has to be a way for the graph to show each month, this year vs last year.

You can see I’m trying to focus on 4 segments of a particular business. The custom date range of month, this year versus last

 ![image](https://us1.discourse-cdn.com/flex015/uploads/phocassoftware/original/2X/0/058f70e772fb33fd446523e721201bc9257d80de.png)

with the results just showing year over year

 ![image](https://us1.discourse-cdn.com/flex015/uploads/phocassoftware/original/2X/5/5c09a03233fef39e6b5af3aa1a7cb8a4fbf5e835.png)

When viewing the data in ‘Grid’ mode, it shows correctly. I’d like to be able to bring that across to ‘Graph’ mode.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/phocassoftware/original/2X/f/fc00faf671d5cd52ca49a42318541905a1ab8b7f.png)

---

<div class="post-metadata">

**Author:** ![JonKemp](https://sea1.discourse-cdn.com/flex015/user_avatar/pug.phocassoftware.com/jonkemp/32/334_2.png) [@JonKemp](https://pug.phocassoftware.com/u/JonKemp)\
**Post date:** [January 18, 2024, 4:23pm UTC](https://pug.phocassoftware.com/t/need-help-w-bar-graph-month-over-month-variance-2023-v-2022/2629/2 "2024-01-18T16:23:33Z")

</div>

Hi @wdavis ,

I think the issue is the “x” series is grouped by Subclasses rather than time. I had similar challenges, I needed to create a date dimension on the DB which would then swap out the “x” series to being time, however that wont give you precisely what you are after. As a quick win, have you considered Bullet charts using variance mode? they would overlay current vs previous. These are my go to charts for comparisions.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/phocassoftware/original/2X/a/aff1a1fa2043812e1d5535204dc61baa8a46a59c.png)

Regards,

Jon

---

<div class="post-metadata">

**Author:** ![wdavis](https://avatars.discourse-cdn.com/v4/letter/w/d07c76/32.png) [@wdavis](https://pug.phocassoftware.com/u/wdavis)\
**Post date:** [January 18, 2024, 4:56pm UTC](https://pug.phocassoftware.com/t/need-help-w-bar-graph-month-over-month-variance-2023-v-2022/2629/3 "2024-01-18T16:56:12Z")

</div>

Thank you for the quick reply. I have not considered Bullet charts and now I’m wondering why I don’t have that as an available chart…

![image](https://us1.discourse-cdn.com/flex015/uploads/phocassoftware/original/2X/a/abf5b91962b43f327d9e33f455c25f8881d6d99e.png)

---

<div class="post-metadata">

**Author:** ![JonKemp](https://sea1.discourse-cdn.com/flex015/user_avatar/pug.phocassoftware.com/jonkemp/32/334_2.png) [@JonKemp](https://pug.phocassoftware.com/u/JonKemp)\
**Post date:** [January 19, 2024, 8:07am UTC](https://pug.phocassoftware.com/t/need-help-w-bar-graph-month-over-month-variance-2023-v-2022/2629/4 "2024-01-19T08:07:11Z")

</div>

You need to select “Variance” mode not “period variance”. For year on year comparision set your date range to be :

 ![image](https://us1.discourse-cdn.com/flex015/uploads/phocassoftware/original/2X/4/4547f99c908944954e1f77baf2d6b967f82cee39.png)  
Doesnt have to be a custom date range, just shown as illustration of current and previous date ranges for it to work.

Regards,

Jon

---

<div class="post-metadata">

**Author:** ![LeeWilson](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@LeeWilson](https://pug.phocassoftware.com/u/LeeWilson)\
**Post date:** [January 23, 2024, 3:35pm UTC](https://pug.phocassoftware.com/t/need-help-w-bar-graph-month-over-month-variance-2023-v-2022/2629/5 "2024-01-23T15:35:42Z")

</div>

I think if you were to add ‘month’ as a pillar you could then do a matrix variance. This would then show the month across the bottom with a variance between your date ranges. The only downside is that it would total up your ‘subclass code’

The below example is some activity by hour for a monthly date range. As you can see it’s showing my 3 selections as 1 total.

 ![pick](https://us1.discourse-cdn.com/flex015/uploads/phocassoftware/original/2X/9/9bc91e299a9a27ecf65305b9685020c44d9714b8.jpeg)
