VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
Power Query - Remove Text Between Delimiters Reusable Custom Function - My Online Training Hub

Power Query - Remove Text Between Delimiters Reusable Custom Function - My Online Training Hub

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Power Query - Remove Text Between Delimiters Reusable Custom Function - My Online Training Hub How to write a custom function to remove text between delimiters in Power Query. Download the Excel file here: https://www.myonlinetraininghub.com/remove-text-between-delimiters-power-query 0:24 Example data 1:03 List text to split 3:21 Combine text back together 3:50 Create custom function 6:47 Invoke custom function 7:21 Keep delimiter
Date: 2022-04-08

Comments and reviews: 10


I have a power query and I have it loading to a table on a sheet.-
I have a PivotTable looking at this Table.-
In hindsight I should have loaded the power query as a connection only and pointed the PivotTable to the power query.-
I can load the query as an connection only, but I can-t change the Data Source of the PivotTable to the power query.-
I have changed the Data Source in the past form one table to another, and I think I gone form one power query to another.-
I have done a lot of formatting to that PivotTable, so I don-t really want to redo all the work.-
Any Idea how to change a PivotTable Data Source form a table to a Power Query?

reply

Hi Phil. First of all, thanks a lot for great content. Very helpful.
Second: do you know if it is possible to make only the Y axis min/max bounds dynamic? I have a pivot chart consisting of multiple lines. X axis = 12 months. Y axis = values (EUR). When I click on a slicer, lines are adjusting fine. However, because min/max bounds of Y axis are static, lines look weird (too close to each other in some cases, and all on the bottom of the chart in other cases).

reply

Great video Phil. I do love a PQ custom function. What was the purpose of the nested let? Could you not just have the parameters in the opening line (line 1) of the code, with just a single let (final row being in L3, as opposed to source)? Is it just a best practice type thing?
Edit: what I mean is if you remove steps 1, 9 and 10 from your code, and the -Source = - in line 2, is the function affected?

reply

Outstanding tutorial! Just one minor point, the -Cleaned Data- output when run with -True- does not contain the delimiters for the final entry of the list. In the function, change the line for L3 to be: L3 = if KeepDelim then Text.Combine(L2, Text.Combine(-LeftDelim, RightDelim-)) & LeftDelim & RightDelim else Text.Combine(L2)
reply

Another great tutorial. One question, when you start typing in the Custom Column New Formula box you get a list of functions show up and gets filtered as you type. When I start typing nothing comes up. How do I turn this on?
reply

Can functions be saved to your normal.dot like custom VBA functions? Love these coding examples Phil shares, and hoping there is an easier way to share functions across workbooks!
reply

Awesome Mynda and Phil! Writing custom functions takes some practice for sure. Thanks for the thorough explanation and providing the sample file to follow along :)) Thumbs up!!
reply

Great tutorials. You're showing us the full potentials of PQ as a programmable tool. Please, keep these custom functions coming. This is more like the VBA of Excel for PQ.
reply

Thanks for the tutorial! One question though, how do I modify the function so that if there are no delimiters, it will retain the original value?
reply

I may be missing the point here, but solving this takes only three steps in PQ using the interface.
See the file I sent you. :-)

reply
Add a review, comment






Other channel videos