Hi, I have created a graph in which x axis contain year and quarter. As part of the standard format, we want X axis label of the report as like below screenshot. (i.e. For quarter 1 year to be appended and there should be a new line between quarter and year)
I have tried 2 approaches to add line break in the label of horizontal axis in graphs.
- Added <br> in the column formula of the year. -->Column formula - case when "Period"."Quarter Number"=1 then "Period"."Quarter" || '<br> ' || cast("Period"."Year" as varchar(4)) else ' ' || "Period"."Quarter" end . But here I haven't got any changes in the graph.
- By using ‘Evaluate’ function, can execute the function “chr” with input argument as (10) – chr(10) should give a new line and this was used in the expression to build the label.
case when "Period"."Quarter Num"=1 then "Period"."Quarter" ||EVALUATE('chr(%1)' ,'10') || cast("Period"."Year" as varchar(4)) else ' ' || "Period"."Quarter" end
With this approach for Graph, for label orientation 90 & 60, seems this working. But for zero orientations, the newline is being replaced by character “~@”
Any advice on this would be really appreciated.