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 everyone,
I plotted a graph but the date structure is not arranged graphically. I got this column of dates from my excel file and It is in format Jan-16 which means January, 2016. I want to display the months in correct order and year but It is puzzled and I am not able to see the correct variation.
So this is the representation in front of me. How Can I sort it.
Thank you
Regards,
Diksha
Solved! Go to Solution.
Hi @gupta_diksha ,
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 @gupta_diksha ,
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 @gupta_diksha ,
Can you please confirm if the data type of your date column is date or something else ?
Regards,
Jaideep Nema
Hi,
Yes, I already tried it but It is not working.
Regards
So, in the table of PBI, the "Date" column (you got from excel) has been marked as Data Type "Date"?
If so, you may have to create another table for sort... as other replies introduced.
Hi, @gupta_diksha
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.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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
Hi, @gupta_diksha
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.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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
Hi @gupta_diksha ,
after downloading the PBI file you shared, I didn't find the column is "Date".
Here is what after changing the column type:
Is this what you are expecting?
H
Hi @gupta_diksha You ,will have to use the Sort by Column in the Data view.
https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
Thank you for helping but It is not working.
Best Regards,
Diksha Gupta
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 |
---|---|
114 | |
100 | |
81 | |
70 | |
62 |
User | Count |
---|---|
148 | |
116 | |
104 | |
90 | |
65 |