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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
narragirl85
Helper I
Helper I

Display month & year on bar chart

How can I display the month and year in my bar charts

I have concatenate labels turned off on the x axis and my data points I'm referencing - created date and closed date - is formatted to (yyyy-mm)

 

narragirl85_0-1615788338740.png

narragirl85_1-1615788354341.png

narragirl85_3-1615788533583.png

 

 

 

 

 

1 ACCEPTED SOLUTION

In the Axis bucket, drag Year above the Month name.  On the chart visual, click on the Organisation hierarchy icon to expand Years into Months.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

13 REPLIES 13
Ashish_Mathur
Super User
Super User

Hi,

What result are you expecting?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

narragirl85_0-1615859523949.png

Where the chart currently displays the months only - I was hoping to show it as Jan-21 - Feb-21 as people have been getting confused that it's showing November, not realising it's meant to be Nov-20

 

Hi,

Assuming you have a Calendar Table with the year and Month name columns, drag those columns to the X-axis of the graph.  If you do not have a Calendar table, create one.  Build a relationship from the base data table to the Calendar table.  In the Calendar table, write calculated column formulas to extract Year, Month name and Month number.  Sort the Month name column by the Month number column.  To your visual, drag Year and Month name columns from the Calendar Table.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I have created a date table, but what field do I create the relationship with - I want to display the total number of actions that have the status as 'assigned', 'delegate' verify' and the month they are due in

narragirl85_0-1616040998622.png

narragirl85_1-1616041096374.png

narragirl85_2-1616041478595.png

 

 

 

From the date column in the action record table to the Date column of the Date table.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I've done that - but it's still not displaying the year - do I need to change the chart type?

 

narragirl85_0-1616043293450.png

 

In the Axis bucket, drag Year above the Month name.  On the chart visual, click on the Organisation hierarchy icon to expand Years into Months.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you so much for your help - that has worked!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
narragirl85
Helper I
Helper I

what information do you need to make it clearer - I'm only a beginner user so I'm still learning and not sure how to do what you've suggested

@narragirl85 , Can you share sample data and sample output in table format?

In case you want to deal with two dates. Having same filter, refer https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Power BI - Sample Data - I've saved it in my Google Drive because it was too large to insert here

amitchandak
Super User
Super User

@narragirl85 , Not very clear. Create a date table and have column like this and use that on x- axis

 

Month Year = FORMAT([Date],"yyyy-mm")
Month Year sort = FORMAT([Date],"yyyymm")

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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