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: 
Not applicable

Something wrong with the Expression

Hi All:

Not sure where I went wrong with the Expression in the MTD variance

The Expression is as follow:-

Sum (if(Year= year(CurrentDate) and Month1 = month(CurrentDate)
and (transdate)<= CurrentDate,[Day Variance]

My problem is on the Day Variance as the above expression...

The Day Varaince = Crate To - Crate From

Day Variance is in the Expression (Colum 3) and MYD Variance (Colum4)

After the calculation in the expression (Crate TO – Crate From) I should be able to use the field right?

Hmmm... something is wrong

Could someone please share some light?

4 Replies
perumal_41
Partner - Specialist II
Partner - Specialist II

Sum (if(Year= year(CurrentDate) and Month1 = month(CurrentDate)

and (transdate)<= CurrentDate,[Day Variance]))

Not applicable
Author

Hi Perumal A:

Thanks for your help but the issue is on the Day Variance...

Not about the )))...

When [Day Variance] is key in there is an Error on top the expression:- Bad Field name : [Day Variance]

Not sure what went wrong....

perumal_41
Partner - Specialist II
Partner - Specialist II

please upload ur file.

Not applicable
Author

Hi Perumal A and All:

I just up load the file...

The issue is in the MTD variance.

Where I use the Day Variance for my MTD variance.

Can take a look at the Expression in MTD variance.

Thanks all