这是我矩阵的设计视图,它使用了一系列数据集,表达式使用了查找
这是已运行的报告。我想在结尾栏中添加一些条件格式
条件格式取决于人的姓名,然后取决于该字段中的总数。下面是我尝试过的。我希望只有希拉里的细胞能显示出颜色。但是其他人则显示为绿色。
=switch(Fields!Name.value = "Hilary" and
reportitems!Textbox62.value >=0 and reportitems!Textbox62.value <= 9,"#fd6767",
reportitems!Textbox62.value >=10 and reportitems!Textbox62.value <=19, "#f8d3a9",
reportitems!Textbox62.value >= 20 and reportitems!Textbox62.value <=100,"LightGreen")
答案 0 :(得分:1)
如果我理解正确,那么所有其他名称都应该使用空白背景的单元格,对吗? 在这种情况下,必须为每行添加条件“ Name = Hilary”。在您的表达式中,这只与第一行有关。 试试这个:
=switch(
Fields!Name.value = "Hilary" and reportitems!Textbox62.value >=0 and reportitems!Textbox62.value <= 9,"#fd6767",
Fields!Name.value = "Hilary" and reportitems!Textbox62.value >=10 and reportitems!Textbox62.value <=19, "#f8d3a9",
Fields!Name.value = "Hilary" and reportitems!Textbox62.value >= 20 and reportitems!Textbox62.value <=100,"LightGreen")