Hi,
In this workbook (http://1drv.ms/1ed7ieF). I have a simple "Revenue" measure which I have computed as:
=SUM(sales_data[Total Price])
I also have a measure titled as "Revenue in previous month" which is computed as:
=CALCULATE([Revenue],PREVIOUSMONTH(calendar[Date]))
Now I also have two slicers - one in which the user can select Day of week and another in which he/she can select Portion of Month i.e. First half of month or second half of month.
Without any slicer selections, both measure work perfect. But if I select Monday in the slicer (to compare the revenue on Mondays of each month i.e. Revenue on all Mondays in April v/s Revenue on all Mondays in March), then the figures for "Revenue in previous month" still show Revenue for the entire previous month thereby obscuring the analysis. The same problem happens when I select something in the Portion of the month slicer as well. Figures for the Revenue measure appear correct no matter what selection I make in the slicer.
I think the PREVIOUSMONTH() function is not reading the slicer selections at all.
Please help me to modify the formula for the measure "Revenue in previous month" such that slicer selections are also considered.
Thank you.