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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis problem

Hi

I've data like this..

Cavnum
Length
inspCount
101
152.9010671
164.780341
201
248.3964221
2346.098621
301
348.4072751

- I've two variables(i.e vLB and vUB) in my sheet which i've taken in inputbox. So that user can enter the values here. Let takes vLB = 0 and vUB=46.

- Now i've taken Cavnum as dimension in straight table and 3 expressions as

1. #All -> =sum(inspcount)

2. Small -> =(Sum({$<MeasureLength={"<=$(vLB)"}>} inspcount))

3.Medium -> =(Sum({$<MeasureLength={">$(vLB)<=$(vUB)"}>} inspcount))

4. Large -> =(Sum({$<MeasureLength={">$(vUB)"}>}inspcount))

- I'm not able to get exact values what i want. B'coz i've taken Cavnum, Measure Length in listbox and i'll select 1 as cavnum and 0 from MeasureLength listbox then it shows exact value in the straight table.

Is there any thing wrong in my set analysis..

3 Replies
swuehl
MVP
MVP

Hi,

I think your expressions should work, but please recheck the exact spelling of your field names (case sensitiv).

I think it should be inspCount in your set expression instead of inspcount and Length instead of MeasureLength.

Also check your number format, that the decimal separator is set to '.'

Hope this helps,

Stefan

Not applicable
Author

Swuehl,

Sorry the field name is MeasureLength only..

Can you see please the attached image it shows different data in striaght table. When comparing to the selection i made.

Not applicable
Author

Try that:

MeasureLength={'$(=num(52.901067))'}

=sum({<MeasureLength={'$(=num(52.901067))'}>}inspcount)

Hope it helps.

Marcos