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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
UIUser
Frequent Visitor

Make Year Disappear in Visual with Date Hierarchy

Hi, 

 

I have Calender Week and Year on the X axis. Is there a way to make the year disappear (format white or so)?

 

UIUser_0-1742385455017.png

 

I only want to see CW. I need the year however on the axis for correct sorting. Otherwise it would put CW 52 at the end but it is actually the last week of the prior year. 

 

Thanks!

9 REPLIES 9
v-nmadadi-msft
Community Support
Community Support

Hi @UIUser 
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the community members for the issue worked. If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Thanks 

v-nmadadi-msft
Community Support
Community Support

Hi @UIUser 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If our responses has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.


Thank you.

v-nmadadi-msft
Community Support
Community Support

Hi @UIUser ,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

 

Karsurya12_03
Helper I
Helper I

Hi @UIUser ,

weeksort = 
var __year=YEAR(Query1[DayDate])
var Result = __Year& FORMAT(WEEKNUM(query1[Daydate]),"00")
RETURN
Result create one calculated column for sorting

You can create one calculated column for sorting, and remove year from x-axis

Thanks & Regards,

Surya.

Karsurya12_03
Helper I
Helper I

Hi @UIUser ,

weeksort = 
var __year=YEAR(Query1[DayDate])
var Result = __Year& FORMAT(WEEKNUM(query1[Daydate]),"00")
RETURN
Result create one calculated column for sorting

You can create one calculated column for sorting, and remove year from x-axis

Thanks & Regards,

Surya.

Anonymous
Not applicable

HI @UIUser,

Any update on this? Did these suggestions help for your scenario?

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi @UIUser ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

danextian
Super User
Super User

Hi @UIUser 

You can create a calculated column that returns invisible characters and use it  in the hierarchy instead.

Example:

Invisible Year =
REPT ( UNICHAR ( 8203 ), datestable[year] )




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
ToddChitt
Super User
Super User

That's not going to be easy. You can use the Sort By column specification and maybe specify that 52 is sorted before 1 and 2 and 3, etc., but that only works if that is all the data you have. Power BI wouldn't figure out, for example, that week 52 of 2025 should be sorted at the end instead of the beginning. So you would need to limit your date dimension to ONLY weeks 52 through 51 (52, 1, 2, ... 50, 51).

Let me ask this: WHY do you need to remove the year from the x axis? 




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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