Create Buckets or Groups with Power Query in Power BI

Sdílet
Vložit
  • čas přidán 7. 07. 2024
  • There are different ways you can create buckets or groups for your data in Power BI. Patrick shows you how this can be done with Power Query along with a few other options.
    📢 Become a member: guyinacu.be/membership
    *******************
    Want to take your Power BI skills to the next level? We have training courses available to help you with your journey.
    🎓 Guy in a Cube courses: guyinacu.be/courses
    *******************
    LET'S CONNECT!
    *******************
    -- / guyinacube
    -- / awsaxton
    -- / patrickdba
    -- / guyinacube
    -- / guyinacube
    -- guyinacube.com
    **Gear**
    🛠 Check out my Tools page - guyinacube.com/tools/
    #PowerBI #PowerQuery #GuyInACube
  • Věda a technologie

Komentáře • 103

  • @BIGorilla
    @BIGorilla Před 3 lety +6

    Awesome. I know the 'column from example' feature is powerful and used it in quite a few cases. This however is one of those cases that you hear of and think 'hey, that's awesome'. Not the first thing one would expect. Yet one to remember! Thanks, Rick

  • @veronicamuoio1455
    @veronicamuoio1455 Před 2 lety +1

    Extremely useful! You make the best PBI videos! Thanks for all you do!

  • @maharani1988
    @maharani1988 Před 4 měsíci +1

    This is sooo briliantt! thank you!

  • @ShovanMandal
    @ShovanMandal Před 3 lety +6

    This is awesome! did not know we can do it like this in power query!

  • @rickmarciniak2985
    @rickmarciniak2985 Před 3 lety

    thank you for showing multiple ways to accomplish the same thing. have a great weekend!

  • @vigneshvarmohanviky
    @vigneshvarmohanviky Před 3 lety

    Waited for this tableau function for a while.Thanks Patrick

  • @McFatts
    @McFatts Před 2 lety

    Making Bi simple, thank you so much for all your vid's, they're so incredibly helpful!

  • @dhamilton63
    @dhamilton63 Před 2 lety

    This was the best video I watched today. That's saying something. Thank you for this much needed breakdown!!

  • @Len-xj2sy
    @Len-xj2sy Před 6 měsíci

    boy do i love this channel i have found everything i have ever needed looking. Anytime its something i havent done before im like guy in the cube probably has a video for it and sure enough

  • @ScottPerley
    @ScottPerley Před rokem +1

    That groups from example was a game changer for me! Thank you!

  • @dataveld8736
    @dataveld8736 Před 3 lety +6

    Groups/Bins created in the UI end up as calculated columns in the model too and should come with the same caveats mentioned for the DAX method

  • @luizfilipe2278
    @luizfilipe2278 Před 3 lety +2

    Beautiful! Very easy to do with Power QUERY

  • @charlineverona
    @charlineverona Před rokem

    This was extremely helpful ! Thank you

  • @yukithejapanese
    @yukithejapanese Před 3 lety

    Didn't know the one in Power Query. A Great tip!

  • @user-rc2ip1zb5d
    @user-rc2ip1zb5d Před 9 měsíci

    Thank you so much for the instruction!

  • @amudhachinnaswamy
    @amudhachinnaswamy Před rokem

    Great tutorials! thanks Patrick

  • @matthiask4602
    @matthiask4602 Před 3 lety

    marvelous! And exactly the right Shirt to wear.

  • @britishenglishwithmaria

    You're amazing!!! working on a personal project for job apps and your video is a game changer for me so thank you.

  • @jamesbowman7599
    @jamesbowman7599 Před 3 lety

    Thanks Patrick, great overview. Creating Clusters would also be another one.

  • @asawmu
    @asawmu Před 3 lety

    I usted the condicional Columba option to group and name the buckets, but this option is effortless thanks for helping me be efficient :)

  • @roronoazoro-518
    @roronoazoro-518 Před 2 lety

    I love you man! My project is sorted now

  • @lopypop
    @lopypop Před 3 lety

    Damn Patrick, you did it again! You should have seen my face when you entered that first row in PQ lol

  • @mercadonheil
    @mercadonheil Před 3 lety

    Thank you! :) You the best!

  • @subhamsaha2235
    @subhamsaha2235 Před 2 lety

    Last one was really amazing

  • @fidzanikilibe9066
    @fidzanikilibe9066 Před 3 lety +2

    WOW i didn't know you could do that in PQ, Thanks Patrick its Bananas :)

  • @safifaruqi
    @safifaruqi Před 2 lety

    Very powerful, although like dataveld mentioned, caveats remain the same as the switch statement. Ideal scenario from the model performance standpoint is thtat you create buckets at the source.

  • @jesshudes9902
    @jesshudes9902 Před rokem

    this was amazing!

  • @fishijoe
    @fishijoe Před 3 lety +1

    absolute bananas!

  • @davidcousins8407
    @davidcousins8407 Před 3 lety

    This is fab.
    The by example functionality is indistinguishable from magic.

  • @christinagarperio5687
    @christinagarperio5687 Před 3 lety

    This is awesome!

  • @sabarashid1513
    @sabarashid1513 Před 3 lety

    Just one word fantastic!

  • @mariabeatrizugalde4163

    Thank you, that really helped me :)

  • @shashipaul6279
    @shashipaul6279 Před 2 lety

    I know about group by option in power query .... Good to know this ..

  • @SarahBlackburn-qj3vk
    @SarahBlackburn-qj3vk Před 2 měsíci

    Great energy

  • @martmoyo
    @martmoyo Před 2 lety +1

    Awesome! Is there a way of adding a bin as a filter which can link to different tables and work across the tables regardless of which value you link it to?

  • @justmechloe.
    @justmechloe. Před 2 lety

    This is bananas!

  • @katharinakleist1432
    @katharinakleist1432 Před 2 lety

    Great video, thank you! One question, how come the bar graph based on age groups doesn't adjust when I use slicers/ filters on the same page? Am I missing sth?

  • @johnzafe
    @johnzafe Před 2 lety

    You are a life saver

  • @user-pq6zc2ye9e
    @user-pq6zc2ye9e Před rokem

    Thanks guys

  • @KunalRout
    @KunalRout Před 3 lety +1

    Grouping in Power Query powerup the base table and removes ambiguity in data present in the column with specific set of values. Grouping solves a lot of problems, be it Numeric or Non-Numeric data type and null values problems too.

  • @kiravonehren4278
    @kiravonehren4278 Před rokem

    Hello Patric, is there also a way to create groups that are overlapping? I have a column with concatenated Channels (string) and would like to build groups based on if a channel is in my string. There can be strings like "Display, SEA" that would belong to the group Display AND to the group SEA. The aim is to see which channel participates in how many Customer Journeys or filter the Journeys based on Channel participation. I originally had each Channel in a different column per Transaction ID ( row). Since Dax only filters by Columns and not by criteria contained in a row I thought I could build a filter by concatenating all Channels of each Transaction ID in one colum (string). Hope this makes sense! Help is much appreciated!

  • @melissajones8329
    @melissajones8329 Před 2 lety

    Brilliant!

  • @dariuszspiewak5624
    @dariuszspiewak5624 Před 3 lety +2

    I'm just wondering... If these things are in there in PQ (and in other languages/products), how are people to get to know them? Are these "tricks" described somewhere in some kind of documentation? Or do we always have to "accidentally discover such things"?

  • @sirajmohammedali2790
    @sirajmohammedali2790 Před 3 lety

    You are awesome.

  • @sylvesterlall5999
    @sylvesterlall5999 Před 2 lety

    This is amazing! Thanks so much Patrick!
    The problem I'm encountering though is that I am unable to view more than the 1st 999 rows that show up in power query and therefore I'm only able to define one bin/group (I can't scroll any lower than the 999th row, and they all have just one bin). How I create the 2nd,3rd,4th bin.....if the remaining values are in rows beyond the extent of my scroll capability (999 rows)
    I'd appreciate any tips or tricks that come my way.
    Sure appreciate your time!

  • @MohammadAshooryan
    @MohammadAshooryan Před 3 lety

    It is wonderful.

  • @albertovelluti9168
    @albertovelluti9168 Před 2 lety

    nice video. any idea how to sort the group column made using PowerBI feature without using specific grouping labels (eg 01 xxx, 02 yyy, 03 ppp, ....)

  • @user-jm5fw7cu3l
    @user-jm5fw7cu3l Před 11 měsíci

    Hi, great video. Is there a way of making buckets based on the final outcome of a measure.

  • @lindalim9583
    @lindalim9583 Před měsícem

    mindblowing

  • @mariapradeepm
    @mariapradeepm Před 2 měsíci

    Thank you. How do we create dynamic bucket? For an example, let’s say we have created only till 80-100 but we need to create 100-120, 121-140. Is it possible based on the age bucketing can be dynamic?

  • @visalatchy_IT
    @visalatchy_IT Před 2 lety

    =') thanks! this helped me alot.

  • @user-wt2zg9hd7v
    @user-wt2zg9hd7v Před 10 měsíci

    Thank you! In your DAX solution, if I have filters applied in the dashboard, they won't affect this column. How can I address this issue?

  • @sweedish84
    @sweedish84 Před rokem

    w00t?! Nice, thanks!

  • @gregg1439
    @gregg1439 Před rokem

    Hi. Is it possible to bind BIN (or ABC/Pareto) dimentions to Parameters exposed to User. In my report there is slicer in which User can change within certain range A/B border value. With Calculated Column it does not work - the formula sees Max of the Range not selected Value.

  • @matthewthiele9646
    @matthewthiele9646 Před 3 lety

    Along the same lines, is it possible to create sets in Power BI? Would end users be able to create their own groups?

  • @hiolka
    @hiolka Před 10 měsíci

    Is it possible to create the groups based on MEASURES (e.g. price ranges, when calculated price is a DAX measure, not a calculated colum)?

  • @NazomSparkle
    @NazomSparkle Před 3 lety

    Does it group words into buckets or just numbers/Ranges..

  • @infaziqbal44
    @infaziqbal44 Před 11 měsíci

    is this feature available in power query excel?

  • @sandhyasoman3269
    @sandhyasoman3269 Před 3 lety

    Its really Bananas!!! Good Info!!!

  • @gagansingh3481
    @gagansingh3481 Před 2 lety

    Hi awesome video could you please provide sample file to practice the awesome features

  • @VladMZ
    @VladMZ Před 3 lety +3

    I usually go the proper way and create a dimension table in PQ, with a surrogate key. Small impact to fact tables, but full flexibility in the visuals in regards to Show Items with no values. If you do it how Patrick describes, you'll be stuck with only groups that ARE PRESENT in your fact table, i.e. no ability to display empty groups.

    • @dvonpluto
      @dvonpluto Před 3 lety

      Can you provide an example? Still using age,I do not want to have a fact table with all ages but just min and max to use in visuals. I do not want to use calculated columns to blow up my model. Thanks

    • @VladMZ
      @VladMZ Před 3 lety

      @@dvonpluto Create a table of age ranges with names, min and max. Then in Power Query, in your fact table after you have a step to calculate the age, add a custom column that returns you the row from the range table, using this code: let currentDays = [age] in Table.SelectRows(LKP_AgingBuckets, each [RangeStart] = currentDays).
      After that just expand that new column to extract the ID. Voila, your fact table will only increase by one integer column, little to no change to the model.

  • @frankwright6227
    @frankwright6227 Před 2 lety

    I've used buckets/bins for my dates however when I refresh the data they don't update to include this new information. Does anyone know where I could be going wrong?

  • @rdaleprice7184
    @rdaleprice7184 Před rokem

    How do we make the Groups sort in the correct order instead of the default order? Normally there is an index column to sort by.

  • @vamsig4450
    @vamsig4450 Před 7 měsíci

    Is there any way to create groups with different text values ???

  • @veronicauzomaka6433
    @veronicauzomaka6433 Před rokem

    Pls I tried the column for examples; age group solution but it didn't work and I don't know why. Pls I need your advice. Thanks.

  • @DarkSideOfTheUke
    @DarkSideOfTheUke Před rokem

    I did this but I'm not seeing the groups, I'm getting a Count! I've tried changing the aggregation to various things but nothing gives me a list of my groups. What am I doing wrong?

  • @visheshjjain
    @visheshjjain Před 2 lety

    It might be overkill, but do you think a dimension table for age and a realtionship with the fact table, will make the report faster?
    Your thoughts?

  • @joshblackman2380
    @joshblackman2380 Před rokem

    What happened to the Microsoft Histogram visual? Trying to build a report but it is not longer available for download. This is a key visual, why is it gone? Is it coming back? Alternatives?

  • @dougkimzey4518
    @dougkimzey4518 Před 2 lety +2

    How would you set the grouping column(s) used by the aggregates in visualizations?

  • @david.miskick
    @david.miskick Před 3 lety

    What about Conditional Column in PQ?

  • @mahmoudmusah5963
    @mahmoudmusah5963 Před 9 měsíci

    How do i do this in the online version of Power BI?

  • @Markizoniusz
    @Markizoniusz Před 3 lety

    Damnnn man. And I was using DAX all this time 😳

  • @Wildkomments
    @Wildkomments Před 2 lety

    How do you do this with revenue? Like quartiles. Also, Im not seeing "Add by example etc" old version?

  • @platformengineering..671
    @platformengineering..671 Před 3 lety +1

    Hi Patrick, how can create bucket in power query with with difference is not same such as0- 5 ,6-15,15- 25,25- 40

    • @cristianprifti
      @cristianprifti Před 3 lety

      You can try it first exactly how Patrick showed it and continue typing some examples, if this does not work you can still use a conditional column or a custom column with a nested if

    • @pabeader1941
      @pabeader1941 Před 3 lety +1

      @@cristianprifti Or you can use my example and just make the min, max whatever you like.

  • @instabilitas
    @instabilitas Před 2 lety

    Can you rename the bins/groups in Power Query e.g. 0 - 1000000 translates to 0 -1M, 1000001 - 2000000 translates to 1M -2M,

  • @Beejay0072
    @Beejay0072 Před rokem

    Hi, I have a little challenge. I need to group text values on power query. Say for instance, I want to group status Managers and Assist Managers into management level, Director into Executive level and so on. I want it done on power query. Thanks

    • @mosuna4171
      @mosuna4171 Před 10 měsíci

      Hi, i need to do something like this. Were you able to do this?

  • @dmstar101
    @dmstar101 Před rokem

    Hey Guys, I have just found you and loving the vids. I have a unique challenge that is quite complicated. Can I send an email with an explanation and the file for you to review? thanks

  • @srinug85
    @srinug85 Před 3 lety

    Hi Patrick/Adam - can you create a video how to create checkbox table to filter selected data from table

    • @pabeader1941
      @pabeader1941 Před 3 lety

      That is a built in function?? Or am I misunderstanding you? It's a slicer. Checkbox is usually one of the options...

    • @srinug85
      @srinug85 Před 3 lety

      @@pabeader1941 actually I have a requirement like need to filter from table like if I selected 3 users in the table it should filter that 3 users data in remaining visuals of the page

    • @pabeader1941
      @pabeader1941 Před 3 lety

      @@srinug85 Isn't that a slicer? Just put the users in a slicer and then you can select as you want. Or just select from the filter pane.

  • @Sandroider
    @Sandroider Před rokem

    using live connection these options are grayed out, what next?

  • @arameshkumar5072
    @arameshkumar5072 Před 3 lety

    Please provide , .pbix file
    ❤️
    Practise purpose 🙏

  • @houdamesmoudi3685
    @houdamesmoudi3685 Před 9 měsíci

    I love u ❤❤❤❤❤

  • @alanislas5780
    @alanislas5780 Před 6 měsíci

    just by chance, any one knows how to do this with Looker?

  • @Sanj803
    @Sanj803 Před 3 lety +1

    That's BANANAS ..... 🍌🍌

  • @dollysiharath4205
    @dollysiharath4205 Před rokem

    Just one suggestion, if you would like to teach someone new to DAX please slow down on your demo.

  • @koutlaw30
    @koutlaw30 Před 3 lety

    Bananas

  • @arameshkumar5072
    @arameshkumar5072 Před 3 lety

    I like 🍌🍌🍌🍌💞 Banana ❤️

  • @user-mg6ge7ck4c
    @user-mg6ge7ck4c Před 4 měsíci

    None of this work for mac users

  • @Jacteaux
    @Jacteaux Před 2 lety

    How about just showing us how instead of talking about all the other ways to do it