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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone,
I'm trying to create a new column that will return the MAX value for an item in a particular Month & Year if the value is 0.
If the value is >0, it should return the same value.
In my case the value is the "Selling Price". Ideally, it should return the new column "Revised Selling Price for the Month".
Thank you all!
Solved! Go to Solution.
It works wonderfully thanks a lot!!
@Anonymous , Try a new column like
measure =
var _1 = maxx(filter(Table, [Month] =earlier([Month]) && [year] = earlier([year])), [selling price])
return
if([selling price] =0, _1, [selling price])
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 |
|---|---|
| 104 | |
| 82 | |
| 71 | |
| 50 | |
| 46 |