The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have a column with numbers both negative and positive. Now i want to add a column that states 'negative' whenever a number is below 0 and 'positive' whenever its above. My formula is if([Transactiebedrag]=<0) then ([Transactiebedrag]= "negative") else ([Transactiebedrag]= "positive") . I keep getting an error where its expecting a token literal. Can anyone help me optimise the formula?
Try
if [Transactiebedrag] <= 0 then "negative" else "positive"
--Nate