Power BI Group By - Using Query Editor, DAX, and Some Magic!✨

Sdílet
Vložit
  • čas přidán 4. 08. 2024
  • We’ll show you how you can Group By data in Power BI using 3 easy ways.
    👉 Download Power BI File in Video at web.learnpowerbi.com/download/
    We’d cover the 3 different ways you can use Group By to summarize your data:
    • Group By Using Query Editor
    • Group By Using DAX SUMMARIZECOLUMNS
    • Group By Using some Power BI Magic 😊
    We’d compare the 3 different ways and see which one works the best.
    We’d also be sharing a Bonus Tip for using Group By in Query Editor.
    ➔ Links mentioned in the Video
    • Power BI Tutorial for Beginners
    • Power BI Tutorial for ...
    ================================
    👉 FREE Power BI Step-by-Step Tutorial web.learnpowerbi.com/tutorial
    👉 Download Accompanying PBIX Files for Video at web.learnpowerbi.com/download/
    ✅ Subscribe to always get my latest videos: czcams.com/users/powerbipro?su...
    🔴 Join me Fridays for Talk Power BI LIVE czcams.com/users/PowerBIProlive
    👪 Join our Talk Power BI Insider's Club www.TalkPowerBI.com
    ===Most Popular Playlists===
    • Power BI Beginner Tutorial: goo.gl/KRRkPG
    • Ultimate Calendar: goo.gl/pyki4K
    • Power BI Data Modeling and more: goo.gl/WNtJFv
    ⚡Power On!⚡
    -Avi Singh
    www.LearnPowerBI.com
    www.AviSing.com
    #PowerBI #PowerBIHowTo #PowerBIPro

