hi @Kosenurm
AddColumns will add the column in the gallery to the existing datasource. Can you please take a screenshot of your code with the errors.
in the previous post:
colDemo = your Dataverse table
dateOne = your Dateone
dateTwo = your Datetwo
dateThree = your Datethree
Consider the dataverse table is the below code
ClearCollect(
yourDataverseTable,
ForAll(
Sequence(10),
{
id: Value,
Dateone: Today() - RandBetween(
1,
10
),
Datetwo: Today() - RandBetween(
1,
10
),
Datethree: Today() - RandBetween(
1,
10
)
}
)
)
This will create something like this in a gallery

Adding a column to this gallery (you can do this by adding it to a collection as well) will have the earliest date

Now you can sort you gallery by the added column, EarliestDate

As you can see the gallery is now sorted by the earliest date of the three in ascending order.
I hope this is more clearer and it helps a bit,
R