Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am attempting to compare a customer's quantity sold by part for the previous 6 months versus the company. I have the date range code no problem. But I'm having trouble with the set analysis to force the 6 months. I am attempting to use a variable named v6MonthStart (inappropriately named) in the set analysis.
The variable is defined as this:
'>=' & date(monthStart(addmonths(Today(),-6))) & ' <=' & date(MonthEnd(addmonths(Today(),-1)))
which produces this as desired. >=9/1/2017 <=2/28/2018 (verified via text box).
My expression labeled Company 6 Months Average is:
=Sum({$<Date={$(v6MonthStart)}>} [Invoice Qty]) / 6
I'm getting no data.
Suggestions please?
Should work... not sure... can you share a sample?