Forum Discussion
sort visual by 2 variables
- Anonymous2 years ago
Hi Jozef_KaBa ,
Are both variables numbers? If so, you can refer to the following program:
Total = 0.4*[Value1]+0.6*[Value2] Rank = var _t = ADDCOLUMNS('Table',"Rank",RANKX(ALL('Table'),[Total],,DESC,Dense)) RETURN MAXX(_t,[Rank])An attachment for your reference. Hope it helps!
Best regards,
Community Support Team_ Scott ChangIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
- 2 years ago
Dear Scott, many thanks for your explantion.
I am going to implement the code and check.
Regards,
Hi Jozef_KaBa ,
Are both variables numbers? If so, you can refer to the following program:
Total = 0.4*[Value1]+0.6*[Value2]
Rank = var _t = ADDCOLUMNS('Table',"Rank",RANKX(ALL('Table'),[Total],,DESC,Dense))
RETURN MAXX(_t,[Rank])
An attachment for your reference. Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
- Jozef_KaBa2 years agoNew Member
Dear Scott, many thanks for your explantion.
I am going to implement the code and check.
Regards,