BA Sensei
BA Sensei
  • Видео 173
  • Просмотров 320 636
Power Query - Identifying Frequent Values
in this video i show you some tricks using list functions to identify Frequently or non Frequently used values in a dataset. i'll be using Stock Codes in various portfolio - so you can see how many times some stocks appear in a list of portfolios.
#data #dataanalysis #powerbi #powerquery #mquery #excel
Following Along file
github.com/jbotes/powerbiTutorials/blob/main/PQ_VALUE_ALL_COLUMNS_VIDEO.xlsx
Functions Used
List.Select - for selecting values in the list
List.Distinct - for only returning distinct values in a list
List.Combine - combine lists
List.Count - count items in list
Table.ToColumns - convert table into seperate lists
Table.Transpose - to transpose table columns into rows
Link to Refe...
Просмотров: 682

Видео

Power Query - Create a Dynamic Grouping Index 🦒🩺
Просмотров 1,7 тыс.14 дней назад
In this rather esoteric situation i show you how to use the 5th argument (comparer) of Table.Group to dynamically add a Grouping index column based on a sum of rows. #excel #dataquerying #powerquery #mquery #powerbi #tutorial #dataanalysis Follow along file: github.com/jbotes/powerbiTutorials/blob/main/PQ_Grouping_Video_2.xlsx Functions Used List.Range List.Sum Number.From Table.AddIndexColumn ...
Power Query - Dynamic Top N or Bottom N 🥶🦒
Просмотров 1,2 тыс.21 день назад
In This tutorial i show you how to dynamically return either the Top N or Bottom N values in a group by using a parameter table. #dataquerying #powerbi #powerquery #mquery #excel #dataanlysis #data Project File github.com/jbotes/powerbiTutorials/blob/main/PQ_Dynamic_T_B_Video.xlsx Functions Used List.MaxN List.MinN Table.Transpose Table.Sort Table.AddColumn
Power Query - Unstack Double Barrel Header Dataset 🍔
Просмотров 1 тыс.Месяц назад
In this video i show you an alternative approach to deal with Double barrel header datasets using various list / record and table functions. #data #dataquerying #powerquery #excel #dataanalysis #powerbi Example file github.com/jbotes/powerbiTutorials/blob/main/PQ_DOUBLE_BARREL_2_Video.xlsx Functions used Table.Skip List.RemoveNulls List.Distinct Record.ToList Table.ToColumns List.Transform Tabl...
Power Query - Unpivot Double Barrel Headers
Просмотров 1,5 тыс.Месяц назад
In This Video i show you how to deal with the Double Barrel Header problem you'll encounter in your day to day life. You'll get to use some m query functions to unpivot the dreaded double barrel header and clean your data easily. #data #dataanalysis #excel #powerquery #powerbi Sample File github.com/jbotes/powerbiTutorials/blob/main/PQ_DoubleBarrel_Video.xlsx M Query Functions Used • Table.Tran...
Power Query - Filter Multiple Columns at once🦖😶‍🌫️
Просмотров 1,7 тыс.2 месяца назад
In this video i show you how to use some list functions to quickly filter multiple columns in one go. #data #dataanalytics #powerbi #powerquery #excel #mquery 🦖😶‍🌫️ Follow along file: github.com/jbotes/powerbiTutorials/blob/main/PQ_Filter_Columns_Once_Video.xlsx Functions Used To add columns to a Table Table.AddColumn To check for specific values in lists List.ContainsAny To check for true or f...
Power Query - Adding a Conditional Index Column
Просмотров 2,4 тыс.3 месяца назад
Using the power of records in power query i show you how to create a Conditional index on a simple portfolio dataset. #dataanalysis #data #powerbi #powerquery #excel #exceltips Link to Source File: github.com/jbotes/powerbiTutorials/blob/main/PQ_Counter_Column_Video.xlsx Functions used: List.Repeat Record [] List.Transform Table.Group Table.RowCount List.PositionOf Table.FromColumns
Power Query - Combine Files with inconsistent column names! 😎🍔
Просмотров 2,4 тыс.3 месяца назад
In this video i show you how to cater for this common use case where you want to combine various files into one but all of the files have different column names. This video you'll learn how to define the destination columns and remove the ones you don't need.😎🍔 #data #dataconsistency #dataanalysis #dataanalytics #powerquery #powerbi #excel #mquery File used in video github.com/jbotes/powerbiTut...
Power Query - Join a Table based on a Date Range 😎😶‍🌫️
Просмотров 2 тыс.4 месяца назад
In this Video is show you how to join a 2 tables based on a date range. You'll learn how to join a inner and a outer table within one Query. #OuterInnerTable #powerbi #mquery #powerbidesktop #data #dataanalytics #excel. The File github.com/jbotes/powerbiTutorials/blob/main/Trades_video.xlsx Links to Functions used table.AddColumn powerquery.how/table-addcolumn/ Table.SelectRows powerquery.how/t...
Power Query - Extracting Patterns - Dates & Hash Tags 🦖🦩
Просмотров 1,5 тыс.5 месяцев назад
Part 2 of Pattern Extraction in Power Query in this video i show how you can extract Hashtags and dates from a dataset. #datavalidation #dataanalysis #powerbi #powerquery #excel #mquery File github.com/jbotes/powerbiTutorials/blob/main/pattern2Video.xlsx Query Website powerquery.how/ PowerQuery Book www.amazon.com/Definitive-Guide-Power-Query-transformation-ebook/dp/B0CKRL5M3F?ref_=ast_author_m...
Power Query - Fixed Pattern Extraction 🎾
Просмотров 1,9 тыс.5 месяцев назад
In this Video i show you how to extract a Fixed Pattern from a Dataset 🎾 #dataanalytics #data #datatransformation #etl #powerbi #powerquery #mquery #excel #exceltips File github.com/jbotes/powerbiTutorials/blob/main/PQ_Pattern_Extraction_Video.xlsx M Query Book www.amazon.com/Definitive-Guide-Power-Query-transformation-ebook/dp/B0CKRL5M3F?ref_=ast_author_mpb Noteworthy techniques - Custom Funct...
Power Query - Iteratively Add Calculated Columns 🦩🦖
Просмотров 2,6 тыс.5 месяцев назад
A great use case for using the powerful m-query iterator function list.accumulate to dynamically add new calculated columns to a output dataset. #dataanalytics #data #datatransformation #etl #excel #powerbi #powerquery File Link github.com/jbotes/powerbiTutorials/blob/main/PQ_ListAccum_NewColumns_Video.xlsx Noteworthy techniques - Dynamically add columns Functions used List.Accumulate powerquer...
Power Query - Add Report Context fields as Columns🩺📖
Просмотров 2,5 тыс.5 месяцев назад
In this Video i show you how to add Report Context fields as columns in a dataset do some excellent transformations and unpivot the dataset and put it all in a function to run on many similar datasets. #dataanalytics #data #datatransformation #powerbi #powerquery #powerbidesktop #excel #investment Solution File with Mquery github.com/jbotes/powerbiTutorials/blob/main/PQ_ReportheaderIntoReportVi...
Power Query - Dynamically Sort Table Columns by user input
Просмотров 1,4 тыс.6 месяцев назад
In this video i show you how to dynamically change column order based on user input. And if no user input is provided the columns are sorted alphabetically. #dataanalytics #data #mquery #powerbi #powerquery #excel #exceltips #exceltutorial Follow along File github.com/jbotes/powerbiTutorials/blob/main/Pq_DynamicSortColumns_Video.xlsx Noteworthy techniques - Using muliple tables to sort and crea...
Power Query - Unstack Rows with List.Alternate
Просмотров 2,8 тыс.6 месяцев назад
There are many ways to Unstack rows into columns in this tutorial i show you how to use list.Alternate and then a little bonus how to do it in one line using list.Split. #dataanalytics #excel #powerbi #powerquery #powerbidesktop #tutorial #mquery #microsoft File Link github.com/jbotes/powerbiTutorials/blob/main/PQ_ListAlernate_Video.xlsx MQuery Links List.Alternate learn.microsoft.com/en-us/pow...
Power Query - List.Buffer to do a Million row Lookup
Просмотров 8 тыс.7 месяцев назад
Power Query - List.Buffer to do a Million row Lookup
Power Query - Dynamically transform column names
Просмотров 2,1 тыс.7 месяцев назад
Power Query - Dynamically transform column names
Power Query - Adding spaces to CamelCase & number fields with List Accumulate
Просмотров 1,1 тыс.7 месяцев назад
Power Query - Adding spaces to CamelCase & number fields with List Accumulate
Power Query - Advanced Transformation of Nested Tables
Просмотров 6 тыс.8 месяцев назад
Power Query - Advanced Transformation of Nested Tables
Power Query - Split Table Dynamically
Просмотров 4,1 тыс.8 месяцев назад
Power Query - Split Table Dynamically
Power Query - Previous Row Hack
Просмотров 1,6 тыс.9 месяцев назад
Power Query - Previous Row Hack
Power Query - Dynamically Promote Double Headers 🚀📊
Просмотров 1 тыс.9 месяцев назад
Power Query - Dynamically Promote Double Headers 🚀📊
Power Query - Unstack Uneven Rows to Columns🍔
Просмотров 1 тыс.10 месяцев назад
Power Query - Unstack Uneven Rows to Columns🍔
Power Query - Unstack Rows to Columns
Просмотров 71710 месяцев назад
Power Query - Unstack Rows to Columns
Power Query - Connecting and returning data from ChatGPT 🤖📞
Просмотров 91010 месяцев назад
Power Query - Connecting and returning data from ChatGPT 🤖📞
Python - Making ChatGPT API Call 📞🤖
Просмотров 36210 месяцев назад
Python - Making ChatGPT API Call 📞🤖
Power Query - Dynamically Expand Many Columns to Rows
Просмотров 1,3 тыс.11 месяцев назад
Power Query - Dynamically Expand Many Columns to Rows
PowerBI & DAX - Lost Customers (Absolute) 🕵️‍♂️👥❌
Просмотров 1,7 тыс.11 месяцев назад
PowerBI & DAX - Lost Customers (Absolute) 🕵️‍♂️👥❌
Power Query - Convert Column Groups into Rows 🧩🔄
Просмотров 1,4 тыс.11 месяцев назад
Power Query - Convert Column Groups into Rows 🧩🔄
Power Query - Dynamically Remove Junk Rows 🗑️🚫
Просмотров 2,4 тыс.Год назад
Power Query - Dynamically Remove Junk Rows 🗑️🚫

