Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Sort Metrics Report Column

H Guys, Anyone t  to sort Metrics report column. see screen below.    
  • v-kkf-msft's avatar
    4 years ago

    Hi Anonymous ,

     

    Please try to add a custom column in Power Query and then change the type of the column to Whole Number.

     

    Order_PQ =
    Text.End([Date], 4) & Text.PadStart( Text.Select( Text.Start([Date],3), {"0".."9"} ), 2, "0")

     

    Or add the calculated column.

     

    Order_calculatedColumn = 
    RIGHT ( [Date], 4 ) & FORMAT ( VALUE ( MID ( [Date], 2, 2 ) ), "00" )

     

     

    Then sort [Date] column by [Order_PQ] (or [Order_calculatedColumn]) field.

     

     

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.