Hello,
Issue:
We’re facing an issue with the line chart where not all months are displayed on the X-axis. Additionally, some months appear on the axis even when no data exists for them.
For example, as shown in the image below, May 2024 has valid data points but doesn’t appear on the X-axis, while October 2024 and January 2025—which have no data—are still being displayed.
For instance, October 2024 and January 2025 appear on the graph even though they aren’t present in the above data. On the other hand, May 2024 (and a few other months) have data values, but their month names are not displayed on the X-axis. When we hover over those points, the data appears — however, the corresponding month labels remain missing from the axis.
Below are the calculated fields used for this setup :
Rolling 12M Period is :
ifelse(
Date >= truncDate(‘MM’, addDateTime(-12,‘MM’, now())) and Date < now(),
‘Last 12 Months’,
ifelse(
Date >= truncDate('MM', addDateTime(-24,'MM', now()))
and Date < truncDate('MM', addDateTime(-12,'MM', now())),
'Previous 12 Months',
NULL
)
)
Dynamic Share is :
ifelse(${DynamicShare}=“Unit”,{Unit Monthly Share}, {Dollar Monthly Share})
Where
Unit Monthly Share is :
{Sum of Units} / sumOver({Sum of Units}, [Date])
Sum of Units is :
sum(units)
similarly for dollars
Retailer and Date are dataset level field.
This is how the setup Looks like :
last 12 M Vs previous 12 Months refers to the Rolling 12M period calculated field.
Note :- If we do something like below from visual properties then all months being displayed but with the gap and if we disable date gaps then it get back to the setup like above image.
Regards,
Soham.






