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

Complex set analysis within a if statement........

Hi Guys,

I'm doing a set analysis within an If statement, It works perfect when i select one value from a list box and it shows it perfect in a single row, but when i wanna see all the values, they have the same value as the result.

Any help, top of your head?  I know i'll probable need to show some data and what I've done, I'm working on a dummy data demo.

Thanks

And long time no chat.

Labels (1)
16 Replies
vishsaggi
Champion III
Champion III

Time to share some sample data with expected output?

sunny_talwar
MVP
MVP

May be this

=RangeMax(0, Sum({<VER = {"OPEN", "ACT"}>}EPRC) - Sum({<VER = {"PLAN"}>}EPRC))

Anil_Babu_Samineni
MVP
MVP

What are you getting when you use this alone?

(sum({<VER={"OPEN"}>}EPRC) + sum({<VER={"ACT"}>}EPRC)) - sum({<VER={"OPEN"}>}EPRC)

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
Anonymous
Not applicable
Author

No, still didn't work

sunny_talwar
MVP
MVP

Sample would be helpful as others also mentioned

Anonymous
Not applicable
Author

Ok, I'll give you something soon Sunny.

Anonymous
Not applicable
Author

Got it working

=if(num(SUM({<VER={$(vPreviousMonth)},YR={$(vCurrentYear)}>}EPRC)/1000,'#,##0')

-

(sum({<VER={"OPEN"}>}EPRC)/1000

+

sum({<VER={"ACT"}>}EPRC)/1000)<0,0,num(SUM({<VER={$(vPreviousMonth)},YR={$(vCurrentYear)}>}EPRC)/1000,'#,##0')

-

(sum({<VER={"OPEN"}>}EPRC)/1000

+

sum({<VER={"ACT"}>}EPRC)/1000))