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
CharlotteCity12
Microsoft Employee
Microsoft Employee

Rows that match or do not match based on

I have the following data:

CharlotteCity12_0-1713371894909.png

 

I wish to know if per DB the Match field in every Srv.  e.g. 

CharlotteCity12_1-1713372159893.png

 

Stated another way.. the DB must have the same login across all servers (finding the server in the cluster that does not have all the logins as the other servers)

 

DBSrvDbdb_ownerdb_denydatawriterdb_datawriterdb_datareaderMatch
 DbBSrv1 | DbB11011,1,0,1
 DbBSrv2 | DbB11011,1,0,1
 DbBSrv3 | DbB11011,1,0,1
 DbCSrv1 | DbC10211,1,2,0
 DbCSrv2 | DbC10111,1,1,0
 DbCSrv3 | DbC10211,1,2,0

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you @PhilipTreacy  for your prompt reply.
Hi @CharlotteCity12 ,
Based on the information you provided, I have created a sample data and you can follow the steps below:
1. Add a new column.

Mis = 
VAR _DB = 'Table'[db_owner] & "," & 'Table'[db_denydatawriter] & "," & 'Table'[db_datawriter] & "," & 'Table'[db_datareader]
RETURN
    IF ( 'Table'[Match] = _DB, "Match", "No Match" )

Final output:

vyifanwmsft_0-1713420393928.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you @PhilipTreacy  for your prompt reply.
Hi @CharlotteCity12 ,
Based on the information you provided, I have created a sample data and you can follow the steps below:
1. Add a new column.

Mis = 
VAR _DB = 'Table'[db_owner] & "," & 'Table'[db_denydatawriter] & "," & 'Table'[db_datawriter] & "," & 'Table'[db_datareader]
RETURN
    IF ( 'Table'[Match] = _DB, "Match", "No Match" )

Final output:

vyifanwmsft_0-1713420393928.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PhilipTreacy
Super User
Super User

Hi @CharlotteCity12 

 

Not clear what you want.  What login are you referring to?  I dno't see anything in your data.

 

Please supply a clear example of the desired result.

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors