Hi everyone. I have a complicated filter on a gallery in my asset management app. I am trying to give the user the option to sort by either NBV or TitleName, but its currently sorting by NBV correctly BUT when I try and sort by TitleName, its only sorting part of the list that has a NBV. I received help writing this code, the portion I have added is the varnamesort and "_calcabc",
Text(TitleGame).
Any help would be greatly appreciated!
Chris
Filter(
DropColumns(
SortByColumns(
AddColumns(
Search(
Filter(
AmusementAssets,
TextBarcode = varBarcodeScanSSC,
(Checkbox15_1.Value = true || GameAssetStatus <> "On Floor"),
(Dropdown8_5.Selected.Name = "All") || GameAssetStatus = Dropdown8_5.Selected.Name,
CurrentStoreName = Switch(
varUser.Department,
"6250",
"Franklin-0038",
varUser.OfficeLocation
)
),
tiGameName_6.Text,
"cr3db_name",
"cr3db_textbarcode",
"cr3db_serialnumber"
),
"_calced",
Value('NBV-eliminate Negative'),
"_calcabc",
Text(TitleGame)
),
"_calced",
If(
varNBVSort,
Descending,Ascending
), "_calcabc",If(
varNameSort,
Descending,Ascending
)
),
"_calced",
"_calcabc"
),
Slider4_11.Value = 0 || SetForRetirement = Switch(
Slider4_11.Value,
1,
"Yes",
2,
Blank()
),
Slider4_10.Value = 2 || Archived = Switch(
Slider4_10.Value,
1,
"Yes",
0,
Blank()
)
)