Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Easy - Need to show sum YOY months side by side on bar graph

Hello, 

 

My current bar graph shows Jan  Feb  Mar of 2018....then after Dec 2018 shows  Jan  Feb  Mar...etc  for 2019.    That's nice, but what I really need is to show Jan 2018 next to Jan 2019,  Feb 2018  Feb 2019, etc...

 

Any help is appreciated!  

1 ACCEPTED SOLUTION

There are a few ways to do it.

1. You create a column month number in your time dimension table and make it as the sort column.

2. Create column month and year separately and use year a legend in the bar chart

month No = format(date,"MM")
Month Name = format(date,"MMM")
Year = format(date,"YYYY")

Screenshot 2019-10-26 08.16.14.png

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
aswin_k
Frequent Visitor

Hi @Anonymous ,
You can sort the visual using Months field, so all "Jan" will com together.
If you click the ellipsis icon on your visual you can see the option to sort.
Regards
Aswin

Anonymous
Not applicable

No, that is not what I am looking for and does not work.   What that does is aggregate the months together  -  meaning it just shows the combined total of Jan 18 and Jan 19 in one bar,  Feb 18 Feb 19 in the next bar etc.  

 

I need Jan 2018, let's say, in an orange color, then Jan 2019 right next to it, in a blue color (for example)

There are a few ways to do it.

1. You create a column month number in your time dimension table and make it as the sort column.

2. Create column month and year separately and use year a legend in the bar chart

month No = format(date,"MM")
Month Name = format(date,"MMM")
Year = format(date,"YYYY")

Screenshot 2019-10-26 08.16.14.png

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you Amitchandak! It was so obvious it was staring right at me!   I did not even think about using the Legend.   

 

Appreciate it!!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.