Forum Discussion
C4L84
Advocate II
4 years agoLine graph with blank values for future months
Hi community, I'm having some trouble with a line graph showing blank values: As you can see the financial year runs from March to February. In this instance there were no sales in Febr...
- 4 years ago
Hi amitchandak, thanks for your reply.
It didn't work because it is using the max date from the calendar rather than the last day of the previous month.
I used SQL & power query to define this and then used your measure and it worked.
For anyone else that is having this problem, here's the pbix with the solution.
amitchandak
Super User
4 years agoC4L84 , Try to control like
0 between range
Measure = var _1= SUM(Opportunity[Opportunity count]) +0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))