Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How to sort data based on date

I am trying to sort  data  on my power BI report  based on one column in one table based and  date column from another table in  , i wanted to know if there is a DAX function   for sorting data in this way

  • But in that case wouldn't it just sort by Descending date?
    I apologize for the questions, but I want to better understand to help you properly.

    Did I solve your problem?
    Please mark as solution so others can find this solution.
    https://www.linkedin.com/in/rodrigosanpbi/

13 Replies

  • rodrigosan's avatar
    rodrigosan
    Responsive Resident

    Hello, how are you?
    I don't know if it's your case.
    But if you have a date table and it is correctly related to your fact table.
    Just go to Power Pivot, select your date table and sort the name of the month based on the numeric month column.

     

    Did I solve your problem?
    Please mark as solution so others can find this solution.
    https://www.linkedin.com/in/rodrigosanpbi/

    • Anonymous's avatar
      Anonymous
      Not applicable

      This is different from what i want to do, i dont have  date table , but i do have table (fact) that has date column and another table (dim) that has the  product ID. so i wanted to sort prodct ID based on the date 

  • Anonymous's avatar
    Anonymous
    Not applicable

    my syntax correct though?