Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
100Glizzy
Contributor
Contributor

Error in set modifier ad hoc element list: ',' or ')' expected in formula

Hi all,

I've been trying to do something relatively simple but I just don't see where I'm going wrong. I'm still figuring out the $ application within QS scripting. I feel like the fix is relatively simple but this isn't something I've been able to find myself..

On the front end (chart view), I want to select the latest date (Rep_Year_Month) from a range of dates selected in the filter pane. However I am getting the issues mentioned in the title. Looking up various solutions removes the variable I'm trying to isolate.

 

sum({<Rep_Year_Month = {$(=Max(Rep_Year_Month))}>} [Sales Net])

 

Thank you!

 

Labels (4)
1 Solution

Accepted Solutions
Anil_Babu_Samineni
MVP
MVP

@100Glizzy This maybe?

sum({<Rep_Year_Month = {"=$(Max(Rep_Year_Month))"}>} [Sales Net])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Anil_Babu_Samineni
MVP
MVP

@100Glizzy This maybe?

sum({<Rep_Year_Month = {"=$(Max(Rep_Year_Month))"}>} [Sales Net])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
100Glizzy
Contributor
Contributor
Author

Almost, this fixed it! Thank you!!

sum({<Rep_Year_Month = {'$(Max(Rep_Year_Month))'}>} [Sales Net])