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 community!
I am trying to build a measure to set a query for the prices [Cotacao] for the ID product [ID_FW]=21, [Validade]=1, in every segment[Prazo], for the last/max date [Data_Cotacao].
I am using this DAX formula:
Solved! Go to Solution.
@Anonymous
The file is given below for your reference.
https://drive.google.com/file/d/1iAkJAvLyQU_pvM-39RhX2yukjUbpLQZX/view?usp=sharing
I hope this helps or you can send the screenshot from data where the logic fails.
Regards
Kumail Raza
Hello @Anonymous
You can update the formula to
MAxDateUpdate =
CALCULATE(AVERAGE(data[Cotacao]), data[ID_FW]=21, data[Validade]=1, LASTDATE(data[Data_Cotacao]))
Let me know if this helps.
Regards
Kumail Raza
@Anonymous
Can you send screenshots of the error here.
Regards
Kumail Raza
the expression refers to multiple columns. multiple columns cannot be converted to a scalar value
@Anonymous
The file is given below for your reference.
https://drive.google.com/file/d/1iAkJAvLyQU_pvM-39RhX2yukjUbpLQZX/view?usp=sharing
I hope this helps or you can send the screenshot from data where the logic fails.
Regards
Kumail Raza
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!