This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
I have a matrix and line graph below with the same measures.
In the matrix, I have months from date table going across and going down are the measures for each year.
In the line graph, I want to have it connected for all months and if there is no data then to connect on the zero. The measure calc is just time intelligence:
Solved! Go to Solution.
Hi @loafers ,
According to your requirement description, you want to implement 0 for months with no value in the past and blanks for months with no value in the future, right?
If this is the case, you can try modifying this measure to achieve your needs like this:
Measure=
IF(Max('Date'[Date])<eomonth(today,-1)+1,
CALCULATE([Revenue],DATESMTD(DATEADD('Date'[Date],0,MONTH)))+0,blank())
Thank you for your time, if there is a data display problem, you can provide the following .pbix file or data that does not contain sensitive data.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @loafers ,
According to your requirement description, you want to implement 0 for months with no value in the past and blanks for months with no value in the future, right?
If this is the case, you can try modifying this measure to achieve your needs like this:
Measure=
IF(Max('Date'[Date])<eomonth(today,-1)+1,
CALCULATE([Revenue],DATESMTD(DATEADD('Date'[Date],0,MONTH)))+0,blank())
Thank you for your time, if there is a data display problem, you can provide the following .pbix file or data that does not contain sensitive data.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@loafers , Try like
0 between range
Measure = var _1= CALCULATE([Revenue],DATESMTD( 'Calendar'[Date]) ) +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))
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 26 | |
| 22 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 42 | |
| 42 | |
| 41 | |
| 21 | |
| 20 |