Forum Discussion

awsiya's avatar
awsiya
Helper I
2 years ago
Solved

Both Column Values Match including a blank one

Hello all, I am encountering an issue when using DAX to perform the following calculation. I have a simple table containing only two columns, "Sorted" and "Preferred." The task at hand is to determi...
  • parry2k's avatar
    2 years ago

    awsiya if you don't want to add a column you can also a measure directly:

     

    Sorted Matched Preferred Measure = 
    COUNTROWS ( FILTER ( Table, COALESCE ( Table[Preferred], Table[Sorted] ) = Table[Sorted] ) )