(score) =>
let GRDBucket =
{
{(x)=>x<60, "F"},
{(x)=>x<70, "D"},
{(x)=>x<80, "C"},
{(x)=>x<90, "B"},
{(x)=>true, "A"}
},
Result = List.First(List.Select(GRDBucket, each _{0}(score))){1}
in
Result
Plz refer attach file.Thanks man.. But there is no need to give any formula just we need to give the range what we like to use.. That's it. I will letting you know that once i asked with trainer.
Ah, your Sub names are "if2" etc. You can't use that as that's like cell reference and there will be name conflict.
So, change it to F_if2 or some other name and you can assign it.