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
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
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.