Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Validate 2 columns with same data in different order as equal

I have data with street intersections entered in different fields - Street and Cross Street.  I am combining the 2 values in the Intersection1 column using CONCATENATE.  See data screenshot



I need a way to say values with the same street names but in different order are the same.  For example Main and Hastings is the same intersection as Hastings and Main.  Is there an easy way to do this?


This works exactly as required, thank you!

View solution in original post

Solution Sage
Solution Sage

Hey @amulder , one approach might be to just sort the two streets in a predictable fashion (alphabetically) on each entry, so that even if the streets are reversed they are still sorted into a consistent order.

Here's an example of what I mean:



Intersection = 
Var _FirstStreet = MIN(Intersections[Street], Intersections[Cross Street])
VAR _SecondStreet = MAX(Intersections[Street], Intersections[Cross Street])

_FirstStreet & " " & _SecondStreet

This works exactly as required, thank you!

View solution in original post

Helpful resources

2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors