Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I'm currently trying to calculate a value based relatively on two measures:
PerformanceWeekCommencing
TransactionDate
I am unable to work out the expression that returns the sum(SoldValue) for the PerformanceWeekCommencing for transactions sold within that same week. I'm imagining something like this, which of course doesn't work:
Money(max(aggr(
sum({<TransactionDate= {'>=$WeekStart(PerformanceWeekCommencing)'}>}SoldValue),PerformanceWeekCommencing)))
Can anyone help, please?
Thank you in advance.
Try this
sum({$<TransactionDate = {">=$(=WeekStart(PerformanceWeekCommencing))<=$(=WeekEnd(PerformanceWeekCommencing))"}>} SoldValue)
@cgT why you have used max over sum?
So I can find the largest value derived from the sum calculation.
Thanks for this, but it returns only a '0'.
@cgT could you prepare sample data in excel to explain the scenario?