Forum Discussion

cottrera's avatar
cottrera
Icon for Post Prodigy rankPost Prodigy
4 years ago
Solved

DAX scoring if column values between set criteria

Hi  I have a property table of about 1.5 million rows. Each row has a risk score based wehter a dangerios material (Asbestos) has been located or not. The table contains the following columns - Prop...
  • mflo's avatar
    4 years ago

    Hi Richard,

    You might try this:

     

    Risk Category = 
    var risk_score=[Risk Score]
    return
    SWITCH(TRUE(),
    [NETOF2]=0,"No Asbestos",
    AND(risk_score>=1,risk_score<=8),"Low",
    AND(risk_score>=9,risk_score<=15),"Medium",
    AND(risk_score>=16,risk_score<=24),"High")

     


    Hope it will be helpful.

    Regards,

    Marc