Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
McCloudPT
Contributor II
Contributor II

SUM of a value within a max date range

Hello all

I'm currently struggling to get a final SUM value of a given max date, when we select a date range with Date Picker.

I have values per day that I want to show in a Map, but the sum adds the values from all days in the date range.

I need to show the sum of one day only. I can choose the max day of a range with: "Date(Max(Floor(DateDay), 1)) " but the final expression does not provide me the values I need.

Not working: =sum({<TvPlatform = {'VTV'},DateDay={'=$(Date(Max(Floor(DateDay),1)))'}>} Value)

 

 

Labels (1)
10 Replies
McCloudPT
Contributor II
Contributor II
Author

Since the set analysis was not cooperating, one of my colleagues found a weird but working solution:

 

=Sum({<TvPlatform = {'VTV'}>}Value * if(DateDay=RangeMin('$(=date(max(aggr(nodistinct max(DateDay), Distrito))))',Today()-1),1,0))

 

Every date but the max one is discarded by the * if expression!