Forum Discussion

bourne2000's avatar
bourne2000
Icon for Helper V rankHelper V
3 years ago
Solved

How to sort week end date in the date table?

Hi

 

I have below date table

 

 

 

I created Week End date using this dax measure

Week End Date = 'Date'[Date] - WEEKDAY('Date'[Date],2) + 7

 

I need to sort the week end date, as I build the bar chart using week end date as an axis but it's not sorted out

 

 

Can anyone advise the following?

 

1) How to sort the week end date?

2) Hot to format week end date into "MM/dd/YYYY"

 

 

 

 

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi bourne2000 

    Click the End Date column, then change it date type to short date

     

     

     

    Then put the column to the axis.

    and use the sort function in visual

     

    Output:

    Best Regards!

    Yolo Zhu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

4 Replies