cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JCBI1023 Member
Member

Compare PY Month Total to CY Month Total

Hello eveyone, thank you in advance.

 

I want to create a clustered bar visual that compares Previous Year (PY) GP/GP% to Current Year (Year) GP/GP% by Month.

 

For Example, I want a clusted bar chart that shows PY Nov to CY Nov, etc.

 

Here's a screenshot of my data:

PY CY.png

 

 

I have a Date table, with a Relationship setup to the Date Column of my data.

Dates = CALENDARAUTO()

Month = FORMAT('Dates'[Date],"MMMM YYYY")

Month ID = 0 -INT(FORMAT('Dates'[Date],"YYYYMM"))

Year = YEAR('Dates'[Date])

 

Date table.png

 

I am a novice level PowerBI guy. I have done some simple DAX/Measures, but nothing too serious. Please let me know what other information can help. 

4 REPLIES 4
Microsoft v-yulgu-msft
Microsoft

Re: Compare PY Month Total to CY Month Total

Hi @JCBI1023,

 

Insert a clustered column chart, place date field into Axis and legend section in hierarchy format.

1.PNG

 

In my test, the calendar table was not used.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
JCBI1023 Member
Member

Re: Compare PY Month Total to CY Month Total

@v-yulgu-msft This looks great and I was able to accomplish this. Now, how do I get the clustered bars going from latest to newest? In other words, I want November 2016/2017 first, then December 2016/2017, then January 2017/2018?

 

ddd.png

Highlighted
JCBI1023 Member
Member

Re: Compare PY Month Total to CY Month Total

Hi @v-yulgu-msft do you have a solution on the ordering from oldest to newest?

JCBI1023 Member
Member

Re: Compare PY Month Total to CY Month Total

Hi @v-yulgu-msft I was just wondering if you know a siolution to sort from oldest to newest. Thanks. 

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors (Last 30 Days)