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
MAX_Price =
MAXX({
max('XL-Hargrove_MpciPremLine_Data'[ PriceElectionAmount]),
MAX(PriceKeys[ HarvestPrice])
},
[Value]
)
and this,
MAX_Price_De =
VAR ValueTable =
UNION(
ROW("Value", SUM('XL-Hargrove_MpciPremLine_Data'[ PriceElectionAmount])),
ROW("Value", SUM(PriceKeys[ HarvestPrice]))
)
RETURN
MAXX(
ValueTable,
[Value]
)
Error,
My table looks like,
My table looks like
Thank you so much
Hi @Anonymous ,
Your formulas looks fine and the error message means you don't have enough memory.
How much RAM do you have and how big is your dataset?
Best Regards,
Jay
@Anonymous
Your Measure should work, what was the error that you faced?
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
It just keeps spinning and give me Memory out error.
@Anonymous
I think you need the max of max from both the fields:
MAX_Price =
MAX(
MAX('XL-Hargrove_MpciPremLine_Data'[ PriceElectionAmount]),
MAX(PriceKeys[ HarvestPrice])
)
If you need to iterate for some reason then try:
MAX_Price =
MAXX(
UNION(
DISTINCT('XL-Hargrove_MpciPremLine_Data'[ PriceElectionAmount]),
DISTINCT(PriceKeys[ HarvestPrice])
),
[ PriceElectionAmount]
)________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Fowmy surprisingly, your first formula works. Can you please tell me why my one did not load? I used MAXX. Thank you so much for the hlep.
Hi,
Does this measure work?
=if(SUM('XL-Hargrove_MpciPremLine_Data'[ PriceElectionAmount])>SUM(PriceKeys[ HarvestPrice]),SUM('XL-Hargrove_MpciPremLine_Data'[ PriceElectionAmount]),SUM(PriceKeys[ HarvestPrice]))
@Ashish_Mathur I tried your one. It is something, just keep spinning. Thank you so much your help and time.
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!