Hello,
I have connected an excel table named “LIFT_DETAILS” in powerapp. I have the following columns in
Now I want to create search page based on Turned OFF date, so I have inserted a date picker and a vertical gallery with Title (Block No & Lift ID), sub title (Turned OFF Date) and body (Building Name)
If I choose any date in the date picker then if any of the lifts are turned OFF on that selected date it must be shown in the vertical gallery. Else the vertical gallery should show a message as “No Turn OFF on selected date”
Kindly please guide me on how to make it. Thank you
Solved! Go to Solution.
A few questions:
This depends on the formatting of your Turned OFF column. That in turn, can be impacted by your data source.
Let's assume the column is formatted as a Date column within Excel. PowerApps will ready this column with a timestamp, so you will need to adjust your filtering to use only date (not time) parts.
You can do one of the following:
If the timestamp is consistent in Excel data, then you can simply adjust your DatePicker's SelectedDate output to match
Filter(
excelData,
excelDateColumn = DateAdd(
DatePicker1.SelectedDate,
TimeZoneOffset(DatePicker1.SelectedDate) * -1,
Minutes
)
)
Or adjust the source data to match the DatePicker
Or break the dates on either side into their parts
Filter(
excelData,
Date(
Year(excelDateColumn),
Month(excelDateColumn),
Day(excelDateColumn)
) = Date(
Year(DatePicker1.SelectedDate),
Month(DatePicker1.SelectedDate),
Day(DatePicker1.SelectedDate)
)
)
Definitely a few idiosyncrasies with dates and filtering. Good luck!
A few questions:
This depends on the formatting of your Turned OFF column. That in turn, can be impacted by your data source.
Let's assume the column is formatted as a Date column within Excel. PowerApps will ready this column with a timestamp, so you will need to adjust your filtering to use only date (not time) parts.
You can do one of the following:
If the timestamp is consistent in Excel data, then you can simply adjust your DatePicker's SelectedDate output to match
Filter(
excelData,
excelDateColumn = DateAdd(
DatePicker1.SelectedDate,
TimeZoneOffset(DatePicker1.SelectedDate) * -1,
Minutes
)
)
Or adjust the source data to match the DatePicker
Or break the dates on either side into their parts
Filter(
excelData,
Date(
Year(excelDateColumn),
Month(excelDateColumn),
Day(excelDateColumn)
) = Date(
Year(DatePicker1.SelectedDate),
Month(DatePicker1.SelectedDate),
Day(DatePicker1.SelectedDate)
)
)
Definitely a few idiosyncrasies with dates and filtering. Good luck!
The excel file is located at the onedrive. I tried the first syntax given by you. It works well based on my requirement. Thank you so much for your support. 🙏
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
191 | |
95 | |
62 | |
59 | |
58 |
User | Count |
---|---|
251 | |
164 | |
93 | |
79 | |
70 |