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
Anonymous
Not applicable

Best way to measure the spread of data per row? Max minus min

Hi, 

 

My goal is to create a method to determine when the y-axis spread (or range) of a data set increases. The x-axis is recorded in hours (so one row per hour). The exercise has been difficult because the data doesn't always increase, then decrease, then increase, then decrease etc - thus there could be multiple hours in a row which decrease. 

 

Thank you in advance!

Spread.PNG

3 REPLIES 3
Anonymous
Not applicable

Can you please share a sample table and fields if possible. make sure to remove any sensitive data or identifications first

Anonymous
Not applicable

@Anonymous 

 

You bet - I appreciate the quick response.

 

I've bounced a sample set of data. I've included three columns: well name, date, and oil production. I included data from two seperate wells that both have oil values on the same days (as I know we'll have to take this into account if we write code). 

 

Once we figure out how to quantify the spread, perhaps I should calculate a trailing average that can be compared against the most recent spread (which could be used as a flag to indicate when the spread of the oil data changes). 

 

Thanks again for your help!

 

Example Data

Anonymous
Not applicable

I'm bumping this topic back to the top to see if anyone knows how to solve this. 

 

 

Thanks! 

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.