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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
0205983
New Member

Line Chart Visual Axis Value Display

Hi, I would like to inquiry that how can I show my Axis value format like (6:30, 7:30 ....... 18:30) when slicer is choosing morning, when slicer choosing night then it will display (18:30, 19:30, 20:30 ....... 6:30AM)

1 ACCEPTED SOLUTION
v-sshirivolu
Community Support
Community Support

Hi  @0205983 ,
Thanks for reaching out to Community Forum.

In Power BI this cannot be achieved using axis formatting alone because the visual does not support wrap around time like 18:30 to next day 06:30. To handle this, the solution is to control both the order of the axis and which time values are shown based on the slicer selection.

Create a proper time table covering 06:30 through next day 05:30 along with an index column, and a separate slicer table with values like Morning and Night. Then use one measure to dynamically rank the time values so Morning stays in normal order and Night shifts early hours to appear after evening hours, and another measure to filter the visible range so Morning shows the first half of the day and Night shows the second half. Apply the filter at visual level and sort the axis by the ranking measure, which will give the expected behavior for both selections.

Please Find the attached .pbix file for your reference.


Thank you.
 

 

View solution in original post

3 REPLIES 3
v-sshirivolu
Community Support
Community Support

Hi  @0205983 ,
Thanks for reaching out to Community Forum.

In Power BI this cannot be achieved using axis formatting alone because the visual does not support wrap around time like 18:30 to next day 06:30. To handle this, the solution is to control both the order of the axis and which time values are shown based on the slicer selection.

Create a proper time table covering 06:30 through next day 05:30 along with an index column, and a separate slicer table with values like Morning and Night. Then use one measure to dynamically rank the time values so Morning stays in normal order and Night shifts early hours to appear after evening hours, and another measure to filter the visible range so Morning shows the first half of the day and Night shows the second half. Apply the filter at visual level and sort the axis by the ranking measure, which will give the expected behavior for both selections.

Please Find the attached .pbix file for your reference.


Thank you.
 

 

Hi @0205983 ,

I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you

 

Hi @0205983 ,

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.

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors