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.
I am going insane. I am trying to copy over a working calculation from one report to another, using the same data. And I cannot get the formula to work. I am creating a custom column and getting an error that says a parenthesis is expected in the middle of my string of text, please help me! See the formula in the attachment and the red squigly underline indicating the ridiculous spot I'm supposed to put ')'
Solved! Go to Solution.
That is a DAX formula that you are trying to use in the Query Editor, which uses the M language. In the report view, go to the Data pane, right click on the table you wish to add that calculation, and select "New column". Hopefully that will work for you.
Thank you it worked perfectly that way.
pls try this
if [Impact Date] > Date.From( DateTime.LocalNow()) +60 then "ID > 60 Days"
else if [Impact Date] > Date.From( DateTime.LocalNow()) then "lD < 60 Days"
else if [lmpact Date] = "" then "No Date Provided" else if[Impact Date] <= Date.From( DateTime.LocalNow()) then
"Expired" else null
what you write is the syntax DAX,
and you need a code in M language
That is a DAX formula that you are trying to use in the Query Editor, which uses the M language. In the report view, go to the Data pane, right click on the table you wish to add that calculation, and select "New column". Hopefully that will work for you.