Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi guys,
I have a Column with text and numbers values, this column was created in power query, I would like to order this column by the first line with text value (Due) and order by number for others values, its is possible?
Column | Result |
Due | Due |
31/12/2021 | 01/07/2021 |
31/10/2025 | 01/09/2021 |
31/10/2024 | 01/10/2021 |
31/10/2023 | 01/12/2021 |
31/10/2022 | 01/12/2025 |
31/08/2024 | 02/07/2021 |
31/08/2023 | 31/08/2023 |
02/07/2021 | 31/08/2024 |
01/12/2025 | 31/10/2022 |
01/12/2021 | 31/10/2023 |
01/10/2021 | 31/10/2024 |
01/09/2021 | 31/10/2025 |
01/07/2021 | 31/12/2021 |
Solved! Go to Solution.
First of all, thank you for your answer...
I solved the problem, creating the new column in power query to sort the columns
Hi @twister8889,
When a column contains both text and values, the entire column will be in text format.You define the value of the text first, and then sort the whole column
Just like:
Column =
SWITCH(
'Table'[Column1],
"Due",1,
"Text1",2,
"Text2",3,
0
)
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
First of all, thank you for your answer...
I solved the problem, creating the new column in power query to sort the columns
User | Count |
---|---|
75 | |
71 | |
42 | |
31 | |
28 |
User | Count |
---|---|
99 | |
92 | |
50 | |
49 | |
46 |