Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Text Box Expression to show last week Average - Error In Set Modifier

Hello,

I am experiencing an error in the set modifier for the following Text Element

=num(Avg({1<CC_Date={">=$(=Date(WeekStart(Max(CC_Date), 'M/D/YYYY'))<=$(=Date(WeekEnd(Max(CC_Date)), 'M/D/YYYY'))"}>} ([FCR % (=>80%)])), '#.##%')

My Date field is CC_Date

And I want to who the average for the week prior of the field [FCR % (=>80%)]

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Linsey,

Try this,

=num(Avg({1<CC_Date={">=$(=Date(WeekStart(Max(CC_Date)), 'M/D/YYYY'))<=$(=Date(WeekEnd(Max(CC_Date)), 'M/D/YYYY'))"}>} [FCR % (=>80%)]), '#.##%')

View solution in original post

2 Replies
tamilarasu
Champion
Champion

Linsey,

Try this,

=num(Avg({1<CC_Date={">=$(=Date(WeekStart(Max(CC_Date)), 'M/D/YYYY'))<=$(=Date(WeekEnd(Max(CC_Date)), 'M/D/YYYY'))"}>} [FCR % (=>80%)]), '#.##%')

Not applicable
Author

Thank you!