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
spagad6263
Post Patron
Post Patron

How to stop Date Hierachy?

I've just added a date field to Matrix, and it automatically convert to hierachy format as Year >> Quarter >> Month >> Day. I only would like to show as [Year Month], so how this be done? Thanks. Below is what it shows, though I could useuse drill-down to get month info.

spagad6263_4-1662691209670.png

 

 

2 ACCEPTED SOLUTIONS

Hi @spagad6263 

create a new column

YearMonth = YEAR ( TableName[Date] ) * 100 + MONTH ( TableName[Date] ) 

then use it in the visual 

View solution in original post

MahyarTF
Memorable Member
Memorable Member

Hi,

Add new Column to your table that is indicated the YearMonth as below :

Year-Month = FORMAT([Date],"YYYYMM")
Then use it in your Visual.
You could use one of the below format for your column 
YYYYMM : 202209
YYYYMMM : 2022Sep
YYYYMMMM : 2022September
YYYY-MMMM : 2022-September
...
Mahyartf

View solution in original post

4 REPLIES 4
spagad6263
Post Patron
Post Patron

Thanks for the quick reply.

MahyarTF
Memorable Member
Memorable Member

Hi,

Add new Column to your table that is indicated the YearMonth as below :

Year-Month = FORMAT([Date],"YYYYMM")
Then use it in your Visual.
You could use one of the below format for your column 
YYYYMM : 202209
YYYYMMM : 2022Sep
YYYYMMMM : 2022September
YYYY-MMMM : 2022-September
...
Mahyartf
spagad6263
Post Patron
Post Patron

In actual fact, I just would like to show field as yyyy MMM format.

 

Hi @spagad6263 

create a new column

YearMonth = YEAR ( TableName[Date] ) * 100 + MONTH ( TableName[Date] ) 

then use it in the visual 

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.