Forum Discussion
Arrange date in correct order
- 5 years ago
Hi Anonymous ,
Please create a custom column in power query:
= Table.AddColumn(#"Changed Type", "Datefororder", each Text.Insert([No. of Working Days],4,"20"))Then convert it to date in data view:
Then you can use sort by columns:
Please refer to the pbix file.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi, Anonymous
I suggest having one more column in your dim-date table for the purpose of sorting.
For instance, you can create endofmonth column by using the date column and the EOMONTH function.
Then you can sort the month-year column by the newly created column.
- Anonymous5 years agoNot applicable
Thank you for replying Jihwan.
I tried it but what to do in ENDOFMONTH Function?
I'm not getting option to write the column name in it?
Could you explain in detail. Header name for date column in format Jan-16 is No. of working days.
Thank you
- Jihwan_Kim5 years ago
Super User
Hi, Anonymous
Thank you for your feedback.
If it is OK with you, please share your sample pbix file's link here, then I can try to look into it to come up with a more relevant solution.
Thanks.
- Anonymous5 years agoNot applicable
Yes Sure..I've made a sample file your reference and the link is attached below.
https://drive.google.com/file/d/1kZyc4NsV0fmrLhTEt_c06MQFdQx53y5r/view?usp=sharing
Regards,
Diksha Gupta