采取以下措施
措施1:
Count of Opened Tickets = COUNTA('Opened By Tickets'[Ticket])
措施2:
VAR RankingContext = VALUES(Contacts[Full_name])
VAR TopNumber = 1
RETURN
IF(
CALCULATE(
[Count of Opened Tickets],
TOPN(TopNumber,ALL(Contacts[Full_name]),[Count of Opened Tickets],DESC),RankingContext),"#5ff442",IF(CALCULATE([Count of Opened Tickets],
TOPN(TopNumber,ALL(Contacts[Full_name]),[Count of Opened Tickets],ASC),RankingContext),"#ff0000"))
Matrix外观如下:
“已打开故障单”的值来自“已打开故障单的计数”,并按“业务代表行”分组。最高值正确格式化为绿色,但是我无法获得非空白的最低值格式化为红色。
由于我是DAX的新手,任何建议和技巧都将不胜感激。