Forum Discussion
cottrera
Post Prodigy
5 years agoDAX 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...
- 5 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
mflo
5 years agoNew Member
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