Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
Thanks for seeing this Question.
I'm trying to find a solution to split column in to rows based on the Value in the Column.
In my scenario the text that determines the split is 'New'. if the Column has this text then it should be split in to seperate row and keeping other values/text in Tact.
This is the Source Data
I would like to see the Outputs as Below
I did try to include the if condition and there are errors.
Can anyone help me out please.
Regards
Solved! Go to Solution.
Hi,
In Power Query I did copy twice from particular Table :
1- in the first one,
A- I add Custom Column and use below M code : if Text.Contains([Desc], "New") then "New" else ""
B- Filter the new Column just for the rows including 'New'
C- Remove the Desc Column and rename the new column to Desc
2- In the second one,
A- I Replace the New with Space for Desc Column
B- Replace ", ," with ","
C- Trim the Desc Column
D- RightTrim the "," from the end
3- Now if Append these two ones together, the new table is included the particular rows :
Appreciate your Kudos
thank you all
Hi,
In Power Query I did copy twice from particular Table :
1- in the first one,
A- I add Custom Column and use below M code : if Text.Contains([Desc], "New") then "New" else ""
B- Filter the new Column just for the rows including 'New'
C- Remove the Desc Column and rename the new column to Desc
2- In the second one,
A- I Replace the New with Space for Desc Column
B- Replace ", ," with ","
C- Trim the Desc Column
D- RightTrim the "," from the end
3- Now if Append these two ones together, the new table is included the particular rows :
Appreciate your Kudos
Hi @karthik69 ,
Please find the below link for your reference.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Thanks,
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
51 | |
42 | |
40 |