Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression without taking into account the current selections

Hello, i need help with expressions and selections

if i do a selection as show the image, need see only the projects associed a the selection, but the requeriment say, we need see the values historic (fourth column) the proyects. Then i put in the expression created with set analisys, the year and month static, independent at selection:  sum({<Cod={3}, Year=, Month= >}Total).

The problem is that appear projects, as proyecto 3 and proyecto 5, that are not related at selection and this create doubts.

what will can do for only see Proyecto 2 and Proyecto 4 in this case?

problem.png

Thanks you for help me!

Paulina

1 Solution

Accepted Solutions
sunny_talwar

May be try this

Sum({<Cod={3}, Year=, Month= >}Total) * Avg(1)


or


If(Column(1) > 0, Sum({<Cod={3}, Year=, Month= >}Total))

View solution in original post

3 Replies
adamdavi3s
Master
Master

Hi Paulina,

Your projects must be associated on the last column as qlikview should automatically suppress any rows where there is no data.

You'd need to change the last column to exclude them

sunny_talwar

May be try this

Sum({<Cod={3}, Year=, Month= >}Total) * Avg(1)


or


If(Column(1) > 0, Sum({<Cod={3}, Year=, Month= >}Total))

Not applicable
Author

Hi Sunny:

Perfect, this solved the problem

If(Column(1) > 0, Sum({<Cod={3}, Year=, Month= >}Total))

I was complicated but the solved was very easy

Thanks you!!