Forum Discussion

RichOB's avatar
RichOB
Post Partisan
1 year ago
Solved

Simple Count measure

Hi, I have 2 dog kennels with 10 spaces in Manchester and 3 in Edinburgh. What measure would tell me that any Location with over 6 kennels is classed as a "Large Kennel", and anything under 6 is clas...
  • Bibiano_Geraldo's avatar
    Bibiano_Geraldo
    1 year ago

    Hi RichOB ,

    For that case Just assume >= to include 6 kernels, please see the updated DAX

    Kennel_Size_Measure = 
    VAR KennelCount = COUNT('Table'[Kennels])
    RETURN
    IF(KennelCount >= 6, "Large Kennel", "Small Kennel")