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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
samuel_brierley
Creator
Creator

sum(if( statement

hi,

cany anyone see an issue with the below formula?

sum(if([Speed(Lane 1)]<= vSpeed_Limiter ,only({$< Speed = {'$(#vSpeed_Limiter)'}>} [Averaged Emissions])* [Flow(Lane 1)]))

all of the individual components work the problem seems to be with the only section however standalone that works too.

thanks

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Can you try this:

Sum({$< Speed = {'$(#vSpeed_Limiter)'}>} If([Speed(Lane 1)] <= vSpeed_Limiter, [Averaged Emissions] * [Flow(Lane 1)]))

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Can you try this:

Sum({$< Speed = {'$(#vSpeed_Limiter)'}>} If([Speed(Lane 1)] <= vSpeed_Limiter, [Averaged Emissions] * [Flow(Lane 1)]))

tresB
Champion III
Champion III

This?

sum({<[Speed(Lane 1)]={'<= $(vSpeed_Limiter)'} , Speed = {'$(#vSpeed_Limiter)'}>} [Averaged Emissions])* [Flow(Lane 1)])