Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Custom Column error

What am I doing wrong in this case?

 

TOKEN ERROR.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

The issue is because one of the columns type was ABC123, after it was changed to text the formula worked. 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

The issue is because one of the columns type was ABC123, after it was changed to text the formula worked. 

smpa01
Community Champion
Community Champion

if [x] = "yes" and if [y]="yes" then 1 else 0

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
Anonymous
Not applicable

It still doesn't work, even if I use 1 and 0TOKEN ERROR 2.PNG

smpa01
Community Champion
Community Champion

Sorry my bad. gave you wrong solution initially. Apologies.

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.