Forum Discussion

Phoenix_Bird's avatar
Phoenix_Bird
Frequent Visitor
5 years ago
Solved

DAX Measure - ALL EXCEPT?

I need to write a DAX measure to return a value of "In" or "Out" for each employee based on the values in the Description fields of relevant rows.   Any employee that has a row for "Furlough Pay" n...
  • Jihwan_Kim's avatar
    5 years ago

    Hi, Phoenix_Bird 

    Please check the below for creating a new measure.

     

     

     

    New Measure =
    IF (
    "Furlough Pay"
    IN CALCULATETABLE (
    VALUES ( 'Table'[Category] ),
    ALLEXCEPT ( 'Table', 'Table'[Employee ] )
    ),
    "Out",
    "In"
    )
     
     
     
     

    Hi, My name is Jihwan Kim.


    If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


    Linkedin: linkedin.com/in/jihwankim1975/

    Twitter: twitter.com/Jihwan_JHKIM