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
dixityashovardh
Frequent Visitor

How can I show Month-Year on single axis ?

 

 

I am creating one trend graph but unable to create axis where I can show Months and Year on a single axis in bar chart. I tried by switching off concatenation but that's not making any difference.

 

https://www.wiseowl.co.uk/blog/s2516/hierarchy-label-concatenation.htm

 

I need something like this :

 

A.PNG

 

 

 

2 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

Couple ways. If they are two different columns, use CONCATENATE to mash them together in a new column and use that as the axis. The other way is to drag Month and Year into your Axis and use the branching arrow drill down.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

Hi @dixityashovardh,

 

To change the default sort manner from alphabetical  to numerical, you can add a custom Sort column (values 1, 2, 3 etc.) in Query Editor, and change the default sort column (itself) to Sort Column under "Sort by column". For details, please refer to KGrice's reply in this link: Sort by another column error

 

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.

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

Couple ways. If they are two different columns, use CONCATENATE to mash them together in a new column and use that as the axis. The other way is to drag Month and Year into your Axis and use the branching arrow drill down.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

But in that case how can I sort the chart as Logically (Jan-17, Feb-17..) as when I am trying this approch it's sorting (April, Aug,Dec,Feb) in alphabetical manner.  

Hi @dixityashovardh,

 

To change the default sort manner from alphabetical  to numerical, you can add a custom Sort column (values 1, 2, 3 etc.) in Query Editor, and change the default sort column (itself) to Sort Column under "Sort by column". For details, please refer to KGrice's reply in this link: Sort by another column error

 

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.

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.