I’ve worked out the Previous Month Avg Freight/lb utilizing DateAdd -1 Month and it works fine when placed in the context of a month.
However I’m showing Sales Transaction Detail that is at a Day level. I’m trying to accomplish the following, for a sales transaction that happens on 5/17/22 which has no actual freight/lb value (I have a calculated column that checks, (“Has Freight”/“No Freight”) I want to return the average freight/lb from April 2022 and use that value. In other words, if a Transaction has “No Freight”, use the prior month average.
I understand, I was hoping for some guidance without and maybe this will help simplify it. In a table visual, if my row context is Dates, I need to modify the filter context so that I can display the prior month average. Example, if row context is 2/15/2022, I need the average for January 2022. Trying to compare current actual results by date vs the prior month average.
Hi @sscott, thanks for starting this discussion and for sharing your solution. If this query has been solved kindly close the thread by ticking the Solution box.