Drupal Charts: date charts doesn't show empty values - date

I have made a chart with on my X-as date values. When I have no values on certain months, the chart does not show that month.
How can I show the months that have no values?
in my example it doesn't show months 9-2022 and 5-2022
Example:
Empty Values not shown
I was expecting the months with no values apeared in the chart

Related

Tableau - Filter only on some variables in a sheet

I would like to add a filter to a sheet in Tableau. My problem is that it should not filter on all variables in the sheet, Is that possible?
It's a date filter ( week number) and some of the rows in the data don't have a date, but should not be filteret away. Is changes every week which rows has a date and which don't.
When I add the filter - week number, the rows with no date is filteret away. I need to do it in a sheet and not only combine two sheets in a dashboard.

How to display date from a specific month in Excel Pivot Chart

I want my chart showing period from FEB-2020 to DEC-2021. However, if i filter away January, it will remove January for 2020 & 2021. This is because, "Years" & "Date" They are independent filters. How to only filter away JAN-2020 only?
I have figured out.
If create using pivot chart, we can either show month with no data or show month only data. However, show month with no data, u will show full year-month for 2020 which is unwanted.
For pivot chart, u have only 1 way to control month to display is to create dummy data for that month. Then, run a macro to delete "(blank)" legend.
Hit me up, if anyone interested to know more.☺

Conditional LabelsFormat on Report Builder Chart

I am trying to design a SSRS report where the end user can choose whether they want to view certain charts grouped by year or by month. The user chooses a value for the parameter #dategroup to determine this.
If #dategroup is "YEAR" the SQL groups and pulls row counts for the last 6 years. If #dategroup is "MONTH" it groups and pulls the last 6 months. The SQL is working fine, but I am struggling with getting the horizontal axis labels to format correctly on my report builder charts.
My query passes a "cte_date" column to the horizontal axis which is a date field. When the report is grouping by month I use the LabelsFormat properties grab the month part of the date. For example, if the query passes the value 2019-01-01 to the chart the LabelsFormat will convert that to "Jan". In this case the property LabelsFormat value is "MMM". When #dateformat is "YEAR", the horizontal axis in this case would be "2019", LabelsFormat "yyyy".
I have tried customizing the LabelsFormat property to
Iif(Parameters!dategroup.Value=YEAR,yyyy,MMM)
But this is not returning the desired results (month part if grouped by month, year part if grouped by year). Is there a way to format axis labels (which are dates) based on a parameter value?
The code in the question was close, it just needed some formatting changes. Add double quotes to the parameter value and formats. Enter the below code into the LabelsFormat property of the axis you want changed.
=IIf(Parameters!dategroup.Value="YEAR","yyyy","MMM")
If the #dategroup parameter is set to "YEAR", it will format the date to show just year. Otherwise, it will format date to the three letter month code.

How to sort months containing zero value in SSRS chart

I'm creating a SSRS chart that show total results for each months within the current and previous year. My query is showing values and also showing 0 values for applicable month and year. My question is when I create a chart, months are sorted except for those with 0 values.
For example, My months is sorted by financial year, year and month. October is right at the beginning of the chart as the previous financial year had 0 value and the rest of the months are all in the correct sort order. Is there a way I can fix this in SSRS and move October to its correct order?
You can this
Chart data- category Groups Properties - sorting section
Sorting is done here.

SAS EG date issue

i want to build a bar chart where the X-axis is month year ( example : NOV 2010)
in my dataset i got a column called MonthYear contains the month year value.
The problem is when i use the MonthYear column as the X-axis value , in the bar chart X-axis it come out numeric value (example : 14800 ...). I google out and found out that it is the date value in SAS.
i would like to know how can i display date as "NOV 2010" form on X-axis in bar chart.
i tried to change it into a character value column but it is sort alphabetically.
Add the format monyy7. on the MonthYear column of the source dataset.