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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
bvdm1980
Helper II
Helper II

How to get a solid line chart when data is missing

Hi

 

We have multiple projects for which we have to fill in a monthly forecast result. Some projects miss some months with data. 

When i use a line chart for each project individually, it shows a nice line, as it only reflects the months with data in it. But ofcourse when i use a line chart for my 5 projects combined, i get gaps in the lines. Shown in printscreen

bvdm1980_0-1681285451226.png

 

So what is the solution to fill those gaps and get a solid line if i have a combined chart? We dont have that data, its not gonna be filled backwards. 

Can that be solved with some dax work? 

thanks for the help again!

1 REPLY 1
Anonymous
Not applicable

HI @bvdm1980,

You can write a measure formula to replace original value field that you used on chart and add an if statement to check if current date does not have correspond values. Then you can write calculate formulas to look up the previous nonblank results to replace current blank result.

If you are confused about coding formula, can you please share some more detailed information and dummy data to help us clarify your scenario and test?

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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