Arlind Musliu
Group by date and summarize number of pages
I found a solution for my issue: The problem when grouping is that Filament expects an ID column when displaying the data in a table.
However, as we know, when we group rows according to a particular field, we don't need the ID of a row. To fix this, we need to create a new field ID that will be formed by the number of total grouped roles.
That can be done through SQL like this:
3 replies
Error When Displaying Aggregated Data in Filament Resource Table
I found a solution for my issue: The problem when grouping is that Filament expects an ID column when displaying the data in a table.
However, as we know, when we group rows according to a particular field, we don't need the ID of a row. To fix this, we need to create a new field ID that will be formed by the number of total grouped roles.
That can be done through SQL like this:
I have modified my code to adapt it to your need, but you'll have to test it.
5 replies
Syntax error or access violation: 1055 Expression #1 of ORDER BY clause is not in GROUP BY
I found a solution for my issue: The problem when grouping is that Filament expects an ID column when displaying the data in a table.
However, as we know, when we group rows according to a particular field, we don't need the ID of a row. To fix this, we need to create a new field ID that will be formed by the number of total grouped roles.
That can be done through SQL like this:
I have modified my code to adapt it to your need, but you'll have to test it.
3 replies