As long as Gooddata don't work with hours, we created two attribute datasets (begin_hour and end_hour) to handle hours of the day (from 00 to 23).
We also have a Store dataset whitch have two fields to handle the working hours for each store (store_begin_hour and store_end_hour) as well.
In order to get values only from the working hours of each store, we made the following metric:
select avg(store_temperature) where begin_hour >= store_begin_hour and end_hour <= store_end_hour
Firstly it worked but we noticed that there was no data for some hours (15,16,17). Then we looked to the elements?id of each one of the hour attributes and we found the problem.
The element?id of these 3 hours (15,16,17) hadn't the same sequence of the others (... 13h=22, 14h=23, 15h=7, 16h=6, 17h=9, 18h=24 ...), so it wasn't included in the select criteria.
I've tried to delete the hour attribute values and full load the same data to these datasets again but the id's still the same after all.
There are some way to change these 3 id's for these 3 hours?
OBS: The "id" that I'm talking about isn't a field, it's the url identifier of each attribute value, like in the image bellow:
There is a way how to work with hours and minutes in GoodData using the custom date dimension.
But to completely answer your question it's necessary to investigate your logical data model. Could you please share it via [email protected] ? Thx!