Forum Discussion
Measure does not display value in card visualisation
Hi there,
I have a measure that calculates the cumulative sum until the end of last month. The measure looks like as follow:
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.
4 Replies
- amitchandakSuper User
Dunner2020 , Formula seem correct , try this one
cumulative sum =
var lastmonth =EOMONTH(TODAY(),-1)
Return
sumx(FILTER(ALL('Outages'),'Outages '[Actual Interruption Start Date Time]<=MAX('Outages '[Actual Interruption Start Date Time]) && 'Outages '[Actual Interruption Start Date Time ] <=lastmonth),
[sum_measure])- Dunner2020Post Prodigy
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.
- amitchandakSuper User
Dunner2020 , As you have not selected any date on page that is why is showing null on card . Because your formula does not go beyond current month.
Your formula is correct. You need to have filter to see data on card