Hi everyone,
Does anyone know on how to arrange number in ascending order for data table. I've tried to use sort by column and somehow it returned not in order. Here's the code:
SortByColumns(
Filter(
Mastercopy_1,
SYSTEM = Dropdown1.Selected.Result,
'Sub System'= Dropdown4_1.Selected.Result,
'EQUIPMENT TYPE'= Dropdown5_1.Selected.Result,
COMPONENT= Dropdown6_1.Selected.Result
),
"OPERATING_x0020_TEMP_x0020_(°C)",Ascending)
Solved! Go to Solution.
@Batrisyia_
Your numbers appear to be stored as text so why not convert them to numbers in your datasource and your original code will work.
If you cannot make the conversion here's another way to do it without.
Sort(
Filter(
Mastercopy_1,
SYSTEM = Dropdown1.Selected.Result,
'Sub System'= Dropdown4_1.Selected.Result,
'EQUIPMENT TYPE'= Dropdown5_1.Selected.Result,
COMPONENT= Dropdown6_1.Selected.Result
),
Value('OPERATING_x0020_TEMP_x0020_(°C)'),
Ascending
)
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
@Batrisyia_
Your numbers appear to be stored as text so why not convert them to numbers in your datasource and your original code will work.
If you cannot make the conversion here's another way to do it without.
Sort(
Filter(
Mastercopy_1,
SYSTEM = Dropdown1.Selected.Result,
'Sub System'= Dropdown4_1.Selected.Result,
'EQUIPMENT TYPE'= Dropdown5_1.Selected.Result,
COMPONENT= Dropdown6_1.Selected.Result
),
Value('OPERATING_x0020_TEMP_x0020_(°C)'),
Ascending
)
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Thank you @mdevaney. Finally the code is working. May I know how to convert them into number in datasource?
@Batrisyia_
Change the column type from single line text to number if you are using SharePoint.
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 |
---|---|
161 | |
91 | |
67 | |
63 | |
62 |
User | Count |
---|---|
216 | |
159 | |
96 | |
86 | |
79 |