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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply

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
v-yifanw-msft
Community Support
Community Support

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
v-yifanw-msft
Community Support
Community Support

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.