79532188

Date: 2025-03-24 21:29:44
Score: 2.5
Natty:
Report link

As @Saddles pointed out in the comments, the WHERE clause should go before the lablel like this =QUERY(earnings!A:J, "SELECT A, B, C, YEAR(C), toDate(C) where A = 'Brooklyn' label YEAR(C) 'Year', toDate(C) 'Month' format toDate(C) 'MMM'", 1)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Saddles
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: martin schwartz