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

firstsortvalue not allowing static chart

Hi, I have this expression in a chart:

sum( {<MONTH=,MonthNew=,WEEK=,WeekNew=} Aggr(FirstSortedValue (COMPLETED_AMOUNT,-Id),uniquetradeid,ORDER_ID))

I've tried to put in all the date fields as above to prevent date selections from changing the chart, but it's not working. This is only occurring with firstsortvalue. Thanks.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Add them in a set modifier for the firstsortedvalue function too.

sum( {<MONTH=,MonthNew=,WEEK=,WeekNew=>} Aggr(FirstSortedValue ({<MONTH=,MonthNew=,WEEK=,WeekNew=>}COMPLETED_AMOUNT,-Id),uniquetradeid,ORDER_ID))


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar

Add them in a set modifier for the firstsortedvalue function too.

sum( {<MONTH=,MonthNew=,WEEK=,WeekNew=>} Aggr(FirstSortedValue ({<MONTH=,MonthNew=,WEEK=,WeekNew=>}COMPLETED_AMOUNT,-Id),uniquetradeid,ORDER_ID))


talk is cheap, supply exceeds demand