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
Guneet_B21
Helper II
Helper II

Comparing multiple Organizations with Base Organization

Hi Everyone,

i have a dataset with org codes and routes (please find a sample below),

i want to fix 'A' as my base client and i want to compare the base routes to the routes of all other clients;

then further show the differences in a table against each organizations 

 

Sample:

RouteOrg Code
Bangladesh-Chattogram-Durban-Durban-Port Elizabeth-StandardB
Belgium-Antwerpen-Direct-Durban-Durban-StandardA
Belgium-Antwerpen-Direct-Durban-Durban-StandardB
Belgium-Antwerpen-Direct-Port Elizabeth-Port Elizabeth-StandardA
Belgium-Antwerpen-Direct-Port Elizabeth-Port Elizabeth-StandardC
Belgium-Antwerpen-Direct-Port Elizabeth-Port Elizabeth-StandardB
Belgium-Antwerpen-Durban-Durban-Johannesburg-StandardA
Belgium-Antwerpen-Durban-Durban-Johannesburg-StandardC
Belgium-Antwerpen-Durban-Durban-Johannesburg-StandardB
Belgium-Antwerpen-Port Elizabeth-Port Elizabeth-Cape Town-ExpressA
Belgium-Antwerpen-Port Elizabeth-Port Elizabeth-Cape Town-ExpressC
Belgium-Antwerpen-Port Elizabeth-Port Elizabeth-Cape Town-ExpressB
Belgium-Antwerpen-Port Elizabeth-Port Elizabeth-Cape Town-StandardA
Belgium-Antwerpen-Port Elizabeth-Port Elizabeth-Cape Town-StandardC
Belgium-Antwerpen-Port Elizabeth-Port Elizabeth-Cape Town-StandardB
Belgium-Antwerpen-Port Elizabeth-Port Elizabeth-Durban-ExpressA
Belgium-Antwerpen-Port Elizabeth-Port Elizabeth-Durban-ExpressB
Belgium-Antwerpen-Port Elizabeth-Port Elizabeth-Johannesburg-ExpressA
Belgium-Antwerpen-Port Elizabeth-Port Elizabeth-Johannesburg-ExpressC
Belgium-Antwerpen-Port Elizabeth-Port Elizabeth-Johannesburg-ExpressB
Belgium-Antwerpen-Richards Bay-Richards Bay-Durban-ExpressC
Brazil-Itajai-Durban-Durban-Cape Town-StandardB

 

Eg:-

when i compare A with B
i should see the following

Bangladesh-Chattogram-Durban-Durban-Port Elizabeth-StandardB
Brazil-Itajai-Durban-Durban-Cape Town-StandardB
1 ACCEPTED SOLUTION

@Guneet_B21 

pls see if this is what you want. you can select differnt org code to see different result

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

9 REPLIES 9
ryan_mayu
Super User
Super User

@Guneet_B21 

you can try this to get the result

 

Table 2 =
VAR _compare1="A"
VAR _compare2="B"
return ADDCOLUMNS(EXCEPT(SELECTCOLUMNS(FILTER('Table','Table'[Org Code]=_compare2),"Route",'Table'[Route]),SELECTCOLUMNS(FILTER('Table','Table'[Org Code]=_compare1),"Route",'Table'[Route])),"org code",_compare2)
 
11.PNG
 
pls see the attachment below




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks @ryan_mayu ,
but can you tell me how do i compare all the other routes simultaneuosly, not just 1

 

@Guneet_B21 

pls see if this is what you want. you can select differnt org code to see different result

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks @ryan_mayu ,

works perfectly

 

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @ryan_mayu ,

I was wondering if there would be a way by which i dont have to select the CompB,
need to show the comparison of all the other organization against base client
and need to show that list in a table

what's the expected output based on the sample data we have?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




If we take A as base client,

this should be our desired result:

 

Bangladesh-Chattogram-Durban-Durban-Port Elizabeth-StandardBExtra
Brazil-Itajai-Durban-Durban-Cape Town-StandardBExtra
Belgium-Antwerpen-Direct-Durban-Durban-StandardCMissing
Belgium-Antwerpen-Port Elizabeth-Port Elizabeth-Durban-ExpressCMissing
Belgium-Antwerpen-Richards Bay-Richards Bay-Durban-ExpressCExtra

 

Missing means the data in A not in but in other org,
Extra means data not in A but still in other org

I think we can do that for extra, but I don't know how to do that for missing. 

It's becuase it will automatically create new data.

e.g we have org code, a-z, we only have one route for a, then the output will be 25 rows for b-z and mark as missing.

Let's see if anyone else have better solution for this





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.