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