Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am attempting to create a new column in my table by using an IF statement using fields from both the table being added to and a related table. The two tables are joined with a one-many relationship from 'Claims' to 'Material Numbers with claims'. It is giving me a Token Literal Expected from within Custom Column, where the error is in the apostrophes around the table name. How do I write this best to execute the new column?
=IF
([Created on]>09/30/2018,[Claim Item Amt]/(1+RELATED('Material Numbers with claims'[February Price Increase]+'Material Numbers with claims'[March Price Increase]+'Material Numbers with claims'[May Price Increase]+'Material Numbers with claims'[August Price Increase]),
IF
([Created on]>06/30/2018,[Claim Item Amt]/(1+RELATED('Material Numbers with claims'[February Price Increase]+'Material Numbers with claims'[March Price Increase]+'Material Numbers with claims'[May Price Increase]),
IF
([Created on]>04/30/2018,[Claim Item Amt]/(1+RELATED('Material Numbers with claims'[February Price Increase]+'Material Numbers with claims'[March Price Increase),
IF
([Created on]>03/31/2018,[Claim Item Amt]/(1+RELATED('Material Numbers with claims'[February Price Increase]),
[Claim Item Amt])
a Few things a wron with your formula
1. you cannot provide muliple columns in one related function
(1+RELATED('Material Numbers with claims'[February Price Increase]+'Material Numbers with claims'[March Price Increase]+'Material Numbers with claims'[May Price Increase]+'Material Numbers with claims'[August Price Increase])
you need to wrap each colunm in a related function
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |