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: 
Dennis_Aguilar
Contributor
Contributor

Use calculated Dimension in the same LOAD

I am new in QlikView. Yet I have experience in R using the tidyverse library.

I have this code

temp_B:

LOAD

     dimension_1,

     dimension_2,

     dimension_1 + dimension_2 as dimension_3,

     dimension _1 * dimension_3

RESIDENT temp_A;

 

The problem arises when I try to use dimension_3  to multiply dimension_1. 

I have seen other codes where people usually do this:

      dimension _1 *(dimension _1  + dimension _2)

However, when calculations are too big I would rather use my way.

 

How do I achieve this?

 

Labels (2)
1 Solution

Accepted Solutions
sunny_talwar

Do it in a preceding load

temp_B:
LOAD *,
     dimension _1 * dimension_3;
LOAD
     dimension_1,
     dimension_2,
     dimension_1 + dimension_2 as dimension_3
RESIDENT temp_A;

View solution in original post

3 Replies
sunny_talwar

Do it in a preceding load

temp_B:
LOAD *,
     dimension _1 * dimension_3;
LOAD
     dimension_1,
     dimension_2,
     dimension_1 + dimension_2 as dimension_3
RESIDENT temp_A;
Dennis_Aguilar
Contributor
Contributor
Author

THANK YOU!

Shubham_Deshmukh
Specialist
Specialist

Mark it as a correct ans please