How to Calculate Percentages in Power BI based on Column Total and Parent Row💯

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

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

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

    Perfectly explained, Thank you

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

      Thanks for stopping by, vamsi reddy. Kepp up the good work.

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

    Excellent! This is just perfect for the report that I have been working on. I have to calculate the overtime, unplanned hour, vacation for each locations. Thanks again!

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

      Glad you found it helpful. Keep it up!

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

      @@NestorAdrianzen Everything messed up now when I filter it by pay period. So, I have a calendar table related to the payroll table that has all the category and location. So, I have period 1 to period 15 (these payperiod has calculation on it) Is that possible at all to add the date and filter it out to the payperiod I want? Thank you.

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

    Thanks for the video. Is there a way to do Parent Row % not with only 1 level but with more? 3-4 levels?

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

      You can add as many fields as you want (not too many though) and keep a filter just for the first column (country column in the example)
      CALCULATE(
      [Total Profit],
      ALLEXCEPT(financials,financials[Country])

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

    Thanks. Question. Could you add time columns on the side ?

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

      Yes, you can! As long as you carefully modify the filter context within the CALCULATE function, you will be fine.

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

    One of the simplest way to teach and reach the mind...

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

    Is it possible to create a percent of parent row total in combination of new field parameters?

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

    Why are you using the values function for the product column when that column isnt being used in the visualization, can you explain please. thank you

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

      @azizdahduli,
      Thanks for stopping by. That's a good observation.
      When we use ALL and VALUES together in the CALCULATE function, VALUES evaluates the values of the product column as visible in the current filter context. In other words, ALL removes all filters in the financials table, but VALUES make the filters visible for the product column. When the product column is added to matrix, the percentages are computed for products as well and they add up to 100% for each product.
      I hope that helps!

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

    Thank you very much for the knowledge you have provided.

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

      Glad you found the content helpful. Cheers!

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

    Thank you so much!! I have been looking for this solution for such a long time & your direction gave me exactly what I needed :)

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

      That's awesome! Thanks for stopping by, Kathy!

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

    Thank you Nestor. Exactly what I needed.

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

    Excellent tutorial Nestor, as usual. Thank you for your super explanations!

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

    If the column data is to shown with months, and If I write a measure for Percentage, then the percentage is showing for all the months, but I want to show only at the end, Any solution for this sir

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

      @balajiawari,
      Thanks for stopping by. It seems that you have to play with the filter context. If you want to find the percentage of each row against the total amount, you might want to remove all the filters from the calendar table. The following expression might help.
      Measure :=
      CALCULATE(
      [expression],
      REMOVEFILTERS(Dates)
      )

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

    Hi Arianzen, i have watched this video a hundred times and I followed every step and things turned out to be exactly what I wanted. However, when I converted to the bar chart, everything turned to 100% for the Parent Row. Why? Can you tell me please? Thanks.

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

      bzflowerbee, Thanks for your question. You might want to play with the allocation of the fields when you add data to your bar chart. Also be aware of the filter context (the fields visible if the bar chart are filters).
      My recommendation would be to create a "table" on the left side of the canvas and a "bar" chart on the right side. First, create the table with the results, once you got the results, duplicate it and change the visual type to a bar chart. Hopefully this make sense. Thanks!

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

    I have a similar requirement. But my Product column is in another dimension table with 1 to Many join on the fact table.
    Following this, the calculation is being done based on grand total and not column total. Could you please help with that?

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

      Sourav Sharma,
      Thanks for stopping by. You might want to play with the filter context in order to find the right results. Check this tutorial out if you haven't done it so. ruclips.net/video/9IdFq2aPxmY/видео.html

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

    Hi Nestor, thanks for this nice video. I was wondering how one could do the Percentage formula as per group in a special scenario when the column is of String values. Example % of Name/Surname/Ticket No etc display as a trend? Any idea/suggestion would be a great help. Thanks

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

      That's interesting! I'm not sure if that's possible. In order to perform calculations, you will need to have numeric values and then follow the steps provided in the tutorial.

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

    Very good and clear tutorial, thanks

  • @FaisalRehman-bz7ro
    @FaisalRehman-bz7ro Год назад

    Thanks a lot, Nestor!!!!!

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

    Hello Nestor, im beginer for Powerbi. I have a quick question.
    In my report I have 17category 5countries and each countries has morethan 7supplier, I need to identify % of the supplier performed for each category, whic means my cal should be supplier value for each category and country / total calegory *100 how should i perform in powerbi ?
    Im using metrix table : Category, country and supplier ive taken in the column, values in row.
    Ex
    Category : sales. :Share
    1 Chocolate. 10000. 100%
    India. 5000. 50%
    Sup A. 3000. 30%
    Supp B. 2000. 20%
    Srilanka. 2000. 20%
    Supp A. 1000. 10%
    Supp B. 1000. 10%
    Australia. 2000. 20%
    Supp A. 500. 5%
    Supp B. 1500. 15%
    NZ. 1000. 10%
    Supp A. 1000. 10%
    2. Biscuit. 20000. 100%
    Turkey. 10000. 50%
    Supp A. 5000. 25%
    Supp B. 5000. 25%
    India. 10000. 50%
    Supp A. 6000. 30%
    Supp B. 4000. 20%
    This is wat i expect, kindly assist me

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

      When you have more than 3 row levels, the calculation can be a little bit tricky. You'd just need to play with the filter context. e.g., one of the filters in the CALCULATE function could be REMOVEFILTERS (Table[country], Table[supplier]). Check out the tutorial at min 13:45. I hope that helps!

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

    Excellent, I m working on same type of project. 👍👍👍

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

      Excellent! Glad to hear that. Keep up the good work, pavan ranapanga!

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

    In question 2, why are you including the column product?

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

    thank you

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

    i cant download the practice file

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

      Archie, Thanks for stopping by. Try this link: drive.google.com/file/d/1EBD5ibDOhVrdQFDWOrvbqjFKhdmU-tdV/view?usp=sharing

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

    Great!

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

      Thanks for stopping by, Sean Manzanilla. Keep up the good work.

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

    👍

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

    Hi Thanks for this. Need a DAX as per the below screenshot
    Name class Section Marks %age
    Dinesh X A 90. 90/90
    Guru. IX. B. 50. 50/90
    Hema. VII. C. 40. 40/90

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

      Denominator is fixed as per the first row.

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

      Excelise, Thanks for stopping by. The approach to follow is very similar to what I shared in the tutorial. If the denominator is fixed, you might want to create a hardcoded measure by using variables. e.g., VAR fixedDenominator = 90. Then create another variable that sums the Marks column. Finally, divide hose values. Hopefully, that should solve your question.

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

      @@NestorAdrianzen thanks for this but I want to make denominator dynamic.Denominator will chnage every month.

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

    Spanish?.

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

      Alonso, Gracias por revisar el contenido. El contenido en español usualmente lo estoy publicando en mi otro canal, vizualizando. Este es un tutorial muy parecido: ruclips.net/video/joU18fpDYs0/видео.html