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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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