sumx(FILTER(ALL('Outages'),'Outages '[Actual Interruption Start Date Time]<=CurrentDate && 'Outages '[Actual Interruption Start Date Time ] <=lastmonth && Month(CurrentDate)<_CYMonth ),
The above-mentioned measure works fine when I use in the area chart as shown below:
However, if I use the same measure in the card visual, it shows blank:
I noticed that If I remove the colored text from the below measure then it works fine. However, the calculation is different as it starts considering the current month (after removing the colored text). Did someone encounter the same problem? Any help to fix the issue would be really appreciated.
cumulative sum =
var CurrentDate = MAX('Outages '[Actual Interruption Start Date Time])
@amitchandak Thanks for the response, I tried your suggested one. Following is the output for the new formula
As you can see it starts showing the value of the Current month (i.e. October) and next month (i.e. November). However, it started showing value on the card visual. As I mentioned in my actual post that this cumulative measure shows the cumulative sum until the end of last month. Don't want to show the current and next month.
According to its description, the measure shows the same value as September in October and November. I suggest you use the page filter to filter the months you want to display, and 10,11,12 months will disappear on the chart as well:
Qin Community Support _Robert Team
If this post helps,then consider Accepting it as the solution to help other members find it faster.