Forum Discussion
sorting issue
- 9 years ago
Hi dineshkumar_vrv,
Currently, only one column can be sorted with the sort option in Power BI. Here is an idea about adding a multiple columns sort feature. You can vote it up and add your comments there to improve Power BI on this feature.
In addition, an alternative way to sort both payment column and Quantile column is using the formula(DAX) below to add a new calculate column in your table, then sort by the new created column. :smileyhappy:
Column4 = Table2[payment]+Table2[Quantile]
Regards
Error Message : The syntax for ';' is incorrect. (DAX(RANKX( ALLSELECTED(Hospital_Gen_Res_QR[Payments]); Hospital_Gen_Res_QR[Payments]; ;ASC))).
Rank =
RANKX(
ALLSELECTED(Hospital_Gen_Res_QR[Payments]);
Hospital_Gen_Res_QR[Payments];
;ASC
)
Syntax is correct, try to change ; with , ?
Rank2 =
RANKX(
ALLSELECTED(Table1[Payment]),
Table1[Payment],
,ASC
)
- dineshkumar_vrv9 years agoHelper I
Thank you formula worked but sorting issue still prevails , it sorts only the payment column in ascending and Quantile column is not sorted in ascending.
My requirement is to sort payment and quantile in ascending order
- Anonymous9 years agoNot applicable
Use the approach v-ljerr-msft mentioned or if you don't want to store the concatenated column use
Rank2 = RANKX( ALLSELECTED(Table1[Payment]); Table1[Payment]&"-"&Table1[Quantile]; ;ASC )
- dineshkumar_vrv9 years agoHelper I
Ok Thank you ,v-ljerr-msft suggestion work well but with extra column.