Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

set analysis expression

i need to calculate :

based on one field

U=

x-y/x+y+z

want to calculate U based on count(id)

3 Replies
Anil_Babu_Samineni

Would you describe more, Please?

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

suppose i have values for id

2

3

5

6

7

8

which are associated to field x,y and z

now i want to calculate U bsed on above formula

count of x,y,z based on id

and x,y,z are texts

Anil_Babu_Samineni

How do i know which values are associate with x,y,z over here?

May be create two columns as static and then explain business and tell us required output. So that we can tack easily. You mentioned x,y,x are texts.

May be this?

(Count({<U = {'x'}>}id)-Count({<U = {'y'}>}id))/(Count({<U = {'x'}>}id)+Count({<U = {'y'}>}id)+Count({<U = {'z'}>}id))

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