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

Using Dimension value in expression

Hi,

I'm wondering if it's possible to use the dimension value to do a calculation.

Dimension value would be a monthname e.g.

Dimension | Expression
Jan | sum(if(mymonth='Dimension value'
Feb....

Or can I handle this with set analysis?

Thanks for your help.

Elzo

7 Replies
Not applicable
Author

Hi Elzo,

have a look and let me know if it answers your question.

Good luck!

Rainer

Not applicable
Author

Hello Rainer,

thanks for your help. Maybe I understand your sample not correct but what I'm trying to achieve is the this:

I have a table chart with an date (monthname as dimension).
My expression should be independent from this dimension but do a calculation based on dimension date in another date field.
I know this sound weird 😉

I have several expressions based on the "month" dimension and one expresison that counts a field only if "the other date field" is equal to
the dimension datefield.

Thanks.

Not applicable
Author

Elzo,

do you have a small example for me to work with?

Rainer

Not applicable
Author

Hi Rainer,

please see attached application. Thanks for your help.

Not applicable
Author

Hi Elzo,

see the attached example.

Rainer

Not applicable
Author

Hi Rainer,

thanks a lot for your answer. Do you know if it would be possible without a calender?

Not applicable
Author

Elzo,

at the moment no.

If there is another way i´m sure that you will have to code some if statements and if your amount of data grow you have to pay for it by a slower performance.

Other points are different aggregation levels (daily sales vs. budget by month) and your script will end up as i suggested in this example.

Have a nice time using QlikView!!!

Rainer