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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

calculated Dimension

How should i write a calculated dimension if i have to display the dimension acc. to some condition?

EX:  content of table 'A' is:

 

   COL1            COL2                COL3

     A                    14                     18

table 'B' is:

  COL1             COL2                COL3

Now i want "COL2" as my dimension based on the condition that the data in COL3 is in between COL2 data and COL3 data.

Please help.

8 Replies
Anonymous
Not applicable
Author

I'm unclear as to what you mean. Can you clarify the question a bit?

Not applicable
Author

i want my dimension as col2 of yable B but on the graph, i just want to show only those values of COL2 which are in between some given values of col2 and col3 of table A.

Not applicable
Author

please post ur problem with some data  or good scenario then only people will help you.

Not applicable
Author

please post ur problem with some data  or good scenario then only people will help you.

Not applicable
Author

please post ur problem with some data  or good scenario then only people will help you.

Not applicable
Author

please post ur problem with some data  or good scenario then only people will help you.

Not applicable
Author

please post ur problem with some data  or good scenario then only people will help you.

jagannalla
Partner - Specialist III
Partner - Specialist III

Hello,

If i understood your question, the below code may helps you.

LOAD * INLINE [

    Col1, Col2, Col3

    A, 14, 18

    A, 15, 19

];

Concatenate

LOAD *, Col2 as tempCol2;

LOAD * INLINE [

    Col1, Col2, Col3

    B, 16, 20

    B, 17, 21

];

- Take dimension as =If(Col2<>tempCol2,Col2) & Expr as Count(Col2). Please check the enclosed file for your reference.

Cheers!

Jagan