重置或自定义索引以更改列表 DAX 的顺序

reset or customize index to change order of list DAX

需要有关 PowerBI 的以下 if 语句的帮助

if [#"# Lives Range"] = "0-100" then 1 
else 
if [#"# Lives Range"] = "101-500" then 2 
else 
if [#"# Lives Range"] = "501-3000" then 3 
else 
if [#"# Lives Range"] = "3000+" then 4 
else 
if [#"# Lives Range"] = "New" then 5 
else 
if [#"# Lives Range"] = "Runout" then 6

正在尝试创建唯一索引以正确排列列表 - 由于 3000+ 值未按升序正确排列。

感谢您的意见,不过,我已经弄明白了:

 if [live range]="0-100" then 1 
 else( if [live range]="101-500" then 2 
 else( if [live range]="501-3000" then 3 
 else( if [live range]="3000+" then 4 
 else( if [live range]="New" then 5 
 else( if [live range]="Runout" then 6 
 else 999))))) 

谢谢。 – 凯伦昨天