Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to get rid of descending chart lines

Hi,

hopefully I'm able to explain, what I mean

Screenshot_1.png

If no period is chosen, is it possible to show only completed weeks (or in this case month) in charts to avoid these descending lines at the end which looks not very hopeful

Thanks in advance!

Oliver

11 Replies
hic
Former Employee
Former Employee

The by far simplest solution is to include a flag in your Master Calendar in the script:

If( Date < MonthStart(Today()), 1, 0 ) as IsCompletedMonth

and then use this in your Set Analysis expression:

Sum({$<IsCompletedMonth={1}>} Sales)


Just make sure that you don't show "empty" months.


HIC

rubenmarin

Maybe:

Sum({<CAL_Month={"<=$(=CAL_Month(AddMonths(today(),-1)))"}, POS_Belart_RGA={'RuG'}>}

RangeSum(POS_Gesamt_Umsatz_EUR, BEL_Umsatz_Nebenkosten_1_Netto, ...., BEL_Umsatz_Nebenkosten_5_Netto))

Better if you use the IsCompletedMonth flag as Henric says.