Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi All,
Below is a sample of data in Power BI that records temperature every minute under 'Temprature'
Basically I want to measure how long it takes in minutes for the temp to go from it's highest value (96) to a temperature of 55 (or the closest below). I'm not interested in the time before the max temp.
I've tried a few things including creating a column that ranks the date/ time and filtering for numbers greater than that which represent the max temp but I've been getting a lot of circular dependency errors. Also, in the real data theres multiple 'Orders' but I guess I can use allexept to deal with that.
Any help is greatly appreciated
Thank you in advance!
Solved! Go to Solution.
Hi @v-henryk-mstf ,
Thank you for your help, I've managed to do it but for your question I want to base the time off the closest value >= 55. So if there were values of 55.1, 54.9, 54.7 then it would use the time relating to the value of 54.9 as long as it's on the latest side of the max temp.
Below is what I did and the resulting dates.
Item 101 = 51 mins, Item 102 = 53 mins
Thank you.
Hi @Anonymous ,
You can refer to a formula similar to the following:
M =
VAR min_ =
CALCULATE (
MINUTE ( MAX ( Sheet1[Date/Time] ) ),
FILTER (
ALL ( Sheet1 ),
ABS ( MAX ( Sheet1[Value] ) - 55 )
< ABS ( ( Sheet1[Value] ) - 55 )
&& MAX ( Sheet1[Item] ) = Sheet1[Item]
)
)
VAR max_ =
CALCULATE (
MINUTE ( MAX ( Sheet1[Date/Time] ) ),
FILTER (
ALL ( Sheet1 ),
ABS ( MAX ( Sheet1[Value] ) - 96 )
< ABS ( ( Sheet1[Value] ) - 96 )
&& MAX ( Sheet1[Item] ) = Sheet1[Item]
)
)
RETURN
MAX_ - min_
Also I am a little confused as to which time point to base on for having multiple identical time points close to 55. Looking forward to your feedback.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-henryk-mstf ,
Thank you for your help, I've managed to do it but for your question I want to base the time off the closest value >= 55. So if there were values of 55.1, 54.9, 54.7 then it would use the time relating to the value of 54.9 as long as it's on the latest side of the max temp.
Below is what I did and the resulting dates.
Item 101 = 51 mins, Item 102 = 53 mins
Thank you.
Hi @Anonymous ,
Thank you very much for your feedback and providing valuable reference responses.😊
Whether the problem has been solved, if the problem has been solved you can mark the reply for the standard answer. If not, please point it out.
Looking forward to your feedback.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |