I have this code:
SELECT
"Fiscal Month",
"Fiscal Month#",
"Platform",
"Subchannel"::VARIANT,
SUM("Transaction Revenue") AS "Revenue",
SUM("Sessions") AS "Sessions"
FROM
DATA_LAKE.TABLEAU_PREP."ALC PR"
WHERE
"Fiscal Month" > '2023-01-01'
AND "Fiscal Month#" = {{month1.value}}
AND "Subchannel" IN ({{multiselectListbox1.value.map(item => `'${item}'`).join(",")}})
GROUP BY
"Fiscal Month",
"Fiscal Month#",
"Platform",
"Subchannel";
And prior to this I kept getting an error saying Variant isn't an accepted type. I'm using a multiselectListBox to get an array of values and I'm trying to filter my SQL code using that array.
Any suggestions?