I'm having currency Table like below:
For Plant A exchange rates are .0123 for Jan , .0124 for Feb and so on...
Now if I select any one Month , then my result is working fine.
Suppose I select Multiple Months say Jan , Feb , Mar
Then Revenue should be multiply with Mar Exchange Rate, in case if I select Mar and Apr together then exchange rate should be from Apr.
So we have to take always the latest Month as per selection.
I'm not sure ,how this can be achieved , please help!
My expression is = Sum(Revenue)*Exchange_Rate
Solved! Go to Solution.
Hahahaha okay... use this expression
Sum([Net sales without tooling]) * FirstSortedValue(Exchange_Rate, -Sort_Month)
Ignored selection in Month field for the Sum expression... I didn't know how to check with your numbers after making selections. You should have been able to fix that.... Anyways see if this works
Sorry none of them are giving me correct Output.
Now u can see above I have selected Jan And Feb together so the required Net Sale output should be "10613.993125233" (Multiply with Feb Rate) , as I mentioned in requirement that it should take latest month out of selected Months and when I'm selecting just 1 Month Say Jan then Net Sale output should be Sum([Net Sales...]) * 1.063125 , which is Jan exchange rate
Similarly , when user has selected 3 Months - Jan , Feb , Mar ,in such case Sum([ Net Sales....]) should be multiply with March Exchange_Rate (Yellow Marked), as March is latest Month in compare to Jan and Feb
Hope this is clear!