Forum Discussion
PARALLELPERIOD Filter Problem
- 8 years ago
Hi,
It works just fine for me. Please see the image (notice that i have select Current month as yes in the the filter pane). These are the measures that i used
Current month = SUM(Data[Actual])
Previous month = CALCULATE([Current month],PREVIOUSMONTH('calendar'[Date]))
Thanks for the solution Ashish. Upon further inspection I noticed you have a select "Current Month" as a yes in your filters. Further, I noticed that your PREVIOUSMONTH function used just the 'calendar'[DATE] as the field and whereas mine was using 'calendar'[DATE].[Date]. Or in other words, I was using Power BI's built in date heirarchy in my formula, while my "Current Month" filter was for just the column in my data source. They weren't speaking to each other and I wasn't getting the results back. Once I fixed this, I was able to get the results that I needed with your simplified formula. :smileyhappy:
You are welcone.