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.
Hi guys,
I do know date hierarchy is not available for DirectQuery as of now.
However I created a custom DateDim table with different columns like (Date, Year, Quarter, MonthNumber, MonthNames etc.)
I joined my date field with the date field in DateDim table. It shows data fine, However when I drill down the data to Month it starts from April, August etc.. till September in Alphabetical order rather than chronological order. The sorting changes when it's drilled down so can't keep default sorting on single column in hierarchy.
Please let me know if there are any options for this.
Thanks!
Solved! Go to Solution.
I can't quite see what your issue is from your description. Per http://databear.com/2016/04/23/power-bi-tips-sort-by-month-name/, you add the Month number column via Power Query editor (i.e. "Edit Query"), but the sort itself is set in the report editor under the Modelling tab - the sort doesn't happen in "Edit Query"?
Hello,
I created this video hope this is the solution you are looking for https://youtu.be/n_gnuFS8qoY
Regards!
Erich Dejesus
Yes u r correct .
If it is default Hierarchy it will short fine.
If u create any custom hierarchy u have to create short order for all level. so here u have to create one more extra column for month. and apply that column to month short.
like Example :
Switch (Month,"Jan",1,"Feb",2, etc...)
let me know if any help
I can't quite see what your issue is from your description. Per http://databear.com/2016/04/23/power-bi-tips-sort-by-month-name/, you add the Month number column via Power Query editor (i.e. "Edit Query"), but the sort itself is set in the report editor under the Modelling tab - the sort doesn't happen in "Edit Query"?
@AnonymousThanks for your reply. "Sort By Column" is disabled for me. I am using DirectQuery.
@AnonymousSorry, I see that now. I will try it and let you know if it works.
Hi everyone, thanks for your replies.
The issue was I did not know how and from where to apply sort to a column in Direct Query mode.
I think this guide might help: http://databear.com/2016/04/23/power-bi-tips-sort-by-month-name/
Or this: https://www.google.com.au/webhp?q=power+bi+sort+by+month
May be you could create a new column as shown below in DimDate and sort your month column by the new column.
sortMonthYear = 'DimDate'[Month] + ('DimDate'[Year] * 12)
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 | |
97 | |
84 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |