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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Spurgeon74
Frequent Visitor

Linear

Hello!

I have a single measurement signal that sends readings at irregular intervals. How can I prevent Power BI from interpolating the data in the visual and connecting two points over extended periods, as shown in the attachment? Additional question: How do I display multiple irregular signals in an xy-chart without interpolation lines for missing values?
 
Interpolation.png
1 ACCEPTED SOLUTION
zenisekd
Super User
Super User

Hi,

In Microsoft Power BI, a line chart always connects the available points unless you explicitly introduce blank values or segment the series.

 

One option  would be to use categorical, instead of continuous x-axis type.

Second option is to create a measure that breaks the line when the time gap is too large. The trick is returning BLANK() when the gap exceeds a threshold.

 

Value_NoInterpolation =
VAR CurrentTime = MAX(Data[Timestamp])
VAR PrevTime =
CALCULATE(
MAX(Data[Timestamp]),
FILTER(
ALL(Data),
Data[Timestamp] < CurrentTime
)
)

VAR GapMinutes =
DATEDIFF(PrevTime, CurrentTime, MINUTE)

RETURN
IF(
GapMinutes > 60, -- threshold you choose
BLANK(),
MAX(Data[Value])
)

 

View solution in original post

3 REPLIES 3
v-saisrao-msft
Community Support
Community Support

HI @Spurgeon74,

Checking in to see if your issue has been resolved. let us know if you still need any assistance.

 

Thank you.

v-saisrao-msft
Community Support
Community Support

Hi @Spurgeon74.,

Have you had a chance to review the solution we shared by @zenisekd? If the issue persists, feel free to reply so we can help further.

 

Thank you.

zenisekd
Super User
Super User

Hi,

In Microsoft Power BI, a line chart always connects the available points unless you explicitly introduce blank values or segment the series.

 

One option  would be to use categorical, instead of continuous x-axis type.

Second option is to create a measure that breaks the line when the time gap is too large. The trick is returning BLANK() when the gap exceeds a threshold.

 

Value_NoInterpolation =
VAR CurrentTime = MAX(Data[Timestamp])
VAR PrevTime =
CALCULATE(
MAX(Data[Timestamp]),
FILTER(
ALL(Data),
Data[Timestamp] < CurrentTime
)
)

VAR GapMinutes =
DATEDIFF(PrevTime, CurrentTime, MINUTE)

RETURN
IF(
GapMinutes > 60, -- threshold you choose
BLANK(),
MAX(Data[Value])
)

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.