The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I'm currently facing an error which states
"Expression.Error: We cannot apply field access to the type Function.
Details: Value=[Function] Key=P_Beneficiary_Name".
I'm using the below in custom column, when I write the below code I see no error, but when I save this and check in my table the column shows error and the error message is the above line that I've shared. Please
if ( Text.StartsWith [P_Beneficiary_Name] = "CLIX CAPITAL" and Text.Contains [Program_Type] = "Pre Approved" ) then ([Gross_LOAN_AMOUNT] - [P_Amount_Disbursed] ) else [Gross_LOAN_AMOUNT]
Thanks,
Ankit
Solved! Go to Solution.
It should be
if ( Text.StartsWith( [P_Beneficiary_Name] , "CLIX CAPITAL") and Text.Contains( [Program_Type] , "Pre Approved" )) then ([Gross_LOAN_AMOUNT] - [P_Amount_Disbursed] ) else [Gross_LOAN_AMOUNT])
Phil
If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.
Proud to be a Super User!
It should be
if ( Text.StartsWith( [P_Beneficiary_Name] , "CLIX CAPITAL") and Text.Contains( [Program_Type] , "Pre Approved" )) then ([Gross_LOAN_AMOUNT] - [P_Amount_Disbursed] ) else [Gross_LOAN_AMOUNT])
Phil
If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.