cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Lobo1908
Helper I
Helper I

Display 30 minutes past each hour instead of full hours on x axis

Hi, 

 

I have a report that displays units done per hour. The x axis is showing Time and the hours are displayed in full hours. E.g. 12:00, 13:00, 14:00. I was asked to change it to 30 minutes past each hour as this would match the shift pattern wich is 8:30-16:30.

So basicaly instead of 12:00 I need 12:30, insted 13:00 I need 13:30 Etc. 

Is there an easy way to do it? Is there an option to format the visual in such a way? 

 

Please support guys 

 

Kind Regars 

 

1 ACCEPTED SOLUTION
v-yadongf-msft
Community Support
Community Support

Hi @Lobo1908 ,

 

In the current Power BI, you cannot customize the interval of the X-axis or Y-axis. You may vote on these ideas:

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/17297545-add-the-axis-interval-in... 

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/15293673-axis-with-configurable-u... 

 

The alternative is to create a new column. Please try:

New_time = 'Table'[Time]+TIME(0,30,0)

 

Don't forget to change the data type to text type:

vyadongfmsft_1-1663912220925.png

 

Then create a new measure

Sort = 
var select_time = SELECTEDVALUE('Table'[New_time])
return
SWITCH(select_time,"8:30:00 AM",1,"9:30:00 AM",2,"10:30:00 AM",3,
                   "11:30:00 AM",4,"12:30:00 PM",5,"1:30:00 PM",6,
                   "2:30:00 PM",7,"3:30:00 PM",8,"4:30:00 PM",9,
                   "5:30:00 PM",10)

 

Put the new measure into tooltips as below image shown, sort by the new measure juest created and you will get the result you want:

vyadongfmsft_2-1663912458142.png

 

Best regards,

Yadong Fang

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
v-yadongf-msft
Community Support
Community Support

Hi @Lobo1908 ,

 

Has your problem been solved? If solved, please consider Accept it as the solution to help the other members find it more quickly.

 

Best regards,

Yadong Fang

Hi @v-yadongf-msft ,

 

My apaologies I did not have time to chech this yet, I'm aimimg to do it by end of the week. 

I will defenetly accept the solution if it works 

 

Kind Regards 

Lobo

v-yadongf-msft
Community Support
Community Support

Hi @Lobo1908 ,

 

In the current Power BI, you cannot customize the interval of the X-axis or Y-axis. You may vote on these ideas:

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/17297545-add-the-axis-interval-in... 

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/15293673-axis-with-configurable-u... 

 

The alternative is to create a new column. Please try:

New_time = 'Table'[Time]+TIME(0,30,0)

 

Don't forget to change the data type to text type:

vyadongfmsft_1-1663912220925.png

 

Then create a new measure

Sort = 
var select_time = SELECTEDVALUE('Table'[New_time])
return
SWITCH(select_time,"8:30:00 AM",1,"9:30:00 AM",2,"10:30:00 AM",3,
                   "11:30:00 AM",4,"12:30:00 PM",5,"1:30:00 PM",6,
                   "2:30:00 PM",7,"3:30:00 PM",8,"4:30:00 PM",9,
                   "5:30:00 PM",10)

 

Put the new measure into tooltips as below image shown, sort by the new measure juest created and you will get the result you want:

vyadongfmsft_2-1663912458142.png

 

Best regards,

Yadong Fang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors