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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors