Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
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)
Very apreciate for the help
Thanks!
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.
Hi @Alopez11
please try
Grados Dias =
SUMX ( Data, VAR Diff = Data[T] - 10 RETURN IF ( Diff > 0, Diff ) )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 10 |