Hi all,
I'm try to set a rectangle color to purple if I have any match in my gallery that has the date time value with a date in my variable and with the time 09:00 OR earlier.
I was thinking to do it with a collection and count the number of items in the collection, but that's only working if the start time is exactly 09:00.
For your information, I'm working with dataverse. I save the date in a variable: var_DateWednesday. My gallery, named Wednesday has a couple of items. In my rectangle at the fill property, I add the folow formula:
The startdate field is a date/time value in dataverse.
If(CountRows(Filter(Wednesday.AllItems,'Startdate (startdate_dateonly)'=var_DateWednesday And Text('Startdate (startdate)',"hh:mm") = "09:00"))>=1,Purple, Blue)
What I want is the follow:
I want also set the color purple if the time in startdate is earlier than 09:00. (for example: 06:00)
How can I do that? I try <= but that would not work because I transformed the startdate to a Text value.
Any suggestion will be welcome!
Thanks in advance.