The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
how to convert Line Break Values from One Cell to Multiple rows in power bi, i have a imported excel there is an 3 cilumn has line break values first column is has Text, second has date, thisrd has number + hypen
please guide me
Hi,
Share some data and show the expected result.
If you have data like the following:
And you want to split it into separate columns
You would use the Split Column option under the Transforms tab in Power Query and set it up as follows:
Note that you may have to experiment with using #(lf) or #(cr) or #(cr)#(lf) as your delimiter character depending how the line breaks in your source file were generated.
Hi
Please find the below onedrive link in which i have shared excel file,
i wish to saperate line break cell and convert into row for below column.
TRANSACTION TYPE | TYPE | APPROVAL STATUS | Expiration Date | Target Date | Critical Date |
i wish to convert/split them in to row and the data visuals should be reflact on filter selection of the month on visulisation page. i wish to have a table on visulisation page which include data like in wxcel file but it should be replact or change on the selection of monthand display for that month with upcoming expiring product details .
Please note sum of rent should not be exceed than in excel. i tried to split column and then i noticed that rent value gets multiple according to rows after splitting any colum
https://1drv.ms/x/s!Ai3rGPgy20kLwTNZ1uUzBj9qRRc_?e=a6VTqD
I have no acess to your file.
It is limited.
Just share a little and small data which can exanplain your problem.
Best Regards
Maggie
Please try below link
it has 5 cololumn where line break values are there .
Result : line break value splite to rows and the rent value should not be get multipal accoriding to new splitted row
so we can easiliy calculate rent
https://1drv.ms/x/s!Ai3rGPgy20kLwTNZ1uUzBj9qRRc_?e=wViHnm
Hi,
Since the file size exceed 5 MB, it is not opening. There is no option to download the file either.
i have reduced size of file please have a look.
https://1drv.ms/x/s!Ai3rGPgy20kLwTTKh2Pewer6csYe?e=Svf3gu
above link was has excel file and below is power Bi file
https://1drv.ms/u/s!Ai3rGPgy20kLwTWea9DhobGCfAJU?e=ZRCVIS
Hi,
To carry out any transformation, i will need the Excel file.
Please visit below link to access the excel file
https://1drv.ms/x/s!Ai3rGPgy20kLwTTKh2Pewer6csYe?e=Af8ah4
Hi,
In that Excel file, i do not see line breaks in any column.
Thank you for your reply.
I have i highlighted rows where line break values.
please visit below link to access the said file
https://1drv.ms/x/s!Ai3rGPgy20kLwTTKh2Pewer6csYe?e=kzN1KR
https://1drv.ms/x/s!Ai3rGPgy20kLwTTKh2Pewer6csYe?e=kzN1KR
Hi,
So in row 25 once data is split into 2 rows, what value would you want to see in the rent column of those 2 rows? Also, what value of rent do you want to see in row 45 (where there is TBD in the Target date column)?
For example; if row no 25 split to row and one of that row should have rent value and splitted row should not be have any rent value. if there has TBD then ignore.
Please find the below snap you will get an idea.
Hi,
You may download my PBI file from here.
Hope this helps.
Thank you so much for your great help.
But the sum of rent sould be $ 626296157 not $ 626640900.
Can you help me with fix this?
But really it's great
Hi,
Now it works. Download the file from here.
could you please guide me how you add below step in your file
= Table.Group(#"Removed Columns", {"Merged"}, {{"Partition", each Table.AddIndexColumn(_, "Index",1,1), type table}})
Hi,
That statement has to be written. It basically resets the counter for every change in the Merged column. It's like a COUNTIF() function in MS Excel.
Hi have replaced data with my main data but the partition step is not working could you pleas help me on this
User | Count |
---|---|
70 | |
67 | |
62 | |
48 | |
28 |
User | Count |
---|---|
113 | |
78 | |
64 | |
55 | |
44 |