Hi @Ramole ,
Could you please share a bit more about your scenario?
Do you want to include the Date within the Group?
Please consider modify your formula as below (display the latest Order Date within your Gallery😞
Search(
AddColumns(
GroupBy(
AddColumns(
'Shipments ',
"CompanyText",
Company.Value
),
"CompanyText",
"ShipmentsByCustomer"
),
"OrderDatesFull",
First(Sort(ShipmentsByCustomer, OrderDate, Descending)).OrderDate, // Modify formula here
"CODFull",
Sum(
ShipmentsByCustomer,
CodAmount
),
"TotalShipmentFee",
Sum(ShipmentsByCustomer, ShippingFee),
"Company",
Descending
),
TextSearchBox1.Text,
"CompanyText"
)
or display all Order Dates as string (separated with ';') within your Gallery:
Search(
AddColumns(
GroupBy(
AddColumns(
'Shipments ',
"CompanyText",
Company.Value
),
"CompanyText",
"ShipmentsByCustomer"
),
"OrderDatesFull",
Concat(ShipmentsByCustomer, OrderDate & "; "), // Modify formula here
"CODFull",
Sum(
ShipmentsByCustomer,
CodAmount
),
"TotalShipmentFee",
Sum(ShipmentsByCustomer, ShippingFee),
"Company",
Descending
),
TextSearchBox1.Text,
"CompanyText"
)
Within your Gallery, you could display all Order Dates as string value using the following formula:
ThisItem.OrderDatesFull
If you want to display all Order dates separately within your Gallery, I think you could consider add a List Box control or nested Gallery within the Parent Gallery to display the all Order dates:
Search(
AddColumns(
GroupBy(
AddColumns(
'Shipments ',
"CompanyText",
Company.Value
),
"CompanyText",
"ShipmentsByCustomer"
),
"OrderDatesFull",
ShipmentsByCustomer.OrderDate, // Modify formula here
"CODFull",
Sum(
ShipmentsByCustomer,
CodAmount
),
"TotalShipmentFee",
Sum(ShipmentsByCustomer, ShippingFee),
"Company",
Descending
),
TextSearchBox1.Text,
"CompanyText"
)
Set the Items property of the List Box or nested Gallery to following:
ThisItem.OrderDatesFull
within the nested Gallery or List Box, set the Text property of the Label to following:
ThisItem.Value
Please consider take a try with above solution, check if the issue is solved.
Best regards,