March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi everyone, I need some help.
I have a table in excel that has a column (VOUCHER) where there are two codes separated by (-), I would like to know how to do it in power query to separate the VOUCHER into two or more lines and repeat the other information from the other columns
Example 1)
CODE | TIPE | VOUCHER |
287865 | X1 | 1955734 - 1955745 |
RESULT
CODE | TIPE | VOUCHER |
287865 | X1 | 1955734 |
287865 | X1 | 1955745 |
Example 2)
CODE | TIPE | VOUCHER |
123456 | X1 | 1955734 - 1955745 - 1957865 |
RESULT
CODE | TIPE | VOUCHER |
123456 | X1 | 1955734 |
123456 | X1 | 1955745 |
123456 | X1 | 1957865 |
tks for helpe me 🙂
Solved! Go to Solution.
Hi @Spotto
You can split your column in rows with the advanced options of split column:
and you get what you want exactly
Hi, @Spotto ;
You could split the column by "-".
Then unpivot those columns.
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Spotto ;
You could split the column by "-".
Then unpivot those columns.
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Spotto
You can split your column in rows with the advanced options of split column:
and you get what you want exactly
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
16 | |
13 | |
12 | |
9 |
User | Count |
---|---|
36 | |
31 | |
20 | |
19 | |
17 |