How to COUNT in Power BI // COUNT, COUNTA, DISTINCTCOUNT, COUNTBLANK, COUNTROWS, COUNTX, COUNTAX

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

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

  • @sixtyfiveroses2968
    @sixtyfiveroses2968 3 года назад +9

    Perfect explanation, just what I was looking for! I've watched many videos, but no one explains it the way you did. Thank you again! Subscribed.

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

      Glad it helped! Thanks for watching and the for the sub!

  • @faizaa5476
    @faizaa5476 10 месяцев назад +2

    Such a good video, slowly starting to become a pro on power bi. THANK YOU SO MUCH!

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

    Amazingly explained for the refresher I needed, thanks for all the great content!

  • @bouldy7
    @bouldy7 7 месяцев назад +1

    Thank you for the Countx Filter measure! Hero

  • @aidakalantari6800
    @aidakalantari6800 4 месяца назад +1

    Very clear explanation. Good job and thank you for sharing

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

    Excellent explanations! I'd like to know how to use the functions, particularly using CountX and CountAX to count "text" values (non Boolean) rather than numerical.
    I have a table with vendors/suppliers that deliver different parts. Some of the vendors deliver some of the same parts, so two vendors may have the same Part No..
    Parts per vendor are marked as delivered Early, On-time, and Late. I want to count each of these three delivery statuses per part and vendor to then calculate the percentage of each delivery status per vendor out of the Grand Total of all deliveries and the percentage based on each delivery type/status. For now, this is the formula I came up with to count early deliveries:
    _CountX = COUNTAX(FILTER(Delivery, Delivery[Delivery Type] = Early()), Delivery[Delivery Type])
    Thanks for your help!

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

    Excellent layered 10 minute video, being able to see the table and the counted numbers on the one page seriously good idea. Well done!

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

    Perfect explanation, worth to watch for every sec.

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

    Perfect and practical explanation about the count function !!! Thank you brother

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

    Worked like a charm!

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

    This is awesome! Your videos helps me a lot!

  • @CCS-o2i
    @CCS-o2i 11 месяцев назад

    very clearly explained. Thank you!

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

    Awesome explanation. You cant get better than this on this topic.

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

    This is really helpful. Thanks

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

    Clearly explained supported by simple visuals - makes learning less complicated. One question, why would you not use the COUNTA and COUNTAX functions all the time as they can handle numeric, text and binary strings? Is it a refresh performance issue?
    Thank you.

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

    Great explanation...it is much clear to me how to use these functions. Thanks.

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

    Amazing explanation 😁

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

    you explain really well

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

    Thanks for the video. It is very helpful

  • @MariaL-x7d
    @MariaL-x7d Год назад

    Would you know how to count # of rows based on conditions on calculated measures?
    Measures are based on 2 different tables with one related column.

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

    Great explanation.... Maybe you can help me with a matter, I need to count the codes of the clients that are repeated during different years. For example, customer 373 checked in 2020, 2021, 2022 = 3 unique times. Thanks for your help.

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

    thanks for the video! super helpful

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

    Fantastic video. Thank you!

  • @Pasar2490
    @Pasar2490 3 года назад +3

    Great video! I have a question. Why if we want to count everything in the row except a specific value?

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

      Hi Sara, if you want to count everything except a specific value, you'll need to use the CALCULATE function to apply a filter context to your count. From memory, I covered this in a previous video, check it out if you haven't yet
      ruclips.net/video/Sr3OdE-jx_8/видео.html
      Hope it helps!

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

    Great video!

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

    Just saved me >1 Hour
    Thanks

  • @kayeiaramariedeocampo7980
    @kayeiaramariedeocampo7980 3 года назад +4

    Great Video! One question, what if I want to count the number of occurence of a specific Order ID?

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

      Hi Kaye, great question! You might want to look at using "Group By" on your Order ID, this will give you a count of occurrences for each ID.
      Alternatively, you can also created a calculated column, maybe this will help: community.powerbi.com/t5/Developer/How-to-count-the-occurrences-of-each-value-in-a-column-including/td-p/151328

    • @kayeiaramariedeocampo7980
      @kayeiaramariedeocampo7980 3 года назад +3

      @@SolutionsAbroad Hi I tried but it keeps removing other columns. How can I retain the existing columns (that is part of the data set, but not a reference for the thing I'm counting) thereafter? For example, I tried creating a counter for a Record ID, after selecting the column, applying Group by, it does give me the column for counter, but deletes automatically the rest of my data set. Can't figure it out. huhu

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

      @@kayeiaramariedeocampo7980 Hey Kaye, a quick, non-complicated solution is to just create a duplicate query of this one before the GROUP BY, then merge it back so you can get your other columns.
      The Group By has to exclude the other columns so it can be grouped by ID, hope it helps!

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

      @@SolutionsAbroad Thanks!

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

      @@kayeiaramariedeocampo7980 you're welcome, good luck!

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

    Can we show count of null values against each column from a table in a single visualization .. I do not want to use countblank for each column individually.. please suggest

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

    Excelent video sr!

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

    How do you make a measure or a calculated column that consist of a measure and certain values from a columns from either same table of separate table?

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

      Hi Phillip, measures and calc columns are identical but not similar. Here's a video explaining how they're different: ruclips.net/video/ns4VbpRKAFs/видео.html
      Measures can reference columns or measures anywhere in the dataset
      Calculated columns is data within a table, if you want to reference columns from other tables, there has to be a relationship that connects those tables together, here's a video on relationships if it helps: ruclips.net/video/OOs-VWf20E8/видео.html

  • @MoonShine-bs6cl
    @MoonShine-bs6cl Год назад

    Hi your teaching is great but how can i avail the pbix demo files which u have used in the videos for practice, please help.

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

    Great Video! I have a question. How do you put your raw data table here.

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

      Hi Zheng, great question! You need to use the "Get Data" option in the ribbon to import your data into Power BI. Hope that helps!

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

    How does one count how many time a certain value is in that column. As in how many times 10 is listed. I can't get it to work for NPS.

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

    Nice 👍🏽, new subscriber

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

    Good stuff! Thx!

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

    Hi I am facing issues in the distinct count. When i use column distribution in power bi query editor the value of distinct count is right. But when I tried to calculate the same value for the same column in power bi desktop the value was different. Need your support.

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

    how can I show number of null values in each column from a table at a time in a table or matrix visual ? is there a way, Please suggest. ..

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

    Good one, thanks

  • @DiCh-jp8ms
    @DiCh-jp8ms 2 года назад

    Hi i can`t fiure out a problem with counting. I have a table with 5 names of people that are repeated multiple times in the table and next to this column i have another one with a status "Yes" or a blank cell. I want to count only the times that a name apears with a status yes. For example i have John repeated 5 times, 3 of which are with status yes and David repeated 3 times and 2 times are with statu yes. I want to make a table in which to show the names and how many times they have status Yes.

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

    Hey Fernan! Thanks for your videos, I've been following you for quite a while now and it helps me a lot in my work related projects. Are you a Filipino?

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

    MeasureName=CountRows(CalculateTable(Table, Filter1,filter2))--CalculateTable gives you an opportunity return a subset of the table, with rows that meets criteria specified in the filters. Then use countrows to get subset count,

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

    Great example!

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

    How can we count distinct values with expression filters like you did with the countx

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

      Hi Jermaine, for that you will have to use a combination of DISTINCT COUNT and FILTER, here's an article that covers that community.powerbi.com/t5/Desktop/Distinct-countx/td-p/154867

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

      @@SolutionsAbroad thank you so much, it worked perfectly

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

    Great video! What if both the columns I am evaluating in the expression “COUNTAX(FILTER(People, People[business_unit] > 1),People[IsManager])” are of text data types?

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

      Hi Shikha, the count should work as long as the values are non blank

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

    Thank you very much

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

    How can we select top 3 products or countries based on count (product and countries separate columns)?

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

      Hey there, I covered that topic in this video: ruclips.net/video/vpGAf6Nkt1Q/видео.html

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

    Very useful thanks

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

    What are the most common DAX functions used in power bi in real time.. Can u cover a video in this specific topic..

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

      Hey there, thanks for watching! I covered my top 5 DAX functions here: ruclips.net/video/qF9eKJxT5Bg/видео.html

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

    How are you displaying the data table here? ... Are you just using the table visualisation?

  • @saikumarp-s2t
    @saikumarp-s2t Год назад

    Why can't we apply the distinct value count to the card visual when I create as measure

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

    hi i am using distinct count in excel ,how to exclude blank cells from pivot table.because blank cells value here showing as 1.

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

      Hi Shane, I gotta be honest I'm not too familiar with Power Pivot. Can you not add an implicit filter to exclude blanks or N/A?

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

    Great video.
    I have this problem: how to create a measure that counts how many specific values appear in one column when the values in another column is not unique
    column 1 column 2
    a 1
    b 2
    a 3
    a 1
    b 4
    a 5
    b 6
    the answer I expect to get is 3 not 4
    Thanks

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

      Hi Amir, it sounds like you need to use the "Keep Duplicates" functionality in Power Query. Then from there you can either just do a count/countdistinct or do a "Remove Duplicates". Hope that helps!

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

    I am confused,I see count is taking blank value for me. Is that count takes blank value as well.

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

      Hi great question! Blank values are skipped docs.microsoft.com/en-us/dax/count-function-dax

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

    How to count the number of times a text value appears in a column?

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

      You might need to do a countif alternative in DAX to do this: www.goodly.co.in/countif-power-bi-dax/

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

    count function calculates blank cells as well for me.

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

    thank so much

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

    just perfect tks sir

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

    Thanks Broooo , loveit

  • @dinokid-u1i
    @dinokid-u1i 3 года назад +1

    perfect man

  • @saikumarp-s2t
    @saikumarp-s2t Год назад

    How to display the row count to each record

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

    Hi, I had one doubt in Power BI. I have made one measure (consider Measure 1) on distinct count for respective column which is fine. Similarly I need to pick another column based on this measure 1 which has both values and numerics. How could be done, Sir.
    UNIQ ID RANGES
    077GGG 1
    077GGG 1
    077GGG 1
    078GGG null
    078GGG null
    079GGG 5
    079GGG 5
    079GGG 5
    079GGG 5
    079GGG 5
    080GGG 1
    080GGG 1
    081GGG null
    081GGG null
    081GGG null
    In UNIQ ID column. I have used measure as distinct count and in card i will be getting 5 count
    On the RANGES column, when I use card, I need to get 3 count -----> stating like avoiding the nulls and getting
    1 for 077GGG
    5 for 079GGG
    1 for 080GGG
    Could u pls help on this, Sir?

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

    Please I want to write a measure that counts the most occurring number in a column

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

    I have 37 bathrooms…How can I calculate the percentage of bathrooms that are cleaned twice a day at each location?

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

    can u xplain any project

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

    Great!

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

    Please share dataset

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

    also DITINCTCOUNTNOBLANK - To avoid the blank one (:

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

    THANKSSSSSS

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

    awesom

  • @MS-xg4ep
    @MS-xg4ep 2 года назад

    Somehow the COUNT also counts the ZEROs in a row? Why is that the case?

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

    Please make a video connecting Power Bi to Mongodb

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

    Please help!
    I want to replicate the same result in Powerquery.
    Here is the example in Excel:
    56 77 46 3 ->formula =COUNT(A1:C1)
    33 54 2 ->formula =COUNT(A2:C2)
    Note that the A2 is [empty] - the count result is as expected (=2)
    I can't find a way to replicate it in Powerquery.
    Powerquery returns 3 - it is considering the empty as [NULL] and counting - the result is =3, but it should be =2.

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

    The letters are not clear , pls zoom the formula bar .

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

    why y cant make it in zoom it is tiny

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

    so countx and countax are like calculate with count, interesting

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

      Something like that, they are iterators and basically allows you to add extra filter context, similar to calculate!

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

    I learned to count in kindergarten.

  • @ajjbs7580
    @ajjbs7580 Месяц назад

    Good video. There is some "fat" but not much

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

    Dude! Speak way too fast!

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

    Thanks, Fernan for your videos. Very helpful to me. How do I connect to you on Linkedln