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
snemilipuri
Helper I
Helper I

Line Chart Should be till End of X axis

Hi,

 

I want to show the line chart till end of the x-axis although no data for some periods at the end. Please see the screenshot below. 

In this case, the redline is having data till 45'20 (x-axis)... but for the future dates it should replicate the value of 45'20, so that the red line will be straight from 45'20 to till end. Please help.

 

snemilipuri_0-1626945098754.png

 

3 REPLIES 3
amitchandak
Super User
Super User

@snemilipuri , get the last date value, Assume you have a measure 

 

new measure  =

var _last =lastnonbalnkvalue( Table[Date], [measure])

return 

if(isblank([measure]),_last   ,[measure])

Hi @amitchandak,

 

It is still same. The logic which you have given will fill the blanks... but is not filling for the future dates. Please correct me if i am wrong. 

Hi @snemilipuri 

Could you share a sample with me by your Onedrive for Business? I need to know your data model. This will make it easier for me to understand your requirement.

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

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.