Forum Discussion
Formula issue: PowerBi Desktop New column vs PowerBi Desktop Power Query Editor new Custom Column
Hi,
I have a formula which I am able to apply as a new column in the PowerBi Desktop table itself but when I am trying to do the same in the Power Query Editor as a custom column, then I can't get it to work.
Can someone tell me what my error is?
Is there a logic error which I am considering?
Working formula within PowerBI "New column":
Attempted new formula within PowerBi Power Query Editor "Custom column": (NOT WORKING)
if([purchasePrice]=null,0,
if([purchasePrice]<2,(([purchasePriceTotal]+[#"Pick&Pack_Total"])*0.2))
if([purchasePrice]>=2 && [purchasePrice]<10,(([purchasePriceTotal]+[#"Pick&Pack_Total"])*0.2))
if([purchasePrice]>=10 && [purchasePrice]<50,(([purchasePriceTotal]+[#"Pick&Pack_Total"])*0.15))
if([purchasePrice]>=50,(([purchasePriceTotal]+[#"Pick&Pack_Total"])*0.1)))
3 Replies
- johnt75Super User
Try changing all instances of [#"Pick&Pack_Total"] with [Pick&Pack_Total]