Use case: i want to create a pivot table with 2x group by date.
(Day / hour)
This is not possible at the moment. I thought i could maybe do a work around by adding a custom column which is just a 'copy' of the date field.
If I look at the results in a table, then i can see that column correctly added, but I can't use it in a group by, because it is not seen as a 'date' column.
Is it possible to specifiy the 'custom' column as a date column?
@cobalt Create a database view with an extra column, that's what I have been doing for a couple of years.
It might be possible to do something with Models in 0.42.
Thanks for the suggestion. If it was for personal use, i would definitely already have done this.
But it is for all our clients where we install metabase, and i don't want to work with all different kind of views instead of the main tables.
Let's see what i can do with Models as soon there is a new version out without the current bugs in RC1
As long as i don't use the field in my group by, i can find it in the joined table to group by on. But as soon as i select it either on the model table or the original table, the other field will be gone.
@cobaltselect *, my_date_column as my_date_column2 from my_table
Example from Sample Database: select *, CREATED_AT as CREATED_AT2 from PRODUCTS - save question, convert to Model and then I connected the metadata just to make it look nice.
@cobalt
Logs are everything - without those, I don't know - Admin > Troubleshooting > Logs.
And always include "Diagnostic Info" from Admin > Troubleshooting.
It would also be extremely helpful if you could run in English, since while I can read Dutch, it's just a lot easier to read English - and you will find many more results, when you search for English errors.