I'd like to sort my gallery by boolean value, which is possible, but I'd like false/null values to appear first. Currently the sort function results in true values appearing first regardless of ascending or descending sort order.
Does anyone know how to get false/null values to appear first instead?
Solved! Go to Solution.
I'd suggest creating a new column that groups everything into true or false then sort that.
SortByColumn(AddColumn( DataSource, ColumnName, if(blah.text = true, true,false)),ColumnName,Ascending)
It'd look something like this
Could you please try using SortByColumns() formula with this you will be able to sort data based on column which will enable you to see the false and null values.
Also could you please try re-configuring the formula once, I also tried using the sort() formula and I was able to see the values
Please check the reference document for more insights regarding the same.
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-sort
If this information helps you with resolution, please consider giving a thumbs up and mark the solution as resolved.
Wrap the formula with sort Example
Sort(Filter( Customers, Column in SortColumn),TrueFalseColumn,Ascending)
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
This does sort so that false values appear first but null values appear last. I would like false and null to appear before true values.
I'd suggest creating a new column that groups everything into true or false then sort that.
SortByColumn(AddColumn( DataSource, ColumnName, if(blah.text = true, true,false)),ColumnName,Ascending)
It'd look something like this
Use Addcolumns to create a collection:
Then sort as:
User | Count |
---|---|
166 | |
96 | |
79 | |
72 | |
59 |
User | Count |
---|---|
210 | |
167 | |
98 | |
93 | |
78 |