Forum Discussion
vedantaher
Sep 04, 2023Copper Contributor
Group by in excel
I have multiple values for each date of Jan. month and i need total of values for each date how can i go about this is there any other option than writing power query?
PeterBartholomew1
Sep 04, 2023Silver Contributor
For an arbitrary number of 'Type's you could use
= LET(
distinctDates, UNIQUE(Table1[Date]),
totalsByDate, BYROW(distinctDates,
LAMBDA(date,
SUM(FILTER(DROP(Table1,,1), Table1[Date] = date))
)
),
HSTACK(distinctDates, totalsByDate)
)