I need help filtering a data table.
I have a data table with two column's 'Total_Qty' and 'Min_qty'. I want to only show the records where the total qty is less then the min qty. I am getting an error with my current code. can you please let me know if i can fix this to make it work.
MY code
Filter('Configs Inventory App', Value(Min_Qty_Column1.Text) > Value(Total_Qty_Column2.Text))
the error
Solved! Go to Solution.
Please try adding back the Value() before each column. If that doesn't help, try to create the same table in a different screen with the same Item logic - If it works, simply delete and re-create the table you are using (maybe it got cached).
Ok great that worked
Filter('Configs Inventory App',Value(Total_Qty) < Value(Min_Qty))
i do get a Delegation Waring but my rows will never reach 2000 so it will be fine.
Thanks you for your help.
The code I provided is the only code I have on the data table under property 'Items'
Filter('Configs Inventory App', Value(Min_Qty_Column1.Text) > Value(Total_Qty_Column2.Text))
What about the text input controls? Have you set any default properties to them, and if yes - please share the code.
I don't have any text inputs. I was going to also filter the table with a dropdown that would filter by the Category column. but i havent set that up yet.
they are columns names in the data table. they reference the column in this table
You are trying to filter the source from the output - this is causing a circular reference. If your columns are numeric, you don't need the Value() as well.
In the Filter statement, refer to the columns from the data source directly, without adding .text
Ok so I changed my code to Filter('Configs Inventory App',Total_Qty < Min_Qty)
Now when I type the Last ")" in the code shows that it is working, after a few seconds the string turns red and gives me this error.
do you know why its failing?
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
192 | |
45 | |
45 | |
38 | |
35 |
User | Count |
---|---|
262 | |
82 | |
81 | |
71 | |
70 |