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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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