Forum Discussion

SwatiAccenture's avatar
SwatiAccenture
Frequent Visitor
4 years ago

How to add Serial Number post custom sorting in Matrix

I have below matrix visual from table "Epic" .

"Work item id" column has unique value but "stank rank" can be duplicate.

 

Now I want to first do custom sorting  on Stack Rank (Lowest to Highest) first and then Work Iteam ID (Lowest to Highest).

and on that sorted table it should add S.No in the first column.

 

I am able to do custom sort but I am not able to add measure of S.No that takes into account ordering of both column Stack rank and work item id.

 

Please help me here.

 

Stack RankWork Item IdTitle
2753897321410679ABC
2753894621444887EFG
2753894621474419IGH
2753876401506653AA

 

3 Replies

  • amitchandak  Problem is not with custom sort. I am able to do custom sort. it is adding serial number which is giving issues.

    I am using below measure to add serial number. 

     

    Epic Serial Number = CALCULATE (
    COUNT ( 'Epic View'[Work Item ID] ),
    FILTER ( ALLSELECTED ( 'Epic View'), 'Epic View'[Work Item ID] <= MAX ( 'Epic View'[Work Item ID] ) )
    )
     
    So , post custom sort i see S.No are not in order. I want to create a measure that takes both stack rack and work item id into account and then add S.No to the rows