Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression value should not change on adding new dimesnsion

Hi Team,

I have a situation, where if I add new dimension in tables, expression value should not change.

Like I am calculating Spend/Employee across 2 departments and in this case total spend has to be divided with total employees,

thus department in dimension should not affect my calculation of Count of Employee.

PFA the sample data.

Regards,

Navdeep

8 Replies
Gysbert_Wassenaar

Try count(total <Month> DISTINCT Name)


talk is cheap, supply exceeds demand
Clever_Anjos
Employee
Employee

count(Total <Month> DISTINCT Name) should handle your requirement

Anonymous
Not applicable
Author

You are talking about Selection of Department filter or addition of Department dim in table?

For Selection , we can by pass in SET.

if we are adding a dimension and expression value is not changing then what would be the advantage of adding?

Not applicable
Author

Hi Total <Month> is not solving the issue, I should be able to see all departments in table but all should have same value for same month in expression.

Not applicable
Author

Hi,

I am talking about adding new dimension Department in table, it's adding advantage is because I dont need headcount of department, I need overall headcount.

Not applicable
Author

Tried, not working. Could you please try it on attached qvw.

Anonymous
Not applicable
Author

will this work?

Clever_Anjos
Employee
Employee

Maybe I am not understanding your need.

It seems to work here

Capturar.PNG