meta data for this page
How to display stacked columns in chronological order with a custom date format in N4V for Webi
Anonymised summary of support ticket #567351 (2025-09-09)
Symptom
The multi-chart component in N4V for Webi does not allow direct sorting of dates in the desired display format (e.g., 'Monday 28 Sep'). The default sorting mechanism fails when using a formatted date string as the X-axis value.
Environment
N4V for Webi (Need4Viz extensions for SAP BusinessObjects Web Intelligence), SAP BusinessObjects Web Intelligence, Tomcat server
Resolution
- Create a variable combining the full date (YYYYMMDD) for sorting and the formatted date (e.g., 'Ddd dd MMM') for display.
- Use an HTML div tag with a font-size set to 0 to hide the sorting part of the variable while keeping the formatted date visible in the chart.
- Example variable definition: CONCAT('<div style="font-size:0;">', ToDate([Date], 'yyyyMMdd'), '</div> ', FormatDate([Date], 'Ddd dd MMM'))
Other resolution
This workaround ensures chronological sorting while maintaining the desired display format in stacked column charts.