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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

set question ?

Hi Folks I have table like this

   

MINValueMAXValueIdentifier
00.0120
0.0120.03471
0.03470.10962
0.10960.30343
0.30340.63014
0.63011.51155
1.51153.48736
3.487312.96167
12.96161018

t2:

   

valueMonthnames
0Jan-16
0.01Feb-16
0.05Mar-16
0.1Apr-16
0.1May-16
0.75Jun-16
0.2Jul-16
10Aug-16
10.5Sep-16
5.5Nov-16
50Dec-15
50.5Nov-15
3.7Oct-15
0.013Mar-15
0.01094Feb-15
1

Jan-15

in my chart dimension is month names and expression is

like

if (sum(value)>minvalue and sum(value)<maxvalue,,1,0)

here I don't have any association between the 2 tables

20 Replies
tresesco
MVP
MVP

What is your expected output?

Anonymous
Not applicable
Author

IN ONE CHART

DIMENSION IS

MONTHNAMES

AND EXPRESSION  IS

if (sum(value)>minvalue and sum(value)<maxvalue,,1,0)

THIS IS NOT GIVING CORRECT VALUE

tresesco
MVP
MVP

qlik777 view777 wrote:

THIS IS NOT GIVING CORRECT VALUE

That I understood; and I could not understand what your CORRECT VALUE is.

Anil_Babu_Samineni

May be typo error. I just removed one , from your expression.

if (sum(value)>minvalue and sum(value)<maxvalue,1,0)

Can you confirm me what was the values are minvalue, maxvalue

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

Hi,

You can create associate key from following way:

Script:

Table1:

LOAD * INLINE [

    MINValue, MAXValue, Identifier

    0, 0.012, 0

    0.012, 0.0347, 1

    0.0347, 0.1096, 2

    0.1096, 0.3034, 3

    0.3034, 0.6301, 4

    0.6301, 1.5115, 5

    1.5115, 3.4873, 6

    3.4873, 12.9616, 7

    12.9616, 101, 8

];

table3:

LOAD *, RowNo(),MINValue as value1

Resident Table1;

DROP Table Table1;

Table2:

LOAD * INLINE [

    value, Monthnames

    0, Jan-16

    0.01, Feb-16

    0.05, Mar-16

    0.1, Apr-16

    0.1, May-16

    0.75, Jun-16

    0.2, Jul-16

    10, Aug-16

    10.5, Sep-16

    5.5, Nov-16

    50, Dec-15

    50.5, Nov-15

    3.7, Oct-15

    0.013, Mar-15

    0.01094, Feb-15

    1, Jan-15

  

];

table4:

load

*,RowNo()

Resident Table2;

DROP Table Table2;

Please find attached QVW for detail information and result table

praveenkumar_s
Creator II
Creator II

Can anybody tell me how to extract list from powershell

jonathandienst
Partner - Champion III
Partner - Champion III

I think you need an interval match - something like this script:

t2:

LOAD

  value

  MonthNames

FROM ...

;

Left Join(t2)

IntervalMatch(value)

LOAD MINValue, MAXValue - 1e-9 as MAXValue

FROM ...  // min - max table

;

Left Join(t2)

LOAD MINValue, MAXValue - 1e-9 as MAXValue, Identifier

FROM ...  // min - max table

;

Replace the ellipses with the correct FROM clause for your system.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
hemanthaanichet
Creator III
Creator III

Hi,

I dnt know what is exact output your are in need i guess and  solved to some extend may be this is the output are in need off

Attached QVW for your reference

let me know if you have any queries

Regards

Hemanth

Anonymous
Not applicable
Author

i want to  do this in chart expression level