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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Alopez11
Regular Visitor

Help with Dax Formula, T°

Hello, I'm Agustin Lopez working in the Avocado Industry.
I need a little help with a dax formula that is annoying me.

In Agriculture we use a concept called "Grados dias" in Spanish, it's how much heat or warm our plants receive daily.
In a fast resume its the average daily t°  minus a base t°, for avocado is 10°C.

I have the following data set

Alopez11_0-1662647384677.png

And i need to make the following,
The "Grados Dias" it's a daily number and I need to get the number for the hole month.

If the average T° is lower than 10, I can't have negatives "Grados Dias" so we put a 0 on that number (see red color in table)

Alopez11_1-1662647398144.png 

Alopez11_2-1662647458797.png
Very apreciate for the help
Thanks!

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Alopez11 

How did you get the average value ? Can you provide your sample data and the formula of the average value ? 

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

tamerj1
Super User
Super User

Hi @Alopez11 

please try

Grados Dias =
SUMX ( Data, VAR Diff = Data[T] - 10 RETURN IF ( Diff > 0, Diff ) )

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.