Can you supply a short sample data set with a before and after of what you're trying to accomplish? There are a couple of different directions this could go, depending on your desired output.
Hi All,
I am very new to Power BI and need help in following...
I am running a query based on answer in this thread to copy rows based on a condition...
HTML Code:let CN = [#"Column4"] in if Text.Length(CN)=11 and Value.Is(Text.Start(CN,4),type text) and Value.Is(Number.FromText(Text.End(CN,7)),type number) then List.Repeat({CN},13) else {CN}
But its checking this condition in only one column i.e. Column4 while I want it to check condition on Column3, Column4 and Column5. Any help please?
~S@~
Can you supply a short sample data set with a before and after of what you're trying to accomplish? There are a couple of different directions this could go, depending on your desired output.
Ken Puls, FCPA, FCMA, MS MVP
Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!
Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter
If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.
Yes sure.
Actually data looks like this
This data is extracted from a lot of PDFs so its messy. And columns of my interest are G, H, and I. If length of any of cell in these columns is 11 AND its first four of content of same cell are TEXT and Last 7 are numbers then I need to copy the entire row (from column A to Z) 13 times.
Another thing that is in my mind is if we remove all blanks from column A to Z then all of these Columns will come to Column F and then we can use the query that I mentioned earlier in my post to copy rows 13 times if conditions are met.
Which ever is easy for you to understand![]()
~S@~
Bookmarks