Komentáře • 102

  • @zibroyd
    @zibroyd Před 5 lety +10

    Great Overview, Avi! One tip about "count rows" for checking yourself. You dont need to use "Group by" for that. There is the whole button for that - "Count Rows", under buttons Transpose and Reverse Rows.

  • @mattmiller07
    @mattmiller07 Před 5 lety +2

    Avi great job. I love the way you show the different ways to arrive at the same solution. Super helpful.

  • @dobradados9433
    @dobradados9433 Před 5 lety +1

    Thanks for the explanation Avi, this magic in the end is what the databenders have to master!

  • @odi3
    @odi3 Před 3 lety

    Great Video Avi! Offering comparison really helps understand the differences

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

    Many thanks on the video. Was getting all tangled up with IF() Calculate() and summarize ()

  • @mukisas9599
    @mukisas9599 Před 2 lety

    This is so helpful, thank you. I was struggling with the sum and grouby but I have managed to get through after watching this video

  • @lon03161
    @lon03161 Před 4 lety

    I don't usually comment but today I will. First off, I love your book and have used it for the past few year. Secondly, this video with the Groupby and Merge query was the solution I needed and spent all day on useless websites and videos. Your training was perfect, thank you!

    • @PowerBIPro
      @PowerBIPro  Před 4 lety

      Hi Lon Hause,
      Thanks for sharing. Glad this video resonated with you.
      ⚡Power On!⚡ / Avi
      ★ Get Your Questions Answered LIVE on TalkPowerBI Fridays www.learnpowerbi.com/talkpowerbi ★

  • @christopherhastings2142

    Great overview!

  • @tacijjola
    @tacijjola Před rokem +1

    Amazing! Thank you Avi. Great tutorial.

  • @philiposebhavna
    @philiposebhavna Před 5 lety

    Hi Avi Great Stuff, I too keep it with relationships most of the time, I works naturally well !

  • @BadBalbooa77
    @BadBalbooa77 Před 2 lety

    I have seen few Power Bi tutorials but this one is most useful for me.

  • @mkparker99
    @mkparker99 Před 4 lety

    Great overview! How can you provide a numerical grouping. I want to group AR by days past invoice date or due date. I would imagine this would entail defining a measure, but that's as far as i can get.

  • @yuvarajin
    @yuvarajin Před 2 lety

    Thanks for explaining the same feature in multiple ways.

  • @abeerqassim5541
    @abeerqassim5541 Před 4 lety

    I enjoyed my first power bi lesson, that's awesome!!

    • @PowerBIPro
      @PowerBIPro  Před 4 lety

      Hi Abeer Qassim.
      Great to hear that, Abeer! Keep up the passion in learning Power BI!
      ⚡Power On!⚡ / Avi
      ★ Power BI Complete Tutorial: czcams.com/video/AGrl-H87pRU/video.html ★
      ★ Subscribe and Join me LIVE for Talk Power BI Fridays czcams.com/users/PowerBIProlive ★

  • @dmatthieu2
    @dmatthieu2 Před 5 lety +2

    I'm a Tableau guy, and starting out in PBI and this is awesome, and so easy

    • @PowerBIPro
      @PowerBIPro  Před 5 lety

      Hi dmatthieu2.
      Glad that this video has helped you out in using Power BI. If you get stuck, do join me LIVE every Friday - am Pacific on my #TalkPowerBI show.
      ⚡Power On!⚡ / Avi
      ★ Power BI Complete Tutorial: czcams.com/video/AGrl-H87pRU/video.html ★
      ★ Subscribe and Join me LIVE for Talk Power BI Fridays czcams.com/users/PowerBIProlive ★

  • @benoitf.larouche9623
    @benoitf.larouche9623 Před 4 lety

    Great tips Avi. I really like your PowerBI energy!

    • @PowerBIPro
      @PowerBIPro  Před 4 lety

      Hi Benoît F. Larouche,
      I really appreciate that, thank you!
      ⚡Power On!⚡ / Avi
      ★ Get Your Questions Answered LIVE on TalkPowerBI Fridays www.learnpowerbi.com/talkpowerbi ★

  • @AmWingHk1201
    @AmWingHk1201 Před 3 lety

    Thanks for the tutorial!I just got stuck by how to do summarization base on years, good tricks!

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

    Thanks Avi. This is what I'm working on at work. The difference matters.

  • @johndalevacaro5687
    @johndalevacaro5687 Před rokem +1

    this is amazing! thank you sir! great difference

  • @happyheart9431
    @happyheart9431 Před 4 lety

    Thank you you save my day

  • @sheikhaatir7424
    @sheikhaatir7424 Před 3 lety

    Hi Avi, i want to know if grouping is the proper way or should i use some other function for my scenario, i have numerical data in 1 column and every number represents a different meaning.. like 4 = Serviced and 8,9,10 means cancel so what should i do..please guide me ?

  • @damarmuhammet
    @damarmuhammet Před 3 lety

    i am going on learning power i with you! thank you, thank you and thank you!

  • @mandarvv
    @mandarvv Před 4 lety

    Hi Avi.. I follow your CZcams Channel a lot and love the stuff you show... I was trying to Do a group by and add a column to my existing table. In the query editor it did not show any syntax error and I know for that there is no syntax error. However, After Applying it; it gave an error. Can you please throw a light on this behaviour?
    Thank you!
    Mandar

  • @davidh5573
    @davidh5573 Před 3 lety

    I would like to know how what in the relationship makes those tables accessable. I am having trouble understanding how cardinalities effect data visuals.

  • @dmor3359
    @dmor3359 Před 4 lety

    Great examples and video editing.

    • @PowerBIPro
      @PowerBIPro  Před 4 lety

      Hi D Mor.
      Thanks
      ⚡Power On!⚡ / Avi
      ★ Power BI Complete Tutorial: czcams.com/video/AGrl-H87pRU/video.html ★
      ★ Subscribe and Join me LIVE for Talk Power BI Fridays czcams.com/users/PowerBIProlive ★

  • @transontung90
    @transontung90 Před 5 lety

    haha, your email is really well written about excel , shout out to that

  • @mattgeissman9475
    @mattgeissman9475 Před 5 lety

    Hey! I'm unable to load anything in the query editor due to a DataSource.Error. Any suggestions? It's saying it could not find a part of the path.

  • @ajitatiwary9434
    @ajitatiwary9434 Před 4 lety

    Hello..Thanks for this awesome tutorial. I am using Group by-Count Rows to find how many times a date has appeared in the row. Can we do it via DAX? Please help..Thanks in Advance..

  • @johnraynavales2319
    @johnraynavales2319 Před 4 lety

    Amazing.!

  • @sapasapasa4914
    @sapasapasa4914 Před 4 lety

    I would use both DAX and Magic together when I want to see both static and responsive data together for comparison...

  • @saviomiranda4307
    @saviomiranda4307 Před 3 lety

    Hi Avi, how do you do a look up based on multiple colums in DAX

  • @junaidbashir2429
    @junaidbashir2429 Před 5 lety +1

    Great tips to learn though.

    • @PowerBIPro
      @PowerBIPro  Před 5 lety

      Hi junaid bashir.
      Thanks for the positive response.
      ⚡Power On!⚡ / Avi
      ★ Power BI Complete Tutorial: czcams.com/video/AGrl-H87pRU/video.html ★
      ★ Subscribe and Join me LIVE for Talk Power BI Fridays czcams.com/users/PowerBIProlive ★

  • @opentube5962
    @opentube5962 Před 4 lety

    Thank you, Avi!
    Currently, am working on power bi report server and I couldn't retrieve the latest value based on the date. Would you suggest to me some tip, please?

  • @yughendermeda6231
    @yughendermeda6231 Před 5 lety

    iam unable to open the files(downloaded) in query editor.can any one tell me about this issue

  • @willyalves
    @willyalves Před 3 lety

    thanks for recording these videos...

    • @PowerBIPro
      @PowerBIPro  Před 3 lety

      Thanks so much for your kind words. This really means a lot to me. Power On! / Team Avi

  • @techchamp4508
    @techchamp4508 Před 4 lety

    do you have course on Custom data connectors for power BI?

  • @BIprofessional80
    @BIprofessional80 Před 4 lety

    power BI mai right side mai Groupby likha hua hai...can we use that directly instead of right clicking the reference??

  • @stevennye5075
    @stevennye5075 Před 3 lety

    nice explanation

  • @walidkhlil2872
    @walidkhlil2872 Před 4 lety

    THANSK

    • @PowerBIPro
      @PowerBIPro  Před 4 lety

      Hi walid Khlil,
      You're welcome.
      ⚡Power On!⚡ / Avi
      ★ Get Your Questions Answered LIVE on TalkPowerBI Fridays www.learnpowerbi.com/talkpowerbi ★

  • @Unjc3f
    @Unjc3f Před 2 lety

    Thank you avi

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

    Life Saver

    • @PowerBIPro
      @PowerBIPro  Před 2 lety

      Thank you. Am glad you found this useful. if you have any questions you can get them answered in our LIVE TalkPowerBI Q&A show.
      👉 www.TalkPowerBI.com Or Join our LearnPowerBI Private Community
      👉 web.learnpowerbi.com/waitlist-invite/
      ^RM

  • @arghyadutta9091
    @arghyadutta9091 Před rokem

    Great😊

  • @nicksonlukalaga4031
    @nicksonlukalaga4031 Před 4 lety

    I have an measure that is an if function based on a specified count. I would like to group those counts based on that measure. I.e if count is 1 then m, if count is 2 then m+1 else m+3. So I would like to know how many of m, m+1... are there

  • @ZahidShaikh-jo3mh
    @ZahidShaikh-jo3mh Před 4 lety

    So i downloaded the Power Bi but I am getting error that source file is missing. So is there different download link to get source excel files ?

  • @VidharthiRanjan
    @VidharthiRanjan Před 3 lety

    I have 8 QTR data in data table with QTR 3Q18 to 2Q20 ...and also with value column I want when I select for example 2Q20 in slicer then it should be shown last 5 QTR data on line graph ....what approach should I follow ?

  • @naveenracharla8026
    @naveenracharla8026 Před 5 lety

    But I want to do group by with filter, how this we can achieve, means for every one month what is the last 3 month sales, where the filter will be last 3 month and sum of sales

  • @AlessandroSilva-dl3vq
    @AlessandroSilva-dl3vq Před 5 lety

    Good Morning!
    Could you help me with any tips on how to make a query that shows me which customers did not buy on a certain date with a certain product and that shows these customers on a map with location.
    Ex: Would it be a fVendas Bank?
    A customer bank
    A Calendar Table

  • @beckywang5699
    @beckywang5699 Před 3 lety

    great video!

    • @PowerBIPro
      @PowerBIPro  Před 3 lety

      Thanks so much for your kind words. This really means a lot to me. Power On! / Team Avi

  • @mjpurush
    @mjpurush Před 3 lety

    Hi Avi, I have to select max value , per day, per object and select all rows how to do that

  • @cuteakshita5312
    @cuteakshita5312 Před 4 lety

    how can i use ABS function in edit query?

  • @swathih1
    @swathih1 Před 4 lety

    How do I create a sub groups? I grouped the categories for example: infrastructure, oil etc by the company code. Now I want to break it down one component let’s say, oil by location so it shows Oil-Houston and oil- non-Hou but I want it shown all under the same column where it’s already grouped by the company code. Sorry it sounds complicated.

  • @rajeshkhudbhaiye6074
    @rajeshkhudbhaiye6074 Před 3 lety

    Please post video on user based restrictions to different reports within same app or workspace

  • @thepoojak1
    @thepoojak1 Před 4 lety

    May I know how to consolidate multiple data sheets.?

  • @sriharsha087
    @sriharsha087 Před 4 lety

    Hi, i have three tables and all the tables have relationship between them . how can i group by fields from different tables .. using DAX .

    • @Chris_87BC
      @Chris_87BC Před 4 lety

      summarize('table1'[columnA], 'table2'[columnB], 'table3'[columnC], "charges", [my charge measure])

  • @arieltobon2427
    @arieltobon2427 Před rokem

    Why when I open the file and then click on transform data (edit queries) doesnt work.. What do I have to do so I am able to use the file

  • @SriramM289
    @SriramM289 Před 3 lety

    Hi may I know the screen recording software that you use?

    • @PowerBIPro
      @PowerBIPro  Před 3 lety

      Hey Sriram,
      I generally use Snagit Studio. Microsoft MVPs get it for free :-)
      Power On! . Avi

  • @ansumansingh7530
    @ansumansingh7530 Před 2 lety

    「あなたのコンテンツはとても感動的です」、

    • @PowerBIPro
      @PowerBIPro  Před 2 lety

      Thank you for your kind words.
      If you have any additional questions or need further help you can also join our live events:
      👉 www.TalkPowerBI.com
      --Or--
      👉 Consider joining our LearnPowerBI Training Program www.learnpowerbi.com/training
      Power On! / Avi

  • @lemianelson2012
    @lemianelson2012 Před 3 lety

    Avi is Great.

    • @PowerBIPro
      @PowerBIPro  Před 3 lety

      Hi Nelson Tanyi, Thanks so much for being a subscriber🙏🏻
      and thanks for the compliment.
      ⚡Power On!⚡ / Avi
      ★ Power BI Complete Tutorial: czcams.com/video/AGrl-H87pRU/video.html ★
      ★ Get Your Questions Answered LIVE on TalkPowerBI Fridays www.learnpowerbi.com/talk ★

  • @moayadfelimban8207
    @moayadfelimban8207 Před 5 lety

    I have a question. I have data uploaded to Power BI. For example, I have 30 providers and each has a paid amount. How can I the following in a slicer: Top 1-10
    Top 11-20
    Top 21-30
    Please let me know.

    • @PowerBIPro
      @PowerBIPro  Před 5 lety

      Hi Moayad Felimban.
      I would add a Column in Query Editor with their Rank and another Column to show the rank as 1-10, 10-20 etc.
      That's one way to do it. There might be others. If you're still stuck ask me in my next TalkPowerBI. I go live each Friday. Link below.
      ⚡Power On!⚡ / Avi
      ★ Power BI Complete Tutorial: czcams.com/video/AGrl-H87pRU/video.html ★
      ★ Subscribe and Join me LIVE for Talk Power BI Fridays czcams.com/users/PowerBIProlive ★

    • @younissyed9259
      @younissyed9259 Před 4 lety

      Hi Moayad,
      You can do either way by using Query editor (conditional Column),Dax if Statments...

  • @jonathans1637
    @jonathans1637 Před 3 lety

    I don't have the Reference option when I right-click on the Budget table. My version of Power BI desktop is Version: 2.84.981.0 64-bit (August 2020)

  • @ayushimehta143
    @ayushimehta143 Před 2 lety

    How would you create categories for a column with more than 300-400 records? How would you find the few 3-4 records in the big pool to create a single group? Please help.

    • @PowerBIPro
      @PowerBIPro  Před 2 lety

      Hey Ayushi, you should create a mapping in Excel and load it into Power BI.
      If you have any additional questions or need further help you can also join our live events:
      👉 www.TalkPowerBI.com
      Power On! / Avi

  • @varunjain3829
    @varunjain3829 Před 4 lety

    Can you tell me how to use PRODUCT & PRODUCTX DAX?

    • @PowerBIPro
      @PowerBIPro  Před 4 lety

      Hi Varun, PRODUCT and PRODUCTX are logically similar to SUM & SUMX (of course with the difference being one multiplies the values, whereas the other one adds them). Having said that I have not myself used PRODUCT/PRODUCTX. I understand they are used for calculating compoud interest and other such scenarios.
      If you are stuck with a specific problem, best I can recommend is, pre-submit your question and join me in my next LIVE TalkPowerBI Q&A show and maybe I can help you there.
      👉 www.learnpowerbi.com/talkpowerbi#qa
      ⚡Power On!⚡ / Avi
      ★ Power BI Complete Tutorial: czcams.com/video/AGrl-H87pRU/video.html ★
      ★ Get Your Questions Answered LIVE on TalkPowerBI Fridays www.learnpowerbi.com/talkpowerbi ★

  • @junaidbashir2429
    @junaidbashir2429 Před 5 lety

    I have a list of years in my power bi queries which i imported from excel. The only column in the table is years which are
    1988, 1990, 1993, 1997, 2002, 2008, 2013, 2018
    But in my graph it sorts these years as
    2008, 2013, 2002, 2018, 1988, 1990, 1993, 1997.
    This is when the x-axis type is categorical
    When it's continuous the values get 1985, 1990, 1995, 2000, 2005, 2010, 2015, 2020.
    One way it sorts wrong and the other way its values get wrong
    What can i do to fix this?
    Thanks in advance to whoever answers

    • @younissyed9259
      @younissyed9259 Před 4 lety

      Create another Column based on Years using Switch then click on year column & modelling->sort by new column created or you can directly use sort by Year in Power PIvot

    • @bvermilion
      @bvermilion Před 4 lety

      You do a really good job of explaining the topic and your energy is great.

  • @charlieholland6572
    @charlieholland6572 Před 3 lety

    The download file doesn't work at this time. Can you fix it or give me new download link.

    • @PowerBIPro
      @PowerBIPro  Před 3 lety

      Hi Charlie Holland,
      Sorry to hear you are having trouble with the download files. Please reach out to us via email at avi @ avising.com so we can assist you further.
      ⚡Power On!⚡ / Avi
      ★ Get Your Questions Answered LIVE on TalkPowerBI Fridays www.learnpowerbi.com/talk ★

  • @riazuddin7493
    @riazuddin7493 Před 3 lety

    Lets assume that we have two components of salary i.e. Basic and Conveyance an employee receives PKR100 and 200 respectively for these two components in the month of April and the same employee receives PKR200 and 100 respectively for the same components in the month of May. Can Power BI DAX give me the information in another table under column Basic and Conveyance as 100 and -100 for the same employee? Please note that we have more than 14,000 employees and every month I have to identify the same by looking for the variance in payroll and identifying the staff who receive different payments as compared to last month. Thank you for your help!
    if there are more information required I can share the sample file through email.

  • @erickampel8154
    @erickampel8154 Před 2 lety

    What is the difference between using the group bys this way versus just creating the 4 different table views on your canvas and selecting the group by column and column you want to sum. Seems like powerBI does this naturally.

    • @PowerBIPro
      @PowerBIPro  Před 2 lety

      Yup that's the third approach I showed. And you are right it is the best one. But it's good to know the other ones as you may need them in some cases.

  • @liyaliu7710
    @liyaliu7710 Před 4 lety

    Any help? Could not load data in Query Editor - > DataSource.NotFound: Microsoft Access: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. The 64-bit version of the Access Database Engine 2010 Access Database Engine OLEDB provider may be required to read 'AdventureWorks.accdb'. To download the client software, visit the following site: go.microsoft.com/fwlink/?LinkID=285987.

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

    Sorry, cant watch this one. You didn't wear your yellow bow tie....

    • @PowerBIPro
      @PowerBIPro  Před 3 lety

      Ha! I know...it's not quite the same without the Bow Tie :-)
      By the way, if you were ever curious Why I started wearing Bow-Tie and what it represents, check out one of my older videos:
      czcams.com/video/QwDy1cOVQEs/video.html
      See you around :-)
      Oh...if you are interested, LearnPowerBI Enrollment is opening soon. If you haven't joined already, this would be a great time.
      And if you have any additional questions you can get them answered in our LIVE TalkPowerBI Q&A show.
      👉 web.learnpowerbi.com/waitlist/
      ⚡Power On!⚡ / Avi
      ★ Power BI Complete Tutorial: czcams.com/video/AGrl-H87pRU/video.html ★
      ★ Get Your Questions Answered LIVE on TalkPowerBI Fridays www.learnpowerbi.com/talk ★

  • @satellitepop
    @satellitepop Před 4 lety

    Use this in a model with 30 Gigs and you will see that "PRO" you do not have anything my friend. I´m sorry .

  • @zainalabedin5086
    @zainalabedin5086 Před 2 lety

    your video is good but your face camera destruct my concentration.

    • @PowerBIPro
      @PowerBIPro  Před 2 lety

      Thank you for your feedback. That's a good one :-)

  • @anniek7743
    @anniek7743 Před rokem

    Very useful