Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
kunkumnaveen
Specialist
Specialist

How to get range

Hello All,

              Kindly suggest me what i am missing from the below expression,i am getting output as zero

sum({<BVALIDFROM={"<$(=YearStart(Today(),0,4))"},BVALIDTO={">$(=YearStart(Today(),0,4))"}>}BPrice)


when i tried in two different expressions  it is working

Expression1:   sum({<BVALIDFROM={"<$(=YearStart(Today(),0,4))"}>}BPrice)

Expression2:   sum({<BVALIDTO={">(=YearStart(Today(),0,4))"}>}BPrice)



when i merge both the expression i am getting zero as output.




Capture.PNG

Thanks

5 Replies
prma7799
Master III
Master III

Try like this

sum({<BVALIDFROM={"<$(=YearStart(Today(),0,4))"}>}BPrice)

+

sum({<BVALIDTO={">(=YearStart(Today(),0,4))"}>}BPrice)

tresesco
MVP
MVP

Could you share your sample app?

Not applicable

Kindly share the dummy data, so that can get back to you with correct set analysis.

pradosh_thakur
Master II
Master II

try

sum({<BVALIDFROM={"<$(=YearStart(Today(),0,4))"}>} * {<BVALIDTO={">$(=YearStart(Today(),0,4))"}>}BPrice)


regards

Pradosh

Learning never stops.
Frank_Hartmann
Master II
Master II

Can you share a sample?