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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Straight table showing incorrect values


Hi,

I need to show sum(salary) for each employee based on dates in straight table.. I used employee in dimension and in expression I used Sum(Salary).

It's showing incorrect values.

Could anyone help me how to write the correct expression to get values.

Thanks.

8 Replies
jchoucq
Partner - Creator III
Partner - Creator III

Hi,

the expression you wrote seems ok.

Maybe, in you source, you have many data for the same employee on differents months.

Do you have a Year or a month field in your data model ?

johann

srchilukoori
Specialist
Specialist

Are you trying to calculate the salary based on both employee and date? if so you need to add both date & employee to the dimensions.

mdmukramali
Specialist III
Specialist III

Dear ,

can you share the sample apps.

Thanks,

Mukram.

Not applicable
Author

Thanks and can I know how to write expression in dimension to get last month amount

Clever_Anjos
Employee
Employee

If you need to show "based on dates " shouldn´t you add "Date" as a dimension?

Not applicable
Author

Hi,

I need to show last month salary ,current month salary and To date salary. Is it possible to get these figures?

Thanks.

Clever_Anjos
Employee
Employee

Yes, its possible, just playing around with Set Analysis

CurrentMonth = sum({<yourdatefield={">$(=monthstart(today())"}>}Salary) and so on...

Not applicable
Author

Thanks and with the same values when I am trying to create chart, and when I am selecting fiscalyear 2013-2014 it is showing negative(minus) values on Y-axis. can you let me know do I need to change anything in axes?