Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Creating a table and calculation

Dear everyone

I have many different data that I fetched from different sources.

Now with the data, I want to make a table and to creat new column to calculate some of data next to column in the same table . For example, I have fetched working hours and wage for one hour. Now I want to create a new column that contains content which is working hours * wage for one hour. Can you tell me how I can do it? Which object should I use it?

Thank you in advance.

HJ

4 Replies
dsharmaqv
Creator III
Creator III

you can do it in two ways ...either at load script you perform the calculation simpally by multiplaying 2 fields

working hours * wage for one hour As New Column

Or you can do the same in expression tab using chart object etc

giakoum
Partner - Master II
Partner - Master II

This is a very basic question.

Create a chart of type straight table and add a new column with expression working hours * wage

If you do not know how to do it, please add a sample app and I will show you.

ruanhaese
Partner - Creator II
Partner - Creator II

You can either load the calculation in your Load statement (1) or

calculate it in the tables (2).

Eg

(1)

Load

   WorkingHours,

   Wage,

   WorkingHours * Wage As Payment

...

(2)

Open a new Chart -> straight table

Add under expressions

=WorkingHours * Wage

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Take a look to the attachment below.

This is a Table object with the data you're interested. You may also be interested in dimension Year_month:

Screenshot_1.jpg

There is a simple instruction that will guide you to the result:

Screenshot_2.jpg

Screenshot_3.jpg

Screenshot_4.jpg

Screenshot_5.jpg

Finish and the outcome should something like this:

Screenshot_6.jpg

I suggest you reading Chart types ‒ QlikView