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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
yvonne-c
Creator
Creator

Expression help

Hi

I have the following expression in a chart, which works fine

=round([Last calving]-[Date of birth])/30.4

I want to add the following selection to the expression but cant get it right

{<[Lact. no.]={1}>}

I have tried this:

=round({<[Lact. no.]={1}>}[Last calving]-[Date of birth])/30.4

Can anyone advise what I'm doing wrong?

Thanks

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this:

=Round(Only({<[Lact. no.]={1}>} [Last calving]-[Date of birth]))/30.4

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Try this:

=Round(Only({<[Lact. no.]={1}>} [Last calving]-[Date of birth]))/30.4

yvonne-c
Creator
Creator
Author

Thanks Sunny, that works perfectly