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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Function as a modifier

Hi guys,

I am trying to evaluate this function:

concat({<Order_Channel_Name={"=sum({1<[Transaction_Date.autoCalendar.Year]={"$(vLY)"}, [Transaction_Date.autoCalendar.Month]={"$(vMonth)"}>}Value-Tax)>0"}>}distinct Order_Channel_Name, ',')

I want a list separated with commas of Order Channels that have sales in Last year and same month as selected above 0

I have split the concat and sum functions and they work. It is just when I put them together that they don't.

Any ideas?

Thanks
George

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be because of double quotes within double quotes? May be try one of these...

using Escape sequences

Concat({<Order_Channel_Name={"=sum({1<[Transaction_Date.autoCalendar.Year]={""$(vLY)""}, [Transaction_Date.autoCalendar.Month]={""$(vMonth)""}>}Value-Tax)>0"}>}distinct Order_Channel_Name, ',')

Or using single quotes instead of double quotes

Concat({<Order_Channel_Name={"=sum({1<[Transaction_Date.autoCalendar.Year]={'$(vLY)'}, [Transaction_Date.autoCalendar.Month]={'$(vMonth)'}>}Value-Tax)>0"}>}distinct Order_Channel_Name, ',')

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be because of double quotes within double quotes? May be try one of these...

using Escape sequences

Concat({<Order_Channel_Name={"=sum({1<[Transaction_Date.autoCalendar.Year]={""$(vLY)""}, [Transaction_Date.autoCalendar.Month]={""$(vMonth)""}>}Value-Tax)>0"}>}distinct Order_Channel_Name, ',')

Or using single quotes instead of double quotes

Concat({<Order_Channel_Name={"=sum({1<[Transaction_Date.autoCalendar.Year]={'$(vLY)'}, [Transaction_Date.autoCalendar.Month]={'$(vMonth)'}>}Value-Tax)>0"}>}distinct Order_Channel_Name, ',')

Anonymous
Not applicable
Author

It works!! Thanks a lot!!