The optional parameter is not setting

When the first and the second optional parameter is there , the code is working but when the third one is entered.
It stops
Any idea, the dataformat is right

Hi @ishkabirk
Change line 12 from }},]] to } },]]
Only use double brackets together, when it's related to a Metabase variable syntax.

Thank you , the error was resolved

As you can see from the photos in case 1 , it is not showing output but for the compulsory case(photo 2) it is working, Any idea where is the error issue, it works if i remove the optional clause , Can you tell any way around

@ishkabirk I'm sure there's other changes to your query. Look in your database query log to see the difference in the query.