Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I created a DimDate (with a DAX formula calendar auto) and added natural months. Then I added a column "month_inter" because the start and end of my "month_inter" are very different from natural months. Then I wanted to sort them in the right order (not alphabetically) so I created a column "num_month".
But when I click on "sort by column" I have this error message "You cannot sort this column by a column that is already sorted, directly or indirectly, by this column."
And I cannot add my "num_month" column in Power Querry because my table DimDate has been made with DAX so it doesn't appear in Power Querry.
Anyone know how can I sort my months by the order of "num_month" ?
Thank you very much.
Solved! Go to Solution.
Hi @DM_BI,
you cannot sort mes inter by num because the value of num depends on mes inter.
Try to calculate your 'num' column the same way you calculate the 'mes inter' column but by assigning the month number instead of the month name. And then you can calculate the 'mes inter' based on the 'num' column. afterwards you should be able to sort 'mes inter' by 'num'
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
Hi @DM_BI
what is your dax that creates the date table?
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
Hi @DM_BI
afterwards how are you adding the calculated columns?
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
I added the following columns :
Día = DAY(DimDate[Date].[Date])
Anyone?
Hi @DM_BI,
you cannot sort mes inter by num because the value of num depends on mes inter.
Try to calculate your 'num' column the same way you calculate the 'mes inter' column but by assigning the month number instead of the month name. And then you can calculate the 'mes inter' based on the 'num' column. afterwards you should be able to sort 'mes inter' by 'num'
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
76 | |
74 | |
49 |
User | Count |
---|---|
146 | |
108 | |
106 | |
90 | |
62 |