2 Quick Ways To Calculate Distinct Count With Pivot Tables

Поделиться
HTML-код
  • Опубликовано: 18 янв 2025

Комментарии • 152

  • @jesslynnsh
    @jesslynnsh 2 года назад +1

    Thanks for sharing the video! I have been trying to count the data in pivot table for days, until I saw your video, it solve my issue in 2mins! Really grateful!

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

    Thanks Jon, your Excel webinar was a real game-changer! The tips were incredibly helpful, and I'm excited to learn more about the Modern Excel Blueprint. Thanks again!

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

      Thank you for your feedback, Lee! 😀

  • @abdallahbendriss2599
    @abdallahbendriss2599 2 года назад +1

    Thanks body, you saved me a lot of trouble and you made my night, was working at 1AM :)

  • @marcnaidu5804
    @marcnaidu5804 Год назад +1

    Hi Jon, Excellent. Clear. And the window within the window is useful. Can see you explaining and the sheet at the same time. Thank you.

    • @ExcelCampus
      @ExcelCampus  Год назад

      Thanks for the feedback, Marc! 😀

  • @vinay_tire
    @vinay_tire Год назад +1

    Thanks, I invested 30 minutes before reaching here... big help. Thanks

    • @ExcelCampus
      @ExcelCampus  Год назад

      Thanks for the feedback @vinay_tire 😀

  • @lisaamante5384
    @lisaamante5384 3 года назад +1

    Las Vegas, Nevada, USA: Excellent! Quick, concise, clear, easy! Thanks so much also for explaining pros and cons of both ways.

  • @KayYesYouTuber
    @KayYesYouTuber 2 года назад +2

    For many years I have had this problem and I would write the distinct query in SQL to do this. This simple trick is so helpful. Thanks a bunch.

  • @luideveyra6259
    @luideveyra6259 Год назад +1

    Thank you!!! Sending support from Philippines

  • @vikasjoseph2008
    @vikasjoseph2008 3 года назад +1

    I have been struggling with distinct count for long. Thanks very much for this solution. Keep up the good work

  • @IslamMuhammad
    @IslamMuhammad 2 года назад +1

    Easy and smooth explanation, Thanks for helping

  • @prabhurethinamsredmi6978
    @prabhurethinamsredmi6978 2 года назад +1

    Thank you for the detailed explanation. 2nd option fits my need, appreciate your help

  • @rohitekka2674
    @rohitekka2674 3 года назад +2

    Armed with two new tricks, Thanks Jon!

  • @ca.ravigoyal5782
    @ca.ravigoyal5782 2 года назад +1

    Thanks a ton from India Jon. Really Big problem is solved

  • @JabastinS
    @JabastinS 2 года назад +1

    The way you have explained amazing. Thank you.

  • @bungaranpanggabean1709
    @bungaranpanggabean1709 2 года назад

    Good work job Jon. Its working well for small number of data, but not efficient for big number of data

  • @debabrataghosh8338
    @debabrataghosh8338 2 года назад +1

    Thanks for sharing the trick,Mr Jon .

  • @foxiesh
    @foxiesh 2 года назад +1

    SUPER HELPFUL!! Thank you very much

  • @nboisen
    @nboisen 4 года назад +1

    Excellent explanation of the filter context advantage when using Power Pivot!!!

  • @sherivanderhoof7106
    @sherivanderhoof7106 7 месяцев назад

    So Accurate - easy to use!! Easy to update with new data - So happy I found you!

    • @ExcelCampus
      @ExcelCampus  7 месяцев назад

      Glad it was helpful! 😀

  • @Vlog88999
    @Vlog88999 4 года назад +1

    Perfect teacher of excel

  • @patriciadavis5299
    @patriciadavis5299 9 месяцев назад

    This was a great explanation! Thank you for the multiple options why one may be chosen over another.

    • @ExcelCampus
      @ExcelCampus  9 месяцев назад

      You're very welcome! 😀

  • @SothearithKONGMrMuyKhmer
    @SothearithKONGMrMuyKhmer Год назад +2

    Thanks. That’s really handy with distinct count in Pivot table. 🎉

  • @haronnjiru8122
    @haronnjiru8122 3 года назад +1

    Excellent explanation. Thank you

  • @oyewoleismail2427
    @oyewoleismail2427 3 года назад +1

    Lifesaver. Thank you for sharing this video

  • @sharidavis4888
    @sharidavis4888 3 года назад +1

    This helped me SO MUCH! Thank you Jon!

  • @MyChannel706
    @MyChannel706 3 года назад +1

    Excellent tutorial. Thanks much!! Very helpful.

  • @H_a_n_z
    @H_a_n_z Год назад +1

    The first solution is beautiful ... easy to do and so smart ... thanks alot!! I tried that data model, but it makes problems with bigger tables

  • @jcop14
    @jcop14 Год назад +1

    Great instruction! Thank you.

  • @shubhamlale5946
    @shubhamlale5946 6 месяцев назад

    Awesome, I was looking for the 2nd solution Thank you very much

  • @patricktampus4937
    @patricktampus4937 3 года назад +1

    This is VERY HELPFUL :) Thank you

  • @cargouvu
    @cargouvu 4 года назад +1

    This is awesome. Helped me solve an issue in SQL... Thank you soo much!!

  • @alconomic476
    @alconomic476 3 года назад +1

    Thanks, this was helpful and the presentation was great

  • @pramodcomputertips7872
    @pramodcomputertips7872 3 года назад

    I am Pramod from India. Thanks sir, your suggestion solved a big problem.

  • @sachinrv1
    @sachinrv1 4 года назад +2

    That's fantastic. Pivot table is always easy and wonderful tool. Thanks for sharing this trick :)

  • @Annethe71
    @Annethe71 2 года назад +2

    Thanks for this, it really saved my day and so well explained as always. Really like your tutorials.

  • @kirrilywelsh
    @kirrilywelsh 4 года назад +4

    Hi Jon: Your explanations are always so easy to follow. Cheers :)

    • @ExcelCampus
      @ExcelCampus  4 года назад +1

      Thanks Kirrily! I appreciate your support. 🙌

    • @marcnaidu5804
      @marcnaidu5804 Год назад

      @@ExcelCampus Hi Jon, will this work with no pivot table and using a =subtotal and count parameter to only count the unique values based on what is filtered? Thanks

  • @aguerojg
    @aguerojg 4 года назад +2

    Thank you very much, Jon, your explanation is so clear and great, amazing solution with the Deal count column :)

  • @abhilashponnam
    @abhilashponnam 4 года назад +1

    Thanks a lot! Was looking for it for quite some time. Your explanation was intuitive and easy

  • @selinakarac6792
    @selinakarac6792 2 года назад +1

    This is very helpful, thanks!

  • @akshitstenaa
    @akshitstenaa 11 месяцев назад +1

    Loved it
    It was super simple
    Thx brother

  • @hangtrinh7207
    @hangtrinh7207 3 года назад +1

    Very useful video ..Thanks so much ..

  • @wangecho7696
    @wangecho7696 Год назад +1

    thank you so much! exactly what I need!

  • @vijaysahal4556
    @vijaysahal4556 3 года назад +2

    Hi jon you are amazing 👍🏻👍🏻👍🏻👍🏻

  • @rrgalvao
    @rrgalvao 11 месяцев назад

    Exactly what I needed! Thanks!!!

  • @wayneedmondson1065
    @wayneedmondson1065 4 года назад +1

    Thanks Jon. Great video and solutions. Looking forward to Power Query and Dynamic Array function methods. Thumbs up!!

    • @ExcelCampus
      @ExcelCampus  4 года назад +1

      Thanks Wayne! 👍

    • @wayneedmondson1065
      @wayneedmondson1065 4 года назад

      @@ExcelCampus Thanks Jon. By the way, I modified my worksheet formula solution as follows: =SUM(--(LEFT(UNIQUE(Table1[Sales Stage]&"|"&Table1[Deal ID]),FIND("|",UNIQUE(Table1[Sales Stage]&"|"&Table1[Deal ID]))-1)=H4)). Don't need the SORT functions in there to get the correct result :))

    • @sallyho146
      @sallyho146 Год назад

      @@ExcelCampus Jon - I have one apartment with two residents living there. If I want to count his many residents stay in each apartment by apartment # in one column and resident names in 2nd column, count in 3rd column, the count doesn’t combine 2 resident for apt #100, 105, etc because I put the resident names in column 2 using display feature. How can pivot table count 2 residents for apt #100, #105 etc?

  • @mkparker99
    @mkparker99 Год назад +1

    This was awesome. thank you!

  • @dastageera9626
    @dastageera9626 4 года назад +1

    Thanks dear brother...... I lawsys waiting for your great videos.....

    • @ExcelCampus
      @ExcelCampus  4 года назад

      Thanks Dastageer! I appreciate your support. 🙌

  • @darrylmorgan
    @darrylmorgan 4 года назад +1

    Great Explanations..Thank You Jon :)

  • @Wulandari-gr2se
    @Wulandari-gr2se 4 года назад +1

    Thanks a lot Jon.... this is really useful for my work

  • @doktorexcel8603
    @doktorexcel8603 4 года назад +1

    Great solutions.

  • @tonyjinca
    @tonyjinca 3 года назад +1

    Thank you Sir!

  • @gboyearo387
    @gboyearo387 3 года назад +1

    God bless you...

  • @dinorr8892
    @dinorr8892 4 года назад +1

    Thanks Jon really nice sharing...

  • @samiakram147
    @samiakram147 6 месяцев назад

    For more than 10 years we have been using different and lengthy way this vdo gave a relief 😂

  • @bador28
    @bador28 4 года назад +1

    It is a great solution, thanks so much

  • @alexq3498
    @alexq3498 Год назад +1

    Excellent. Thanks!

  • @ahsanhsakib1875
    @ahsanhsakib1875 2 года назад +1

    Great Video

  • @sunilkamati7224
    @sunilkamati7224 4 года назад +1

    Sir
    Your video is really helpful

  • @miriambonilla6407
    @miriambonilla6407 4 года назад +1

    Thank you, I might use it some how in the future.

  • @armaankhan5148
    @armaankhan5148 3 года назад +1

    Thank you so much

  • @Luciano_mp
    @Luciano_mp 4 года назад +1

    Thanks Jon!

  • @snacktics4771
    @snacktics4771 3 года назад +1

    Thanks bud!

  • @himkartech
    @himkartech 3 года назад +1

    this is great thank you

  • @zaririrani2494
    @zaririrani2494 3 года назад +1

    This knowledge helped in saving manual work. Thank You John!

  • @onepercent3934
    @onepercent3934 2 года назад +2

    Hi Jon, this video is very helpful! thank you so much for sharing this. I have a challenge when I'm trying on my Mac. When I create the pivot table, it does not show up the option "add this data to the data model"you mentioned in the video. I think I'm using the latest version of the software as I just subscribe the office 365 excel family , hope you may help advice. thank you

  • @alexscheleider2210
    @alexscheleider2210 2 года назад +1

    thank you!

  • @jaliali84
    @jaliali84 3 года назад +1

    Amazing 😍

  • @lestariu509
    @lestariu509 2 года назад +1

    OMG Thank you

  • @palanisubramani12
    @palanisubramani12 7 месяцев назад

    Great video - How do we convert existing normal pivot table into Data Model Pivot Table / Power Pivot

  • @lorenzobattistin1501
    @lorenzobattistin1501 Год назад +1

    Amazing! So simple but so powerful!

    • @ExcelCampus
      @ExcelCampus  Год назад

      It really is, thanks @lorenzobattistin1501! 😀

  • @mohamadkuk
    @mohamadkuk 4 года назад +2

    Omg this is awesome

  • @gerbherb8215
    @gerbherb8215 9 месяцев назад +1

    Thanks, well explained. I do still have a problem: the distinct count also adds up 1 for empty cells in a source table column. Can you tell me how to avoid that?

    • @ExcelCampus
      @ExcelCampus  9 месяцев назад

      Hi G! 😊 Thank you for your kind feedback! One way the empty cells may show up is if they have a space in them. The space will count as a distinct row, which you could replace with nothing by matching the entire cell contents in the Find and Replace window (Ctrl+H). Another way to avoid the 1 for empty cells is to filter out blanks from that column in the PivotTable. I hope that helps! 🙂

    • @gerbherb8215
      @gerbherb8215 9 месяцев назад

      @@ExcelCampus Hi Jon,
      Thank you very much for your quick answer. Unfortunately, it doesn't solve my problem and I will try to be clearer about it: the distinct count sees empty values (they do not contain spaces) as distinct values and so it adds 1 to the number of distinct values it finds. Technicaly this is correct, but many times you don't want this to happen, because these cells are empty because you don't (yet) know what value they should have. For example: you want to count the number of different brands of car tyres you have in a table. Then you don't want Excel to count empty cells as beiing one brand.
      Your second suggestion is not applicable, since there are no blank cells in the pivot table.
      Hope you can have a second look and maybe come with a solution?

  • @Henrich205
    @Henrich205 4 года назад +1

    Awesome :), thank you :)

  • @NaveedBarq
    @NaveedBarq 7 месяцев назад

    Brilliant

  • @VRmatter-
    @VRmatter- 5 месяцев назад

    Still helping👍

  • @claudiavalsecchi1593
    @claudiavalsecchi1593 2 года назад

    THANK YOU! THIS IS SO HELPFUL. When I use Power Pivot for the Distinct count, how can I then create calculated fields? I need to calculate in the pivot the variation between 2 different distinct count (e.g. I need to calculate the variation of This year Vs Last year of distinct count ID Deal)

  • @sikkandhark
    @sikkandhark 2 года назад

    Will power pivot table be connect with other pivot table with slicers?

  • @shreediculous
    @shreediculous 3 года назад +2

    Great explanation.
    How do we do this if we want to get counts of multiple columns?

  • @jbodnar2012
    @jbodnar2012 Год назад

    Why is distinct count only in Power Pivot?! Took me all day to find this, but hey, thank you for helping solve my issue!!

  • @chess_and_tech
    @chess_and_tech 11 месяцев назад

    There is another way to do this with plain Pivot Tables. Create an entry in *both* the Value *and* the Rows or Columns where you want it. The Values will do the counting, and the Rows or Columns (whichever you want) will create entries for each item it identifies and you want counted. Cheers!

  • @BharathBhushan-ei9ue
    @BharathBhushan-ei9ue 28 дней назад

    cool trick

  • @AkaExcel
    @AkaExcel 4 года назад

    Hi! It will be also interesting if you show Solutions by your Commenters, Hope it Helps!

  • @conradoiiaustria5277
    @conradoiiaustria5277 3 года назад

    Can we do this then do a running total?

  • @BenardNjuguna-w9d
    @BenardNjuguna-w9d Год назад +1

    Awsome

  • @MIMGURU
    @MIMGURU 3 года назад

    How to calculate percent of win and loss can u bring video

  • @adim7909
    @adim7909 10 месяцев назад

    Can we use this feature in MacBook ?

  • @jhayg.serrano9349
    @jhayg.serrano9349 3 года назад

    what if i add the product name above the sales stage in rows, will it work also?

  • @zyngacita
    @zyngacita 2 года назад

    I get this to work, however when I track by month the Grand Total doesn't align with the individual month totals.

  • @gibbyutah
    @gibbyutah 2 года назад

    How do you get a list of the distinct items?

  • @lakhandahiya3003
    @lakhandahiya3003 4 года назад

    It would be a great help for practice if you provide excel file too.

    • @ExcelCampus
      @ExcelCampus  4 года назад

      Hi Lakhan,
      Sorry about that. We forgot to include the solution file on the post. It is now available. You can find it in the Downloads section under the video on the following page. www.excelcampus.com/pivot-tables/distinctcount-pivot-tables/
      Thanks again and have a nice day! 🙂

  • @raunakjain7251
    @raunakjain7251 Год назад

    Unable to add calculations measure for pivot tables when you use datamodel in pivot

  • @masterexcel87
    @masterexcel87 3 года назад

    How about if with blanks? How could we eliminate the blank count in the distinct count?

  • @MrPhanisDav
    @MrPhanisDav 2 года назад

    How to count a unique Number BUT Per Day? Thanks In Advanced

  • @jesuseduardobittersuarez7517
    @jesuseduardobittersuarez7517 2 года назад

    when I add new data to the model with the second option the table disolves , Help =(

  • @PGJAS
    @PGJAS 8 месяцев назад

    Hi, using calculated field in power Pivot I tried calculating count(column name).Just I need total number of rows....but it is always showing 1 in output.I tried with countA as well.But it didn't work...could you please help me with that.

  • @chaddemeuse6760
    @chaddemeuse6760 3 года назад

    What if you're using large
    datasets and you want to count say client names using by branch for a specific accounting period.

  • @fe00700
    @fe00700 9 месяцев назад

    Saved my ass since macOS Excel does not support adding to data model... Thank you! Having grown in unix command line I find it hard to believe, that equivalent of | sort | uniq | wc -l can't be done in mac Excel at all

  • @niteshtoshniwal8951
    @niteshtoshniwal8951 3 года назад

    With distinct count function, calculated item and calculated field options gets greyed out. Is there any option to bring both together?

  • @luiscasas7219
    @luiscasas7219 3 года назад

    Hi Jon, if a cell is empty Excel counts it as a unique value, which is wrong, do you have a solution for that?

  • @bintangmuhammad7082
    @bintangmuhammad7082 4 года назад +1

    why is my distinct count not showing?

    • @AbuEisaAyoub
      @AbuEisaAyoub 3 года назад +1

      when you insert the "Pivot Table" > click yes on the last option that says "Add this data to the Data Model"