- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Calculating previous quarter Actual data based on the year and month slicer selection
I implemented this for current month calculation
CQ value =
CALCULATE(SUM('CRAFData'[Actual]),FILTER(ALL('Date_Com'),'Date_Com'[QuarterNo]=ROUNDUP(SELECTEDVALUE('Date_Com'[MonthNo])/3,0))) ,
and it worked fine .
However same i would like to implement for previous month , can anyone let me know how to use DAX formula for the same . Currently i am using ,
PQ value = CALCULATE(SUM('CRAFData'[Actual]),FILTER(ALL('Date_Com'),'Date_Com'[QuarterNo]=ROUNDUP(SELECTEDVALUE('Date_Com'[MonthNo])/3,0)-1)) This is not working correctly for first three months(quarter 1) selected for the current year.
I was even trying some if conditions , but seems it is also having error in concadination.
Any leads will help .
Solved! Go to Solution.