Count Occurrence Or Add Index Number To Group Data | Power Query & PowerBI

Поділитися
Вставка
  • Опубліковано 5 жов 2024

КОМЕНТАРІ • 77

  • @OzduSoleilDATA
    @OzduSoleilDATA 5 років тому +1

    I like it! That's a tough challenge to solve.
    And I saw those balloons! :)
    😄

  • @tayedawa
    @tayedawa Рік тому

    Fantastic! I have been searching this for hours and it could be days if I had not bumped into this video! Thank you Sir!

  • @pratikfutane8131
    @pratikfutane8131 5 років тому +1

    That's really awesome!! I was able to achieve the same requirement in Power BI using your steps. Thanks a Lot!!

    • @ExcelExciting
      @ExcelExciting  5 років тому +1

      Welcome!! Glad to hear your query was resolved 😃😘

  • @angieburnikel2465
    @angieburnikel2465 3 роки тому +1

    This is SO helpful. Thank you so much for posting this!

    • @ExcelExciting
      @ExcelExciting  3 роки тому

      thank you so much ☺️ .. what are your daily challenges with excel

  • @pravinshingadia7337
    @pravinshingadia7337 Рік тому

    My friend - this is brilliant. Thank you - you helped me with problem today

  • @marcinczajkowski5831
    @marcinczajkowski5831 Рік тому +1

    Love the solution - thank you so much for sharing

  • @tomaszs5954
    @tomaszs5954 Рік тому

    Thank you so much, Faraz. That's extremely helpful!

  • @leonardocastro1649
    @leonardocastro1649 Рік тому

    THANK YOU SO MUCH YOU SAVED MY LIFE PLEASE COM TO BRAZIL SO I CAN HUG YOU

  • @subhassamuel3162
    @subhassamuel3162 2 роки тому

    very useful simple and great, God bless you brother

  • @karthiksn7851
    @karthiksn7851 2 роки тому

    This is an alternative way for using the countif formula in the power quarry.. Thanks a lot

    • @ExcelExciting
      @ExcelExciting  2 роки тому

      Welcome.. what are other challenges you have with your data

  • @moisestatis5418
    @moisestatis5418 Рік тому +1

    AWESOME video, thanks so much!

  • @marcosvincius4566
    @marcosvincius4566 2 роки тому

    Thanks for helping me, now i can do my job easily

    • @ExcelExciting
      @ExcelExciting  2 роки тому

      Awesome 👏🏻!!! Glad to hear that.. what are your other challenges in business ??

  • @reginaldbal
    @reginaldbal 2 роки тому

    Very clear explanation. I was wondering if you might be able to explain how to adapt following additional requirement: when starting a new group I'd like to have the index to continue rather than being reset.

  • @swindonwellness
    @swindonwellness 2 роки тому

    Been looking for a solution to this since yesterday, so glad I found this - thank you sir!

  • @shoppersdream
    @shoppersdream 24 дні тому

    Nice, thanks!

  • @nitinkolhe1
    @nitinkolhe1 3 роки тому +1

    Excellent explanation

    • @ExcelExciting
      @ExcelExciting  3 роки тому

      Thanks Nitin 👍🏻, glad to hear you find it helpful

  • @Bhavik_Khatri
    @Bhavik_Khatri 2 роки тому

    Very nice tutorial.

    • @ExcelExciting
      @ExcelExciting  2 роки тому

      Thank you!! In what real case scenario have you used this solution ?

  • @AbhishekKumar-cq1wy
    @AbhishekKumar-cq1wy 5 років тому +1

    You're great sir

  • @hashamfakir4370
    @hashamfakir4370 5 років тому +1

    Nice video 👍

  • @YasirFarooq-jj8yv
    @YasirFarooq-jj8yv Рік тому

    Can we do same thing for calculated columns in DAX?

  • @anthonygikuri
    @anthonygikuri 3 роки тому

    Thank you for your time. What if I want power query to generate steps that sum up the distinct rows... Can you help please. For instance, I want the sum of Smart TV instead of having the item repaeted twice or more

  • @basiliofreire2209
    @basiliofreire2209 2 роки тому

    Thank you !!👏

    • @ExcelExciting
      @ExcelExciting  2 роки тому

      Welcome, glad to hear you find it helpful

  • @atiyashaikh4491
    @atiyashaikh4491 5 років тому +1

    Doing good son.. keep it up

  • @AndresDehayes
    @AndresDehayes 11 місяців тому

    How would I return a count for the number of instances? Let's say I only want to know how many times each product occurs in the dataset, how would I only view those numbers?

  • @DiwankarSingh
    @DiwankarSingh 9 місяців тому

    what to do if i want to keep the same serial number for those data that are same in the column

  • @entertainmentgalaxy971
    @entertainmentgalaxy971 5 років тому +1

    Amazing trick. thanks for sharing PQ fun...

    • @ExcelExciting
      @ExcelExciting  5 років тому +1

      Hope you enjoyed & share with others too 👍🏻

    • @entertainmentgalaxy971
      @entertainmentgalaxy971 5 років тому +1

      @@ExcelExciting based on your example, if product names have total and want to ignore count of that particular product total.
      For example
      Product Amt Count
      Laptops 10 1
      Laptops 10 2
      Laptops Total 20
      Want to ignore that count of laptops total.

    • @ExcelExciting
      @ExcelExciting  5 років тому

      Well in that case before you apply the index step.. filter the product column doesn’t contain total 👍🏻, that will wipe of the the total row of each product from the list...

    • @entertainmentgalaxy971
      @entertainmentgalaxy971 5 років тому

      @@ExcelExcitingin this case sum of product total will calculate but will ignore count as mentioned above?

    • @ExcelExciting
      @ExcelExciting  5 років тому +1

      now i got you..mate !! there are many ways to do it.. but best solution I can share you will be creating a customs column looking for the text contains "Total" return "Count" else "null" that will not take in consideration to count the "Total" row

  • @HI-gf7nk
    @HI-gf7nk 4 роки тому

    Thank you Faraz

  • @manishanegi9132
    @manishanegi9132 5 місяців тому

    Please advise, if instead of occurrence, I want to bring the total occurrences in front of each occurrence, how could that be done? Example, if Headphone appears twice, the first occurrence would show1 and the second one will show 2. However, if I want to see 2 both the times how could that be done?

    • @ExcelExciting
      @ExcelExciting  5 місяців тому

      Very good question what do you need to do is group by and make the count of the product

  • @miphone5975
    @miphone5975 4 роки тому +1

    Nice

  • @marciamalaguti
    @marciamalaguti 4 роки тому

    Thanks!

  • @ExcelWithChris
    @ExcelWithChris 4 роки тому

    What I have is a column containing text (Department). for example 10 saying SALES then another 10 saying ADVERTISING then another 10 saying MARKETING. I import into Power Query. All good. When I export to Excel I want to use that column in a Slicer. The slicer automatically sorts. I want the order in the original order. So what I need to do is to add a column in the Power Query which will have 10 x 1, then 10 x 2 and then 10 x 3. When I export back to Excel I can then use Power Pivot to sort the Department column using the above number column with numbers. It almost seems like I should be using Index and Modulo, but its not the same thing. So all I want to do is to have a new column in Power Query - starting at 1 and while the DEPARTMENT is SALES put a 1, then when it changes to ADVERTISING have 10 x 2's etc. The increments are the same.

    • @ExcelExciting
      @ExcelExciting  4 роки тому

      I’m trying to get you.. so you are trying to make two index column one outside department & entries inside the department.. you can still sort your data in PQ.. if you can attach link of sample data with your desired output manually made that would great & I might be able to help you out

  • @singhalmonica
    @singhalmonica 3 роки тому

    Thanks sir, pls guide me how can we have 1 for HeadPhone on each occurance.

    • @ExcelExciting
      @ExcelExciting  3 роки тому

      You don't need to give the increment value while adding the index column.

    • @singhalmonica
      @singhalmonica 3 роки тому

      @@ExcelExciting sir, given sol. Is not working, it gave 1 to all

  • @noplay6133
    @noplay6133 3 роки тому

    Very nice tutor master..
    Can you help me.. if i want to create before after product
    Ex :
    1/2/19 Uno
    1/10/19 PlayStation
    1/12/19 Nintendo
    So i will create
    Before = PlayStation
    After = Nintendo
    Can you help me please

  • @ramsree20
    @ramsree20 4 роки тому

    Hi, Thanks for this share. But when I apply this on a data of 10K+rows, it takes a lot of time to load in to excel. Any help on this?

    • @ExcelExciting
      @ExcelExciting  3 роки тому

      Loading the data into Excel is totally depending on your system resources.

  • @safashaikh4089
    @safashaikh4089 5 років тому

    Good ❤️

  • @granand
    @granand 3 роки тому

    Well, cannot it more easier? In excel, I will do a simple Countif( Locked First Cell:Criteria, criteria) ? bit confused about the simplicity of power query here, if you work on tables, Update too is automatic, what am I missing here. Is there a better way now?

    • @ExcelExciting
      @ExcelExciting  3 роки тому +1

      You can post your query on our forums excelexciting.com/forums/ by attaching excel file..

    • @granand
      @granand 3 роки тому

      @@ExcelExciting Thank you Faraz.

  • @mariollevillanueva2896
    @mariollevillanueva2896 4 роки тому

    Hi I did this method but when I expand the table, it creates duplicates. Could you tell me how to fix this? Thank you!

    • @ExcelExciting
      @ExcelExciting  4 роки тому

      Could you please attached the Google/OneDrive link of the file to see the data and steps. Possibility you data might have duplicates records

  • @revenge9431
    @revenge9431 4 роки тому

    how did you get that dark theme?

    • @ExcelExciting
      @ExcelExciting  4 роки тому

      Go to file > about you will find theme color change option

  • @AbhishekKumar-cq1wy
    @AbhishekKumar-cq1wy 5 років тому

    SIR WHEN I AM GROUPING ALL ROWS IT IS SHOWING SYNTAX ERROR HOW TO REMOVE IT

    • @ExcelExciting
      @ExcelExciting  5 років тому

      Check the names of the formula as power query is case sensitive. If you still unable resolve it send me the screenshot on Facebook messenger
      facebook.com/fshaikhExcelMaster/

  • @juanbravo5597
    @juanbravo5597 3 роки тому +1

    Boss

  • @asifpatel8205
    @asifpatel8205 5 років тому +1

    Nice