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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Alex_Rns
New Member

How to show Name of Day on X-Axis

Newbie here, so excuse me if the question is stupid. I import an Excel file that contais a date column in a 'long date' format, meaning that the name of the day is already there.

When making a simple visualization of 'Sales by Day', the date on the X-Axis is in the format 'Date-Month'. I can't seem to find a way to show the name of day which is important to me.

1 ACCEPTED SOLUTION

Hi @Alex_Rns 

Open Edit queries, select the "Date" column, then select "Add column"->add year, add month name, add day, add day name

then close&&apply, create a calcuated column

format date = FORMAT([date],"ddd mmm dd")

3.png

Then you could create two kinds of visuals

1.png2.png

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
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

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @Alex_Rns 

I make a simple test.

Please find which is different from yours.

data in excel  
date sales
Monday, January 1, 2018 1
Tuesday, January 2, 2018 2
Wednesday, January 3, 2018 3
Thursday, January 4, 2018 4
Friday, January 5, 2018 5
Saturday, January 6, 2018 6

When importing to Power BI Desktop, if the date format isn't as you expected, you could change the date type as below.

4.png

Then in the visual

Keep the "date" hierarchy (or no "date" hierarchy is also ok)  and click on the icon circled by me.

5.png

 

Please look at my demo.

If you have any problem, please let me know.

 

Best Reagrds

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Maggie,

 

Thanks for your answer.

What I need to do is have the name of each day shown on X-Axis like marked below:

Capture.PNG

Hi @Alex_Rns 

Open Edit queries, select the "Date" column, then select "Add column"->add year, add month name, add day, add day name

then close&&apply, create a calcuated column

format date = FORMAT([date],"ddd mmm dd")

3.png

Then you could create two kinds of visuals

1.png2.png

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Alex_Rns 

You could work with a workaround using DAX function "FORMAT".

 

Create columns with this funnction and add them to the Axis.

 

 

Best Regards

Maggie

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.