March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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,
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |