Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
CHEWBAKA
Contributor
Contributor

set analysis help

Hello everybody,

I newbie on set analysis and need some help .

 

I've creat a cross table like this

  Business unit 1Business unit 1Business unit 1
DIMENSION:TAG1DIMENSIOn:SUBTAG1ValueXcalculatevalue1=ValueX/totalValueTAG1 
 DIMENSIOn:SUBTAG2ValueYcalculatevalue2=ValueY/totalValueTAG1 
     
DIMENSION:TAG2DIMENSIOn:SUBTAG3ValueZ "HELLLPPP"
     
     
     
     
     
     

 

For the calculatdevalue1 I use this formula: calculatevalue1=Sum(VALUE)/Sum(total{<TAG={"TAG1"}>}VALUE)

It's working fine.

I'm stuck on "HELLLPPP".

I would like tu have valueZ/"total sum of TAG1 by Business Unit".

I'd try something like:

 

Sum({1}{<TAG={"TAG2"}>}Value)/Sum({1}{<TAG={"TAG1"}>}Value)

or

Sum({$}{<TAG={"TAG2"}>}Value)/Sum({$}{<TAG={"TAG1"}>}Value)

 

but it's not working.

 

Does anyone have some tips?

 

Thank you.

 

2 Replies
tresesco
MVP
MVP

I have a tip here for you. This is possibly not a problem of Set Analysis, but TOTAL qualifier or may be combination of both. Check here : TOTAL qualifer  for better understanding.

Perhaps you just need a single expression like:

Sum(VALUE)/Sum(total <TAG>} VALUE)

If this doesn't help, try to share your sample app.

 

CHEWBAKA
Contributor
Contributor
Author

thank you for the reply.

it's still not work the expression Sum(total <TAG>} VALUE) always return thetotal/ total of the first TAG (not the total of the first tag by Business unit).

it's close to be resolve ...

regards