Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to find the total price of the Top 5 customers for a date range greater than 202314
This formula works (one specific week 202314)
= sum({<Customer= {"=Rank(Sum({<ExpYrWk ={'202314'}>} Price)) <=5"} >}Price)
But this does not (weeks greater than 202314)
= sum({<Customer= {"=Rank(Sum({<ExpYrWk ={">202314"}>} Price)) <=5"} >}Price)
I guess it is not working because of using double quotes here. But I have to use it to perform search operation (>202314). Not sure how to do this.
Thanks in advance
@lost_rabbit you need to escape double quotes in inner set as you already used it in outer set like below
= sum({<Customer= {"=Rank(Sum({<ExpYrWk ={"">202314""}>} Price)) <=5"} >}Price)
Try this
= sum({<Customer= {"=Rank(Sum({<ExpYrWk ={'>202314'}>} Price)) <=5"} >}Price)
Tried this already. Unfortunately it returns 0 if I replace double quotes with single quotes
May be thus
=sum({<Customer={"=Rank(Sum({<ExpYrWk={'>$(=max({<ExpYrWk={'>202314'}>}ExpYrWk))'}>}Price))<=5"}>}Price)
Nope. Doesn't work. Returns 0
@lost_rabbit you need to escape double quotes in inner set as you already used it in outer set like below
= sum({<Customer= {"=Rank(Sum({<ExpYrWk ={"">202314""}>} Price)) <=5"} >}Price)
You can try with [ ]
From https://community.qlik.com/t5/Design/QlikView-Quoteology/ba-p/1476029
Today, in Set Analysis, it doesn't matter whether you use single or double quotes. They both interpret the content according to bullet two below. But it should matter. There is a bug here... And one day it will get fixed.
It should be this way:
Thanks. This worked 🙂
@Kushal_Chawda Kindly check my follow up question here