Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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

1 Solution

Accepted Solutions
sunny_talwar

Try this:

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

View solution in original post

2 Replies
sunny_talwar

Try this:

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

yvonne-c
Creator
Creator
Author

Thanks Sunny, that works perfectly