Hello,
I trying to solve something that is probably quite simple. I have an Arduino MKR 1010 (wifi) that counts the pulses from my energymeters. The Arduino posts to my table in Dataverse every five minutes, if there has been any electricity consumption during the last five minutes for a particular enegry meter. Below is a screenshop of the actual data

As you can see, then name column is the meter, Ventilation is the energy consumed by my FTX and "Elpatron" is my electrical heater (it makes hot water if i dont fire up the boiler).
What i would like to do is to group the data by hour and by meter (name column) so i can have a chart in a powerapp the show hour by hour consumption for each consumer ("Ventilation" and "Elpatron"). I will also add more meters when my EV arrives and i will also measure my garage.
This is what i have done so far:
ClearCollect(Col_EnergyReadings,AddColumns(EnergyReadings,"DateAndHour",Text('Created On',"[$-en-US]yyyy-mm-dd:hh")));
This works as expected and adds a column that i can use to group by hour. Then I'm lost. I have tried to groupby the new column:
ClearCollect(Col_EnergyReadingsGroupedByHour,GroupBy(Col_EnergyReadings,"crdd4_name", "DateAndHour"));
But then I cant reach the meter (name) column anymore. I would like to sum the result for each meter and for each hour into separate columns. Any ideas? Here is a photo of my hardware as a bonus 🙂
