如何过滤下拉控件的行?
目前我正在将 Items 属性绑定到列,例如Items=Table1.Name
,但这会使用所有可能的行填充下拉列表。我想过滤另一列满足条件的所有行,例如Table1.Date=Today()
Just a note that I had to do something a little more complex for filtering out results for a SQL source where I also needed a Distinct.
The basic idea is I wanted years out of a table, but only last year and whatever years we had listed. Also worth noting the 500 row limit was a bit of an issue against my original date table, and so this only works with smaller tables.
In my case, I needed to create a view to reduce the data granularity
Distinct(Filter('[dbo].[YearList]', YearNumber >= Year(Now()) -1), YearNumber)