Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jduenyas
Specialist
Specialist

Set Analysis: I learned this the hard way

All

II discovered a glitch that may cause your results to be erroneous;

The expression :

Sum({<YR=,Qtr=,MO=,DA=,TranDate={">=$(=MonthStart(today(),-12)) <=$(=AddMonths(today(),-12))"}>} Sales)

Will return correct results for Month To Date of Last year.

However if you try to make it "look" nicer and easier to read and insert a CRLF (Carriage Return Line Feed)  before the "<="  sign the results are completely different.

Sum({<YR=,Qtr=,MO=,DA=,TranDate={">=$(=MonthStart(today(),-12))

                                                                              <=$(=AddMonths(today(),-12))"}>} Sales)

So Be careful!

 

 

1 Reply
jerrysvensson
Partner - Specialist II
Partner - Specialist II

Can you supply an example?