Комментарии

  • @IvanCortinas_ES
    @IvanCortinas_ES 10 часов назад

    Great video. Thank you!

  • @williamarthur4801
    @williamarthur4801 11 часов назад

    That was brilliant, you seem to have a knack for visualizing things, I had a go myself before watching, not as neat but; = Table.Group( Table.FromColumns( { List.Combine( Table.ToColumns( Source ) )} , {"A"} ), {"A"} , {{ "N", each [ rc = Table.RowCount(_), acount = List.Repeat( {rc} , rc ) ] [acount] }} ) Then expand ; Tablel.SelectRows, and use [ [column]] to just get the required column.

  • @PatrickYoung-zy5qc
    @PatrickYoung-zy5qc 19 часов назад

    BA Baracus!!!

  • @sduffy4317
    @sduffy4317 День назад

    Very helpful and informative, but difficult to follow with the double screen because I usually watch these on my phone. Appreciate your expertise, thank you.

  • @tonybatty504
    @tonybatty504 День назад

    Thanks James, not something I would use at the moment but who knows in the future🙂

  • @kebincui
    @kebincui День назад

    Excellent and creative as always. Thanks James 👍❤

  • @AbdulRahman-yp6oy
    @AbdulRahman-yp6oy День назад

    please make it more simple and understandable , I cant understand this 😔😔🥺🥺

  • @boissierepascal5755
    @boissierepascal5755 День назад

    I love it❤

  • @ahmed.sarhan84
    @ahmed.sarhan84 2 дня назад

    Hi @basensei8699 , Thanks for great video a small notice -) Think need to use Text.SplitAny instead, To catch all Keywords since some values aren't separated by space but "," so we can use Text.SplitAny(Outer[Pattern Sentence]," ,") Space and "," will be consdered, so will get all keywords at first step

  • @apellawitong
    @apellawitong 3 дня назад

    You are a genius.

  • @gFowmy
    @gFowmy 3 дня назад

    The POWR of RECORDS, Amazing! I learnt a new function List.Repeat. I mostly watch your to understand the problem and try myself then continue to watch how you tackle it, then learn something new always. Here is my solution (my 2 cents): let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content], threshhold = 120, t_group = Table.Group(Source, {"PortfolioCode"}, { {"Tbl", each let t = _, t_index = Table.AddIndexColumn( t , "Index", 0 , 1), min_no = List.Min(Table.SelectRows( t_index , each [Cumulative investment Amount] > threshhold )[Index]), t_newcol = Table.AddColumn( t_index , "Col", each if [Cumulative investment Amount] > threshhold then [Index] - min_no+1 else 0) in t_newcol } } ), t_removecol = Table.RemoveColumns( t_group , "PortfolioCode" ), t_expanded = Table.ExpandTableColumn(t_removecol, "Tbl",List.RemoveItems(Table.ColumnNames( t_removecol[Tbl]{0} ), {"Index"} ) ) in t_expanded

  • @odallamico
    @odallamico 6 дней назад

    Interesting Tip. Thank for sharing

  • @danielhervert3629
    @danielhervert3629 6 дней назад

    @basensei, do you have a course on M languange? I just found your channel, and you seem to be one the top creators in the subject.

  • @wissambishouty1383
    @wissambishouty1383 6 дней назад

    Thank you for the fruitful video but what happens if the first brokerfee exceeds 2000? i guess that you will have a group with one record that exceeds 2000

  • @jawwadsherwani5123
    @jawwadsherwani5123 6 дней назад

    Is there is any solution for dynamic total for your solution if someone close and load the data then apply filer static total remains un changed or apply any filter after this is the same case too

  • @Sumanth1601
    @Sumanth1601 7 дней назад

    Excellent content.. loved it.. A tip, the Excel.Workbook function has an additional parameter, by keying in "true" you can skip the promote headers step.

  • @Bhavik_Khatri
    @Bhavik_Khatri 7 дней назад

    Awesome Video

  • @FsoOmar
    @FsoOmar 9 дней назад

    WOW! Just mind blowing. Never knew that you could use Records instead of the let statement in that context. I remember you did a video before, where you did crazy transformations inside the nested tables using the let statement. Yes Records are better. Learned 2 new fns List.Repeat & List.PositionOf. Being the noob I am, I had to watch this amazing video a couple of times to grasp its real beauty.

  • @dougmphilly
    @dougmphilly 9 дней назад

    I love this but I am clueless how to use this

  • @excelangola2727
    @excelangola2727 10 дней назад

    Subscribed.... Awesome...

  • @rubenmunozverdu7528
    @rubenmunozverdu7528 12 дней назад

    Thank you, sir! All other videos I saw (not that many, really) about this 5th parameter comparer used generic x and y and didn't specify, so one never knows if it's current and next or previous and current... Also, everyone but you grouped by a single column, so I wasn't sure if that was the only option!

  • @iraiseyouone
    @iraiseyouone 13 дней назад

    I'm new to PQE. Hope to see a video on returning the 2nd to last, 3rd to last... record.

  • @kebincui
    @kebincui 13 дней назад

    Awesome as always. Very creative. Thanks James and lookforward more videos from you. 👍👍

  • @Bhaskar_Joshi_there
    @Bhaskar_Joshi_there 13 дней назад

    I love the way you teach with such passion and enthusiasm!

  • @zbatevp-vlogs610
    @zbatevp-vlogs610 14 дней назад

    Love the energy, i think we are brothers hahaha!!!!

  • @boissierepascal5755
    @boissierepascal5755 14 дней назад

    Waouh ! Very high level 😍

  • @roywilson9580
    @roywilson9580 14 дней назад

    Nice use of the Grouping function. Can see a lot of uses for that trick.

  • @DinoAMAntunes
    @DinoAMAntunes 14 дней назад

    kkkkk always the best introduction

  • @babbalena2326
    @babbalena2326 14 дней назад

    Lovely 💪👍

  • @themolestones
    @themolestones 14 дней назад

    Thanks

  • @g-forcetech3573
    @g-forcetech3573 14 дней назад

    Very helpful! Thank you! 👍

  • @josephleslie007
    @josephleslie007 16 дней назад

    Bro, you are genious 😊

  • @mdhruv1
    @mdhruv1 17 дней назад

    I have a situation where I have a parent child relationship in a multiple rows. I need to do a market basket transform where I need to pivot the parent child into one row to see what combinations are selling . Any guidance how could I do that here

  • @joaovasconcelos5360
    @joaovasconcelos5360 20 дней назад

    Amazing, thank you!

  • @danieviljoen5911
    @danieviljoen5911 22 дня назад

    Hi, how do we get the list of the networking days?

  • @JallaRak
    @JallaRak 23 дня назад

    Superb

  • @JallaRak
    @JallaRak 24 дня назад

    Excellent

  • @JallaRak
    @JallaRak 24 дня назад

    Superb

  • @trestenpool9045
    @trestenpool9045 24 дня назад

    Great Stuff mate

  • @Bhaskar_Joshi_there
    @Bhaskar_Joshi_there 24 дня назад

    You're always working with Share Market data, so it seems like you have an interest in investing. I'm curious... do you consider yourself a good investor? Have you made it to millionaire status?

    • @basensei8699
      @basensei8699 24 дня назад

      ye man i love the investing landscape it's my day job. i'm fascinated by markets demand and supply and how price reflects what people perceive to be valuable.

  • @kebincui
    @kebincui 24 дня назад

    Excelletn as always. Thanks James 👍👍

  • @arnaudallard3663
    @arnaudallard3663 24 дня назад

    Brilliant as always 👍

  • @txreal2
    @txreal2 25 дней назад

    Can’t get enough from BA Sensei. Thanks

    • @basensei8699
      @basensei8699 24 дня назад

      glorious it's a great pleasure!

  • @themolestones
    @themolestones 25 дней назад

    brilliant, thanks

  • @mnowako
    @mnowako 25 дней назад

    Amazing! Thank you!

  • @alejguz1552
    @alejguz1552 26 дней назад

    Pretty Good

  • @FsoOmar
    @FsoOmar 26 дней назад

    @3:50 using 2 each statements, the 1st one for the outer (nested) table, and the other for the inner table. The visuals made it so easy to comprehend. The real magic began unfolding at Step6 @4:27 Transform nested table! Your full explanation and step-by-step gradual variable usage made it so clear and amazing. I can't thank you enough! You are the #1 MVP of PQ in RUclips. I swear to Allah. :)

  • @FsoOmar
    @FsoOmar 26 дней назад

    Thanks for that elegant tip of using Folder.Files @1:45. @2:55 I got confused, you used {"Content", Excel.Workbook(_)}; But in video (PQ - Combine Files with inconsistent column names) @1:33 you used {"Content", Excel.Workbook}. Could you please explain when to use (or don't use) the underscore with Excel.Workbook Function? (Thank you in advance.) (I haven't watched this vid till the end yet!)

  • @FsoOmar
    @FsoOmar 26 дней назад

    @ 2:22 = Using Table.ColumnNames(DoubleBarrelHeader) as the 2nd argument (a list) for the Table.FillDown function! That's a new one to me. Table.To(From)Columns functions! Amazing video, indeed. THANK YOU James.

  • @guanhor1999
    @guanhor1999 26 дней назад

    This is great stuff, thx a lot 🙏