Sum(Filter(Gal_RoomPlan.AllItems,DD_Vactype.Selected.Value = "Pfizer"),Value(Usedvac.Text)),
But i want to find all available medicine without hard coding the Medicine type value and display it in gallery .

Hi @PapithaSekar1 ,
This will get you two columns - Medicine Type (you may have to correct the field name) and TotalUsed which will be the total of each.
AddColumns(
GroupBy(
Gal_RoomPlan.AllItems,
"MedicineType",
"OtherData"
),
"TotalUsed",
CountRows(OtherData)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.