Can a drupal view return groups that have no associated rows - drupal-7

I have an event view that is grouping an html list by date. The display I want to create is a "week" display with columns for sunday 1st, monday 2nd, tuesday 3rd ... saturday 6th. It's working great when I have an event on every day, but when there are days with no events I get no group (or column) for that day. Is it posible to modify my display to return groups (ie days) that have no results. Am I going to have to do something crazy like create a template for the display that has the 7 columns determines the start date from the exposed filter and the corresponding dates for the every day of the week? blah...
Any help would be greatly appreciated.

In your contextual filter of your View, can you edit the NO RESULTS BEHAVIOUR in advanced settings ?

Related

Data Studio Time Series Chart Last 6 Month based on Date Filter EndDate

Can I have a time series chart to display the last 6 months QTY sold? as the report filter is monthly based.
ex. Users can choose 2021/10/01 - 2021/10/31 to view the report and there is a chart to display the last 6 months QTY sold. In this case, the time series chart will display 2021/05/01 to 2021/10/31.
If users can choose 2021/06/01 - 2021/6/30 to view the report and there is a chart to display the last 6 months QTY sold. In this case, the time series chart will display 2021/01/01 to 2021/06/30.
Through my advanced knowledge of the platform, I am not aware of the possibility of obtaining the mentioned result.
It is not possible to use the date filter control element and the respective date range as an input variable to define the period dimension used in the temporal graph.
You will probably have to look for an alternative solution that doesn't match the proposed objective. Using a fixed period of the last 6 months, without the possibility of dynamic variation through the date control element. Or, use two date filter control elements, one for the time graph only. Solutions far from ideal.
The issue was solved, I created another data source for 6 months of sales.

What is the correct way to add and remove columns inside another column at runtime in Ext JS?

I want to build a grid that displays the number of hours an individual has worked where each column represents one day. Each day column should be inside a month column. In the gui I can select a start date and the grid should display one month -1 day worth of days, e.g.:
| January | February |
|Day6|.....|Day31|Day1|.......|Day5|
I have tried to delete the days inside a month column using destroy() on each day column, but when when the last day column is destroyed, the parent column (month) is also destroyed automagically (can I prevent this?).
I have also tried to delete the month columns and add new month columns containing day columns but this results in a very strange behavior, se example:
If i begin with this:
| January | February |
|Day6|.....|Day31|Day1|.......|Day5|
and delete January and February with destroy(), and straight after add new months containing the correct number of days I end up with duplicate of days in the grid like this:
| January | February |
|Day6|.....|Day31|Day6|.....|Day31|Day1|.......|Day5|Day1|.......|Day5|
As if the month column was never destroyed or as if the column was destroyed but the view is not updated correctly.
So to the question. What is the correct/best way to delete and add columns at runtime with the following requirements:
(At runtime when selecting a new start date:)
Delete month column OR all day columns inside the month column.
Create a new month column and populate with correct number of days OR add new day columns to the month column.
Thanks in advance!

Views result group by date with count of a month results

I have an article listing section in a drupal 7 website made by Drupal views module, I arrange those article according to the group of the month but I am trying to put count the result of each month with month heading
See this:
Expecting this:
Thanks

How can i set views filter to show specific content based on actual month?

The content that i want to show is random pictures in views block. Few of them needs to by shown on January, others on February, others on March, and so on.
Showing of specific content will reapeats every year (example: only in january in every year)
I have created vocabulary for that content type with "January", "February", "March" as values. Every photo has one of these values.
And now is the part where i am stuck:
I want to add views filter which points to that vocabulary with additional actual date rule, like:
IF date('m') = january THEN set filter to Vocabulary Months = January else
IF date('m) = february THEN set filter to Vocabulary Months = February ... and so on.
Can someone tell me by wich modules i will achieve this?
I did this already by using Date Repeat module but for user it means, that he needs to put some extra values in 3-4 additional fields - and that is "not simple".
Any advice?
I'd switch from a taxonomy field to a date field (i.e. set month as a date field value on the images), then use the current relative date as a filter.

How to Eliminate #Error Columns in Tablix Crosstab Group

Imagine a one-table query that accepts a year (range) as a parameter and then yields a dataset grouped by State, City, and Month, with a count of UFOs, if any, for each month.
Tie that dataset to an SSRS Tablix, with a crosstab layout:
The Row Groups are State, City;
The Column Group is the Month (Jan through Dec); and
The row-column intersections are the # of UFOs sighted, if any.
PROBLEM:
If I run the (parameterized) report for one location, even one with few sightings, all goes well: I see columns only for months with sightings.
However, if I report more than one location (say, "Albany," with daily sightings, and "Troy," with October-only), Troy's grouping will come out ugly: If reported alone, just the October column would show, but, now, October along with 11 columns of "#Error" for the month name and a "0" for UFO count appear.
I suspect that one solution may involve some 0- or NULL-fill of missing-month data for Troy and other cities (How?), but is there some other way, via the Tablix widget, to achieve the desired result?
I don't understand what you're doing wrong but the matrix usually works with filling the headers correctly and leaving blanks where there is no data for a single group.
It might help if you show your design view.
Design View:
Report View:
Many of the users don't have data for previous months but at least one does so the month is displayed in the header. The blanks are where there is no data for that month/user combo.
I don't see why your report isn't working like this. If I only selected one user, then only the months that user had will be displayed.

Resources