Forum Discussion

laurmell's avatar
laurmell
New Member
4 years ago

Dax Calculation Help

Hi folks, I need help creating a dax calculation for people with rights for system a and rights in system b. I have a list of names and a list of rights that each person has. The problem is there are multiple rights for a and multiple rights for b. Please see the table below for Clarification. 

 

NameRight Name
VBaaa_121
SUbbb_123
SUaaa_123
MNbbb_0
MNaaa_0
MNaaa_121
BCaaa_121
GMbbb_123
GMaaa_123
MJbbb_5000
CMbbb_123a
CMaaa_123a
LJbbb_5000b
JMDbbb_5000a
KCaaa_123
BIbbb_4000a
BIbbb_4000b
BIbbb_5000a
BIbbb_5000b
BIbbb_123
BIaaa_123
WKbbb_123
WKaaa_123
DFNbbb_5000e
VAPbbb_5000b
GMaaa_121
SMbbb_123
BJFbbb_5000
SRaaa_121
SRaaa_123

 

I need to check whether each person has the same rights in system a as system b. 

1 Reply

  • laurmell , You need to have a name and the right table

    example

    new table

    Dim1 =

    Distinct(union(Summarize(Table1,Table1[Name],Table1[Right Name]),Summarize(Table2,Table2[Name],Table2[Right Name]) )

     

    Create a combine column in all three table and use that in join

    = [Name] & "-" & [Right Name]

     

    Then create a measure like

    only matched

    Countx(filter( summarize(Dim, Dim[Name], Dim[Right Name], "_1", Count(Table1[Name]) , "_2", Count(Table1[Name]) ) , [_1] =[_2]), [Name])