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
New2PowerBI
Helper III
Helper III

Help with Text Comparison Formula

I have one table; with "VIN" numbers, one called Serial#(Audra List) and the other called VIN NUMBER (Maximo List). 

 

I added a new column with the following:

 

Comparison = if(VehicleComparison_ChristieDent[Serial# (Audra List)] = VehicleComparison_ChristieDent[VIN NUMBER (Maximo List)], 1, 0)

 

Everything came back "0" but I know there is at least one row where the values that did not match.  I don't understand why my formula isn't working.

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

My only guess would be some leading/trailing spaces that need to be trimmed out.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

My only guess would be some leading/trailing spaces that need to be trimmed out.

Disregard my last one; did a quick look up on trimming data and trimmed both columns, worked!!  Thanks!!

?  I've not dealt with that before; how can I trim the data?

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.

Top Solution Authors