Writing a google sheets formula in DOMO beast mode

Hello,

I would like some help writing this formula from google sheets in DOMO Beast Mode or any other option available in DOMO, please. Take into consideration that Year and Tons are columns.

(SUM(IF(Year = 2025, Tons,0))/(SUM(IF(Year = 2024, Tons,0))))-1

Thanks in advance, and have a nice day!