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

Announcements
Discover how organizations are unlocking new revenue streams: Watch 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

1 Solution

Accepted Solutions
sunny_talwar

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

Can you try this:

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

tresesco
MVP
MVP

This?

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