Forum Discussion
Line Chart Visual Axis Value Display
- 3 months ago
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 ,
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.
- v-sshirivolu3 months agoCommunity Support
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
- v-sshirivolu3 months agoCommunity Support
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.