Forum Discussion

maddogp's avatar
maddogp
Frequent Visitor
3 years ago
Solved

Understanding a DAX Measure

Hi I'm hoping someone can assist with understanding a DAX measure.  I've inherited a report that includes a measure  which excludes data from a matrix column if the SchoolYear is 20222023 AND the c...
  • cassidy's avatar
    3 years ago

    I'm pretty sure this is right:

     

    For OR, if one of the two is TRUE, it's TRUE, if both are FALSE, it's FALSE

     

    The 2nd part of the OR, if you were to put it as it's own Measure, returns this:

     

    So for 20222023 MFM, you get a FALSE || FALSE = Don't count it

    For 20222023 MPM, you get a TRUE || FALSE = Do count it

     

    All other combo's have a TRUE in them somewhere and get Counted

     

    I'm sure there are other ways to write it that make more sense, but it's interesting