Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Line chart extends to next month when next month value data is not present

Hi guys.

 

I am bit puzzled by a line chart extending out to next month when the next month value is not present.

 

The chart below shows Month-To-Date Actual (Bar) with Actual Cumulative (Line) in Jan 2020. There is not December and other prior month data so Jan only appears. What is interesting is that Feb appears in the Line Chart as if it is zero. In reality, Feb does not have any data just line Dec and prior months. 

Month to Date SS.JPG

 

The following measures are used:

 

MTD Actual = IF(sum('Fact Summary'[MTD Actuals])=0, BLANK(),sum('Fact Summary'[MTD Actuals]))

 

Actual Cumulative =
VAR ActualCumAdj =
CALCULATE(
SUM('Fact Summary'[YTD Actuals]),
FILTER(
ALLSELECTED('DimDate'[FIN_YR_MONTH]),
ISONORAFTER('DimDate'[FIN_YR_MONTH],
MAX('DimDate'[FIN_YR_MONTH]),
DESC)
)
)

RETURN

if( ActualCumAdj = 0, BLANK(), ActualCumAdj)
 
How can I stop showing the Feb for the chart? I am assuming that the Actual Cumilative (line chart) is causing this but it may be MTD Actual that is causing this.
 
Let me know your thoughts, Jedi masters.
 
Thanks.
 
3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hi @Anonymous 

I have test on my side, it works well.

Could you please share your sample pbix file for us have a test, there should be something wrong in other.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
kentyler
Solution Sage
Solution Sage

Have you checked to see which values are in FIN_YR_MONTH ?





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Anonymous
Not applicable

Yeah. It is just simple month and year.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.