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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
fabero
Regular Visitor

Prevent PowerBI from ignoring values within 1 second

Instead of slopes between datapoints in a graph, I would like to visualize only horizontal and vertical straight lines. To achieve this, I used a lag function to add a fake datapoint one second in time before every real datapoint, with the value of the real datapoint that came at the last datapoint before it. By doing this, the idea is that every slope is contained within 1 second, making it invisible on a plot for multiple weeks.

 

The problem I encountered is that when visualising this data, it seams that PowerBI randomly ignores some of the fake datapoints when the time window is increased. The result of this behaviour is that there are slopes visible.

 

Example:

real data x: [10s, 20s, 35s, 60s]

real data y: [0,2,4,2]

 

new data x: [9s, 10s, 19s, 20s, 34s, 35s, 59s, 60s]

new data y: [0,0, 0, 2, 2, 4, 4, 2] (I just copied the first datapoint to create its fake predecessor to maintain equal column lengths)

 

To make it a bit more clear, this is what I want to happen:

 

fabero_0-1658846750591.png

And you would expect the fake data added with the lag function would achieve this, but this is not the case. PowerBI could for example ignore the value at x=34s, resulting in a sloped line between x=20s and x=35s.

 

I know the 'stepped' option allows only straight lines, but this does not solve the issue: using stepped in this case would make it seem like the value increases right in between x=20s and x=35s, while the increase should be visualised where it actually happens: at x=35s.

 

Is there anyone that could help me solve this issue? 

1 ACCEPTED SOLUTION
fabero
Regular Visitor

For anyone with the same issue stumbling across this post: the problem in this case turned out to be PowerBI's high-density sampling: https://docs.microsoft.com/nl-nl/power-bi/create-reports/desktop-high-density-sampling Follow the instructions on this page to disable it and enable more precise data representation.

View solution in original post

1 REPLY 1
fabero
Regular Visitor

For anyone with the same issue stumbling across this post: the problem in this case turned out to be PowerBI's high-density sampling: https://docs.microsoft.com/nl-nl/power-bi/create-reports/desktop-high-density-sampling Follow the instructions on this page to disable it and enable more precise data representation.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors