Forum Discussion

Dunner2020's avatar
Dunner2020
Icon for Post Prodigy rankPost Prodigy
6 years ago
Solved

Sorting month order in line chart

Hi there,   I have a date table that contains the date from January 2019 to March 2025. The structure of the table looks like following:   I created the date column using following code:  ...
  • v-lili6-msft's avatar
    v-lili6-msft
    5 years ago

    hi  Dunner2020 

    In edit queries, add a costom column as below:

    if [Month Of Year]>=4 then ([Year]*100)+[Month Of Year]-3 else ([Year]-1)*100+[Month Of Year]+9

    Now use this custom column to sort by column

    Result:

    and here is sample pbix file, please try it.

     

    Regards,

    Lin