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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using a variable to set part number, Sum issue


Hi all,

Still a novice to this so this may be a very basic question.

I have set a variable as follows ,

FirstSortedValue([Part Number], -Aggr(sum({$<Week={$(=max(Week))},eTailer-={specified etailer name}>}[Total Events]),[Part Number]))

(That works fine to display the Part Number)

and referenced it in a text box to try to count the number of clicks (Total Events) this part had last week (This is for a dashboard view btw) as follows:

=sum({<[Part Number]={$(vTopPartLastWeek)}>}[Total Events]

But I cannot make this work, can anyone please tell me where I've gone wrong here?

1 Solution

Accepted Solutions
marcus_sommer

Try this:

=sum({<[Part Number]={'$(vTopPartLastWeek)'}>}[Total Events])

- Marcus

View solution in original post

2 Replies
marcus_sommer

Try this:

=sum({<[Part Number]={'$(vTopPartLastWeek)'}>}[Total Events])

- Marcus

Not applicable
Author

Thank you SOOO much Marcus!!

This works a treat.