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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

set Analysis fixing a value

Hi

I am looking for a piece of set analysis that will fix the value of a bar (blue bar) but vary the value of the second bar based on current selection (purple bar).

SetA.GIF

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be like this:

Blue bar -> Sum({1} Measure)

Purple bar -> Sum(Measure)

View solution in original post

9 Replies
sunny_talwar
MVP
MVP

May be like this:

Blue bar -> Sum({1} Measure)

Purple bar -> Sum(Measure)

Anonymous
Not applicable
Author

Hi

I have tried your suggestion but I did not get the desired result. this is my code:

sum({1} {$(=vExpTotal)}  / sum(TOTAL [Number Of Trees]))

sunny_talwar
MVP
MVP

How do you define vExpTotal?

Anonymous
Not applicable
Author

sum(1* 1* 1 / 1 / 1)

1 = measures

sunny_talwar
MVP
MVP

I don't really understand this, would you be able to share a sample?

Anonymous
Not applicable
Author

I would like but it is highly confidential

Anonymous
Not applicable
Author

the 1(s) represent measures that I'm multiplying & dividing

sunny_talwar
MVP
MVP

What is the point of multiplying and dividing the same thing multiple times?

So assuming 1 -> Sales

Sales*Sales*Sales/Sales/Sales = Sales, then why not just do Sum(Sales)?

sunny_talwar
MVP
MVP

May be mock up some data, because we will have trouble helping you with the kind of information we are looking at.

QlikCommunity Tip: How to get answers to your post?

Preparing examples for Upload - Reduction and Data Scrambling

Uploading a Sample

Best,

Sunny