Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to create a set analysis for calculating average

I need to create a set analysis expression for :

Avg( field_value when max of selected date , field_value when max of selected date) . How is this possible?


Basically I have a table with counts for a yearmonth date. So foa a selection made I need to do an average of the count between the max and min selected date.

2 Replies
ychaitanya
Creator III
Creator III

Hi Anitha

You could try as follows:

Create two variables for the mindate and maxdate as vmindate and vmaxdate

Avg({<Date={">$(=$(vmindate) )<= $(=$(vmaxdate))"}>}Sales)

Please try and mark the response as per the result.

Thanks

Digvijay_Singh

May be something like this -

Avg({<Date={">=$(vminDate)<=$(maxDate)"}>}field_value)