Hi
There are a number of date related questions and solutions on this forum, but none that I can get to work in my situation.
I have a dataset with capacities (of water) transported to certain locations and the date it was transported there in timestamp format. I want to show a list item showing the amount of water transported to each location TODAY.
I have the data grouped by location to get the total amount of water at each location. via the following:
Var fs = Filter(FeatureSetByPortalItem(Portal('https://[agol]/'), '[item ID]', 0), "Fill_Empty = 'Fill'") return GroupBy(fs, ['location'], [
{name: 'Vol. Water', expression: 'capacity', statistic: 'SUM'},
{name: 'Loads', expression: 'Tanker_ID', statistic: 'COUNT'}
]);
My problem comes when I try to show how much water was transported today! I cant use the filter by date as I obviously can't group dates without upsetting the above.
I hope this is clear enough, hard to explain a problem to someone who does not know the dataset.
Can anyone suggest a solution please?