Forum Discussion
Select specific date from table
- 4 years ago
Alexandra_B , You can use date table and time filter or both date and time table as filter. Assume date filter is all sorted
you can add time filter on a time column (have or create like)
Time = timevalue([Datetime])
calculate(Sum(Table[Value]) , filter(Table, Table[Time]>= time(8,0,0) && Table[time] >= time(16,0,0) ) )
or use time table to
https://kohera.be/blog/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/
Basically I need to calculate data from half hourly fields based on date.
I have created a slicer for days of the week, I will need to calculate the data between 08:00 - 16:00 Mon to Fri for specific dates (when school is open) and then calcuate a different time for the rest of the time.
To calculate the data from 08-16:00 for example I can create a measure to sum the fields, then I can select multiple days from the slicer. I woud like to be somehow able to set another slicer/ measure/ column withdates when schools is open.
Alexandra_B , You can use date table and time filter or both date and time table as filter. Assume date filter is all sorted
you can add time filter on a time column (have or create like)
Time = timevalue([Datetime])
calculate(Sum(Table[Value]) , filter(Table, Table[Time]>= time(8,0,0) && Table[time] >= time(16,0,0) ) )
or use time table to
https://kohera.be/blog/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/