Forum Discussion
Anonymous
5 years agoNot applicable
How to Get Formula to Work
Hi - I have this formula for a column in PowerBI: =IF(LEFT(vBI_ClientBankAccounts[Bank Account CUSIP],2)= "CD", "CD", IF(LEFT(vBI_ClientBankAccounts[Bank Account CUSIP],3)= "TBS", "TBS", "AMMA")) ...
- 5 years ago
Hi !
Sorry, you need to remove, the enclosed single quotes from column name;=IF(LEFT('vBI_ClientBankAccounts'[Bank Account CUSIP],2)= "CD", "CD", IF(LEFT('vBI_ClientBankAccounts'[Bank Account CUSIP],3)= "TBS", "TBS", "AMMA"))Hopefully above DAX will work.
HashamNiaz
Solution Sage
5 years agoHi !
Please try using below DAX, enclosed table name in single quote;
=IF(LEFT('vBI_ClientBankAccounts'['Bank Account CUSIP'],2)= "CD", "CD", IF(LEFT('vBI_ClientBankAccounts'['Bank Account CUSIP'],3)= "TBS", "TBS", "AMMA"))
Regards,
Hasham
- Anonymous5 years agoNot applicable
Hi Hasham - thanks for getting back to me. I tried this:
=IF(LEFT('vBI_ClientBankAccounts'['Bank Account CUSIP'],2)= "CD", "CD", IF(LEFT('vBI_ClientBankAccounts'['Bank Account CUSIP'],3)= "TBS", "TBS", "AMMA"))Now I get this error with the red squiggly lines below the fields:- HashamNiaz5 years ago
Solution Sage
Hi !
Sorry, you need to remove, the enclosed single quotes from column name;=IF(LEFT('vBI_ClientBankAccounts'[Bank Account CUSIP],2)= "CD", "CD", IF(LEFT('vBI_ClientBankAccounts'[Bank Account CUSIP],3)= "TBS", "TBS", "AMMA"))Hopefully above DAX will work.
- Anonymous5 years agoNot applicable
Worked perfect, thank you so much!