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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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