Hi i currently use the following filter
If(
Connection.Connected,
ClearCollect(
colAssetReg,
{Asset: ""}
);
Collect(
colAssetReg,
Sort(
Distinct(
Filter(
'Asset Register',
Asset_x0020_Type.Value = "Haul Truck" || Asset_x0020_Type.Value = "Compactor" || Asset_x0020_Type.Value = "Dozer"
),
Asset
),
Result
)
)
)
Which works to first add a blank value in Asset and then filters the collection by the 'asset type' sharepoint choice column, however i have two other columns i wish for it too filter by, One is a Text field called location and another choice field called status.
From my reading of the wiki i now use GroupBy correct?
Could someone unjumble my attempt and tell me where i went wrong (just trying with one for now)
If(
Connection.Connected,
ClearCollect(
colAssetReg,
{Asset: ""}
);
Collect(
colAssetReg,
Sort(
GroupBy(
Filter(
'Asset Register',
Asset_x0020_Type.Value = "Haul Truck" || Asset_x0020_Type.Value = "Compactor" || Asset_x0020_Type.Value = "Dozer" && Status.value = "Active"
),
Asset, Status
),
Result
)
)
)
i cant seem to make it work? how could i get the formula to work with 3 or 4 etc values? the examples in the wiki dont work for me