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: 
Not applicable

calculated dimension in expression

Hi,

I have a issue where I have a calculated dimension where I need to use the value in an expression. Is there a way to use this value in my expression? Please note that my chart does not work when I use the calculated dimension as an expression.

Thanks for any help you can provide!

1 Solution

Accepted Solutions
Not applicable
Author

Hi!

Try that expression :


=enddate - if(startdate > From, From, startdate)


i try :


=day(if(startdate > From, From, startdate)) - x


my data:


LOAD * INLINE [
name, startdate, From, x
john, "2010-10-10", "2010-10-06", 3
mad, "2010-10-10", "2010-10-12", 4
tad, "2010-10-10", "2010-10-02", 5
];


it work in simple bar chart with dimension =if(startdate > From, From, startdate)

View solution in original post

5 Replies
Not applicable
Author

Hi, can you write what you need, simple example? I have some problems with it, maybe i can help you...

Not applicable
Author

i made the following dimension:

=if(startdate > From, From, startdate))

I want the following expression:

=enddate-startdate

startdate should be the above dimension.

Not applicable
Author

Hi!

Try that expression :


=enddate - if(startdate > From, From, startdate)


i try :


=day(if(startdate > From, From, startdate)) - x


my data:


LOAD * INLINE [
name, startdate, From, x
john, "2010-10-10", "2010-10-06", 3
mad, "2010-10-10", "2010-10-12", 4
tad, "2010-10-10", "2010-10-02", 5
];


it work in simple bar chart with dimension =if(startdate > From, From, startdate)

Not applicable
Author

Thank you for the answer solved my problem

Not applicable
Author

glad to help, im beginner in QV, like you, it's hard to understand this strange product without any book,

unfortunately, help and manual don't answer on all question.