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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
XeniaBarmotska
Frequent Visitor

3 character month abbreviations in hierarchy with “Concatenate labels” function off, grouped by year

Hi PowerBI experts, 

it is possible to turn off the “Concatenate labels” function, in such a case a diagram looks like this:

 
 
 
 

image.png

I need the same, but only with 3 character month abbreviations. This is not a standart hierarchy then and it's sorted then by moths, because there is, for example,  Mai in 2018,2019 and 2020, and I cannot use the sort by column function. Maybe it's possible to realize it somehow? And when I turn off  “Concatenate labels” function using my own hierarchy, it doesn’t effected the Diagram.  Please help!

1 ACCEPTED SOLUTION

Yes, this way I can sort them well, but I can't use the "Anti-TY Tags Concatenation" feature, I want to show a year for the whole month within this year then see the image in my question

View solution in original post

9 REPLIES 9
amitchandak
Super User
Super User

@XeniaBarmotska , if you are using date hierarchy, you can use the drill down or remove year in the field list.

 

If using the date table you can month there and use that as row

new column

 month = format([Date],"MMM")

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

Hi @XeniaBarmotska -

 

On your Date table, make a new column

 

MonthShortName = FORMAT(DateTab[Date], "MMM")

 

Then select the column in your "Fields" pane, and go to Column Tools -> Sort by Column and choose the field with the Month Number (1 = Jan, 2 = Feb, etc).  You can also do the Sort by Column with the existing long month name.

 

Hope this helps

David

image.png

it doesn’t sort right in such a case. And "Concatenate labels” function off, still doesen't work.

@XeniaBarmotska check the sorting option under the 3 dots in the top right corner and make sure it is sorted by something related to the date.  Looks like it might currently be sorted by the value, not the axis.

Hi @XeniaBarmotska 

 

Create a new column like

CONCATENATE(YEAR([Date]),MONTHT([Date]))  // you sure will have different years too to dispaly in the same chart.

Or

YEAR([Date]) & MONTHT([Date])

and use it to sort.

 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

Yes, this way I can sort them well, but I can't use the "Anti-TY Tags Concatenation" feature, I want to show a year for the whole month within this year then see the image in my question

XeniaBarmotska_0-1598866004211.png

Exactly, what I wanted, and the solution was so easy! Thanks a lot.
PS.: only the month are sorted alphabetically, but I know how to handle this

XeniaBarmotska_0-1598867007654.png

now it's completely correct

@XeniaBarmotska - create a MonthNumber column

 

MonthNumber = MONTH( Table[Date] )

 

The use that to sort.

 

Also, be aware that best practices will have you create a separate Date table if you want to do any Time Intelligence functions (TOTALYTD, etc).

 

Hope this helps

David

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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