power query
3 TopicsRetrieving the biggest text length value for every column in table
Hi! I'm cleaning and preparing data before an erp migration, and I would prefer to have the task more automated since the it will be recurring. I need to check every column for it's longest value (longest as in largest amount of characters) to ensure that the set length limitations in the target erp do not cut any values Let's say I have data that looks like this: Table.FromRecords({ [CustomerID = 1, Name = "Bob", Phone = "123-456712"], [CustomerID = 22, Name = "Jim", Phone = "987-6543"], [CustomerID = 333, Name = "Paul", Phone = "543-7890"], [CustomerID = 4444, Name = "Ringo", Phone = "232-155042424"] }) Here I would want a table with two colums, or any viable solution, really. One with the column names from the source data, and one with a number representing the longest value for that column. Also preferably not hard coded with column names or similar, to be able to swiftly reuse for new cases. Something like this: ColName - Len CustomerID - 4 Name - 5 Phone - 13 Hope you can crack this one!Solved2KViews0likes3CommentsExplode and duplicate Rows
Dear all, I have a little problem on Power Query, In fact, I integrated TABLE1 from an Excel file and in Power BI and I want to transform the table and explode it according to the number of days off (by modifying the date each time of END) as shown below. there is any solution to do it in Power Query PBI?Solved5.9KViews1like3CommentsDelete the first 10 rows of each file on a "multiple file" table
Hi all, I have a quite specific question for you : I made a query with parameters to get the values of multiple excel files (hosted on sharepoint) into one single table, that I will call "multiple file table" or "consolidation table". Because all these files have exactly the same structure, I can see them in one single Power BI Table with same columns for each. In the applied steps of the Table, I had to remove the First 10 rows of the Excel file (it contains useless values), but it just did it for the 1st file I injected. What I would like is : create a formula to remove first 10 rows each time my Table is processing a new file. (What I did until now is a series of "= Table.SelectRows(#"Renamed Columns", each [field1] <> null and [field2] <> null" ... but it is quite ugly and not developer friendly.) I hope it is clear for you. Many thanks in advanceSolved16KViews0likes3Comments