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
Anonymous
Not applicable

Custom X-axis

Hello,

 

I have a bar chart, with daily count as bars and hours on x-axis, by default x-axis starts at 12:00am to 11:00pm but I want to start from 6:00am to 5:00am

 

Is it possible to do that

 

Current x-axis:

12:00 -- 1:00 -- 2:00 -- 3:00 ------    -----------------------11:00

 

Want

6:00 -- 7:00 -- 8:00 -----------------------------------------5:00

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

You could create another table like below.

 

time        Index

6:00 1
7:00 2
8:00 3
9:00 4
10:00 5
11:00 6
12:00 7
13:00 8
14:00 9
15:00 10
16:00 11
17:00 12
18:00 13
19:00 14
20:00 15
21:00 16
22:00 17
23:00 18
0:00 19
1:00 20
2:00 21
3:00 22
4:00 23
5:00 24

 

Then create the relationship between the two tables and go to data view, click time column>>sort by column>>select index like below.

 

 sort by column.png

 

Here is the output.

 

output.PNG

 

More details, you could refer to the attachment.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
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-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

You could create another table like below.

 

time        Index

6:00 1
7:00 2
8:00 3
9:00 4
10:00 5
11:00 6
12:00 7
13:00 8
14:00 9
15:00 10
16:00 11
17:00 12
18:00 13
19:00 14
20:00 15
21:00 16
22:00 17
23:00 18
0:00 19
1:00 20
2:00 21
3:00 22
4:00 23
5:00 24

 

Then create the relationship between the two tables and go to data view, click time column>>sort by column>>select index like below.

 

 sort by column.png

 

Here is the output.

 

output.PNG

 

More details, you could refer to the attachment.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

I just wanted to add a graphical representation of what I'm trying to do.2018-10-19_14-01-23.jpg

Anonymous
Not applicable

I just wanted to add a graphical representation of what I'm trying to do.2018-10-19_14-01-23.jpg

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.