Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everybody!
I have two columns. A text column with different colors in it and a number column with values.
When i build the IF function there is the error message:
Can not use expressions that return the variant data type to define computed columns.
IF-Funtion:
= IF(table1[COLOR]="BLACK";table1[VALUE]*(-1);table1[COLOR])
I tried many different opportunities and i cant find the answer.
With kind regards
Jonas
Solved! Go to Solution.
Hi everybody!
I solved the problem on my own.
Instead of writing *(-1) in the IF function, write a new measure with "-1".
The new IF function than is:
= IF(table1[COLOR]="BLACK";table1[VALUE]*([Measure];table1[COLOR])
With kind regards
Jonas
Hi everybody!
I solved the problem on my own.
Instead of writing *(-1) in the IF function, write a new measure with "-1".
The new IF function than is:
= IF(table1[COLOR]="BLACK";table1[VALUE]*([Measure];table1[COLOR])
With kind regards
Jonas
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
95 | |
77 | |
65 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |