Show TopN Products and Others in Power BI

Sdílet
Vložit
  • čas přidán 10. 07. 2024
  • - - - - My Courses - - - -
    ✔️ Mastering DAX in Power BI -
    goodly.co.in/learn-dax-powerbi/
    ✔️ Power Query Course-
    goodly.co.in/learn-power-query/
    ✔️ Master Excel Step by Step-
    goodly.co.in/learn-excel/
    ✔️ Business Intelligence Dashboards-
    goodly.co.in/learn-excel-dash...
    - - - Blog & Videos - - -
    Blog - www.goodly.co.in/blog/
    Allselected - • DAX ALLSELECTED Function
    Keepfilters - • DAX KEEPFILTERS Function
  • Věda a technologie

Komentáře • 210

  • @GoodlyChandeep
    @GoodlyChandeep  Před 3 lety +18

    NOTE - The Pseudo Prod Table is linked to the Product Table >> Product Name Column (One to Many Relationship).
    DOWNLOAD PBIX - chandeepchhabra-my.sharepoint.com/:u:/g/personal/chandeepchhabra_chandeepchhabra_onmicrosoft_com/EdyCVJETeWNLhnAqqHJT1gcBN4Z7XZnrM2Bz5_wKC4jDpQ?e=f73ylA
    Also use this code to get the correct totals
    Top N SUM Table =
    VAR TOPNSelected = SELECTEDVALUE('TopN Selection'[Value])
    VAR CurrentProd = SELECTEDVALUE('Pseudo Prod Table'[Product])
    VAR TopProducts =
    TOPN(
    TopNSelected,
    ALLSELECTED('Pseudo Prod Table'[Product]),
    [Total Sales]
    )
    VAR TopProdSales =
    CALCULATE(
    [Total Sales],
    KEEPFILTERS( TopProducts )
    )
    RETURN
    IF(
    HASONEVALUE('Pseudo Prod Table'[Product]),
    SWITCH(
    TRUE(),
    CurrentProd "Others",
    TopProdSales,
    CurrentProd = "Others",
    CALCULATE(
    [Total Sales],
    ALLSELECTED('Pseudo Prod Table'[Product])
    ) -
    CALCULATE(
    [Total Sales],
    TopProducts
    )
    ),
    [Total Sales]
    )

    • @jishnusachidanandan5866
      @jishnusachidanandan5866 Před 2 lety

      Is it possible to create a drill through from this chart for 'Others' to a detail page where it shows details of data that belongs to this 'Others' category.?
      Thanks.

    • @singhzcity2219
      @singhzcity2219 Před rokem

      Is it possible to create "Others" In a live Connection?

    • @jhankarnarang9559
      @jhankarnarang9559 Před měsícem

      @@jishnusachidanandan5866 any solution for this?

  • @JohnSullivan1
    @JohnSullivan1 Před 2 lety +6

    Great video. The SQLBI video was excellent but this makes the concepts even easier to understand. Thank you Chandeep! Your videos are very well done.

  • @tukaramjogdand7023
    @tukaramjogdand7023 Před 2 lety +2

    This is the excellent example, step by step commentary provided. This weekend, I have spent my time to get solution on the same requirement and I would say this is the best video out of all the available on the CZcams. Great stuff Chandeep! Thank you and best of luck!

  • @joelabacherli1310
    @joelabacherli1310 Před rokem

    My brother, I just had a major breakthrough while watching this video for the second time. Using the instructions you graciously provided, I may have just came up with a design for my companies sales team that will prove to have major benefits across the entire department. Thank you so very much for explaining this concept in an easy to understand way. I love your tone and cadence. So much information is so easily taken in. You are awesome.

  • @datayoda74
    @datayoda74 Před 2 lety

    This is an excellent video and perfect illustration. Step by step with no errors. I mean excellent and what I was looking for. Goodly, you have yourself a customer. I will be buying your DAX course, by the grace of God this week.....

    • @GoodlyChandeep
      @GoodlyChandeep  Před 2 lety

      Thank you. Looking forward to seeing you in the course.

  • @juliotorres3789
    @juliotorres3789 Před 4 měsíci

    @goodlychandeep you're a godsend. I'm prepping for an interview, needing to know this very thing. You have an excellent method of teaching and I am learning a lot. I knew how to do this on excel and SQL but not PowerBI

  • @KawanExcel
    @KawanExcel Před rokem

    This guy make it easier to understand. Great explanation.

  • @Ravi-ce6th
    @Ravi-ce6th Před 2 lety +1

    🙌🙌 thanks a lot sir,
    I seen some tutorials but no one explained this much easy and clear way. Tq😍

  • @haleyalltheway
    @haleyalltheway Před 7 měsíci

    Thanks so much! This video let me see hope in a situation I'm trying to tackle.
    In addition to put the non-selected items to Others group, I already have an "Others" item in the product list(in my case it’s a brand list) and I need this Others to always be pushed to as part of the bigger Others. Also, I need to create an extra item, which is the sum of certain two brands, and also show its position alongside with the two of its components. For the bigger Others and this summed item, both their rank need to be blank. But for display order, the bigger Others needs to be place at the end while the summed item appears in accordance with its position. And the dynamic interactions with the slicers also needed.
    I sort of done this (for a fixed Top N number) through power query by separately making the components I need (the bigger Others, the Top Ns, the summed brands, and the Grand total, and then append them together as the final result. But I’m thinking if this is even possible in Power BI?
    Would be so grateful for any suggestions on the thinking direction!

  • @kunalkumar-hl6gv
    @kunalkumar-hl6gv Před 10 měsíci

    this is the best video on internet last night i haven't slept due to this problem and now i understand thanku so much !!!!

  • @mnowako
    @mnowako Před 3 lety

    Excellent step by step tutorial and a great business case 👍. Thank you.

  • @tubeitz
    @tubeitz Před 3 lety

    This is an excellent learning resource, thank you so much for sharing and the step by step instructions

  • @juansepowerplatform
    @juansepowerplatform Před 3 lety

    Amazing video and walk-through a complex calculation and visualization. Thank you

  • @TomaszBI
    @TomaszBI Před 4 měsíci +1

    Yo, this number formatting is wicked. I have never expected to see it in real life.

  • @francescorambaldi1230

    You are a legend! I've been stuck with this for days and you solved my problem! Thank you a lot!!!!

  • @sanjeevsoni6793
    @sanjeevsoni6793 Před 3 lety

    very very well explained, So many topics covered. Well Done Goodly.

  • @bharathkumar-sq3qy
    @bharathkumar-sq3qy Před 3 lety

    Excellent, Looking forward to more Videos. The way you explain is very catchy and easy to understand... Many Thanks...

  • @TD-mp5nf
    @TD-mp5nf Před rokem

    Thanks Chandeep! This solution works well. I have tried to adapt it to calculate top performers for the next level of granularity. I have an Agent Table in my model. Some Individual agents may be part of different networks (next level of granularity). I produced measures to calculate top performing networks. When doing so, the agents who do not belong to any network were added to "Others". I am struggling with the ranking measure though, to have the "others" bar at the bottom. I would be very grateful for your help with this!

  • @user-ll9qw3zo3y
    @user-ll9qw3zo3y Před 2 lety

    Very useful and well explained tutorial. Thanks for that!

  • @feliperodrigues1549
    @feliperodrigues1549 Před rokem

    Thank you brother, I'm from Brazil and your video helped me a lot to solve important issues in my work, thank you for sharing, a big hug from Brazil!!

  • @ExcelSpark
    @ExcelSpark Před 3 lety

    You are amazing sir,, I do not bore with your all videos. I want training for DAX.

  • @wayneedmondson1065
    @wayneedmondson1065 Před 3 lety

    Thanks Chandeep. Lots to learn here. Thanks for walking through it step by step. Thumbs up!!

  • @hskalsi832
    @hskalsi832 Před rokem

    Spell bound. How a complex problem solved with ease. And , the way you explained each step is super. Keep enriching us with your great ideas.
    How can we get the top product of the current year and show its trend over the years?

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

    Excellent and very easy way , thank you for video

  • @OwaisAkber
    @OwaisAkber Před 2 lety

    Amazing use of DAX. Thanks for sharing such great techniques.

  •  Před 2 lety

    Agradeço pela excelente aula. Muito prático o entendimento, ajudou bastante !!!!

  • @manuelcarvalho3232
    @manuelcarvalho3232 Před 2 lety

    really Excellent tutorial! very well explained and really helpful especially if you want build a Pie chart! Many thanks!

  • @chandangupta9148
    @chandangupta9148 Před 5 měsíci

    This is really solved my biggest problem Thank you so much!!

  • @saltanatrakhymbayeva7576

    So nice to see you in the corner of the video!

  •  Před 2 lety

    Simply, thank you!

  • @didieratehortuamorales4211

    Great Video!
    Thanks for sharing
    Greetings from Medellin-Colombia

  • @astridlaurence8223
    @astridlaurence8223 Před 2 lety

    Thank you for THIS, great and excellent learning

  • @kamransamad9686
    @kamransamad9686 Před 2 lety

    wonderfully explained, thanks.

  • @annaokarmus1334
    @annaokarmus1334 Před rokem +2

    Hi! Many thanks for this video! I love the way you explain all aspects. 😊
    Would it be possible for you to show how to set up the formula to get correct totals if we want to show tabular view? Right now the total is the sum of top N 😢

  • @janwillemvanholst
    @janwillemvanholst Před 2 lety

    Excellent explanation. Thanks!

  • @vicky-mx2ku
    @vicky-mx2ku Před rokem

    Awesome video! Hats off to you for explaining the part very neatly and easily. Keep posting such videos.

  • @sreekanthgundlapalli7393

    Thank You, Very Well Explained

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

    In your data model, join the pseudo table to the main table that it was built from. The calculation/measure to sum or count will use that main table. Once that join is there, from the pseudo table to the main table (1:M) then you should be good. If not, look for errors. For example, it didn't work at first for me because I defined by 'Other' category as 'Other' instead of 'Others'. When it came to the Top N measure I used what I saw which was 'Others'. Oops. When I changed that to 'Other' then it worked. Nice job by the creator but also nice feedback from the community to fill in the gaps.

    • @sambrown4210
      @sambrown4210 Před rokem

      I have linked my pseudo table to the main table but I still cannot get the topN function to get the total sales figure to show up. What am I doing wrong?

    • @powerbinareal
      @powerbinareal Před rokem

      Legal

    • @alicedwonderland7733
      @alicedwonderland7733 Před rokem

      Yep, without joining the pseudo table the Top N measure won't work.

  • @KoundinyaPulipaka
    @KoundinyaPulipaka Před 3 lety

    Super informative Thankyou so much 🤝

  • @joserobertodantas1516
    @joserobertodantas1516 Před 8 měsíci

    After a few weeks, I had to watch this video again, and finding - 21:14 - saved me a lot of time

  • @tameraziz2104
    @tameraziz2104 Před 3 lety

    Many thanks - really perfect!

  • @ramonillarramendi3191
    @ramonillarramendi3191 Před 2 lety

    Wonderful. Thank you very much!!

  • @shwetadalal389
    @shwetadalal389 Před 2 lety

    One Suggestion! You can also use what-if parameter for topn value selection. In that case you wouldn't require a separate table for slicer!!

  • @Anilkumar-jo8nj
    @Anilkumar-jo8nj Před 3 lety

    Thank you Chandeep it was a great video.
    I have a requirement like one table and one slicer
    slicer values like A, B, C if I click a then display b+c values and if I click b then a+c values like that...

  • @sukhomoyb
    @sukhomoyb Před 3 lety

    Thanks for sharing these tricks ...

  • @andreeamorgociu2541
    @andreeamorgociu2541 Před rokem

    Thank you! This was very insightful and useful!

  • @majidismayilov4027
    @majidismayilov4027 Před 11 měsíci

    Friend! You are a genius!

  • @robertduncan5001
    @robertduncan5001 Před rokem +2

    This is a great guide and clear however is there a way to add additional slicers from other tables that will still show the "Others" on the chart?

  • @claudiolob
    @claudiolob Před 2 lety

    Incredible, man!!

  • @eswarsonu1115
    @eswarsonu1115 Před 3 lety

    Excellent Session.

  • @nagampravallika4843
    @nagampravallika4843 Před 2 lety

    Thanks for the video. Can you please advice , I am able to get the Clustered chart for top 5products+Others but I need a Stacked Chart with the split of each bar for Top 5 Products eg:Top1,Top2.... to be splinted on the basis of Model Name according to the Dataset you have provided.

  • @sunwayr
    @sunwayr Před 3 lety

    Great Video and thank you for sharing this with us. I have a question, is there a way display the top 3 product as stacked column char ?

  • @pavankumarreddy189
    @pavankumarreddy189 Před 3 lety

    Superb video Chandeep.

  • @yanasenko1097
    @yanasenko1097 Před 3 lety

    Man, you're amazing!

  • @toirshad
    @toirshad Před 3 lety

    Loved it!

  • @vishnupp5944
    @vishnupp5944 Před rokem

    Amazing video. really useful and intellectual idea

  • @JayantShettigar-pt6uo

    the way you explained was awesome , keep up the good work

  • @ziyacaylak3270
    @ziyacaylak3270 Před 2 lety

    GREAT JOP MANY THANKS

  • @tarunteja9162
    @tarunteja9162 Před rokem

    Really a great video with clear explanation.

  • @HemanthKumar-lb4xt
    @HemanthKumar-lb4xt Před rokem

    Awesome this was one of interview questions for me I got the answer

  • @satishkumardommeti8282

    Excellent 👍

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

    Thanks, great help! How can we show the grand total to include the "others" in its sum?

  • @kennethstephani692
    @kennethstephani692 Před 2 lety

    Great video!

  • @seamushand8439
    @seamushand8439 Před rokem

    Very useful. Thank you

  • @olunugaoladipupo7058
    @olunugaoladipupo7058 Před 2 lety

    Awesome!!

  • @marekplsko1316
    @marekplsko1316 Před 3 lety

    HI, Excellent tutorial, thank you. What if I needed to find out how many times a product appeared in TOPN, for example in 2004? Let's say I evaluate TOPN on a weekly basis. I can't create a virtual table and then view the result. The visual obviously has a problem with the summarize and summarize columns functions. Is there a solution?

  • @danusgamearcade6839
    @danusgamearcade6839 Před 2 lety

    Thank you, I really appreciate your help...it's really great.... :)

  • @timple11
    @timple11 Před 3 lety

    Great Video

  • @gayatrilshinde1560
    @gayatrilshinde1560 Před rokem

    Great one

  • @muhammadbabadjanov
    @muhammadbabadjanov Před rokem

    Thank you very much! You are amazing!

  • @mpscott1006
    @mpscott1006 Před 3 měsíci

    you save lives !

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

    Thanks a lot your work is great. can you share one video for chart formatting and full report formatting. if possible please share all element formatting video.

  • @jicellannbordaje
    @jicellannbordaje Před 2 lety

    Hi Sir - Thank you very much for this amazing video. One question. How do I let power BI recognize the list of categories and other information (like in my case i have customer, contract per customer and hours by employees) from that OTHER list combined? every time I click others on my chart, the total cards will show only blank.

  • @mann5032
    @mann5032 Před 6 měsíci

    thanks for the video but its super tricky

  • @johncatsicas101
    @johncatsicas101 Před 3 lety

    Thank you Chandeep - this is teh type of the analysis that makes analysis excellent. We analysts need to make it easier for the consumers to make it easier to digest the huge amounts of data. Thank you Sir

  • @Shaan0112
    @Shaan0112 Před rokem

    Thanks Chandeep for this amazing video. (Already seen Sqlbi masters alberto)..but you have great explanation 👍. Could you show how this pseudo table is connected with sales table?

  • @lokanathdash2845
    @lokanathdash2845 Před 2 lety

    Thank you so much for this.. Its really helps a lot.. Can we also add subtotal in the graph.. Please reply

  • @BbabbittGolf
    @BbabbittGolf Před měsícem

    Super Helpful Video -- How would adjust this to rollup correctly in a matrix? Currently, I am getting this to show only values of the top values and not the "others"

  • @stephenbrincat7124
    @stephenbrincat7124 Před 3 lety

    Excellent explanation, one question if the others value is higher than the TopN how can I place in bottom of the list?
    Thanks

  • @ojhaashirbad
    @ojhaashirbad Před 2 lety

    Amazing content

  • @soumyendupaul9556
    @soumyendupaul9556 Před 11 měsíci

    Great Video!! Could you make a video on DAX function openingbalanceMonth, Quarter & Year

  • @ramakrishnachennupati2013

    Great Video . Have you joined pseudo product table with sales table?

  • @IlariaLongoDorni
    @IlariaLongoDorni Před 2 lety

    thanks a lot. you made my day

  • @saikrishnach777
    @saikrishnach777 Před rokem

    Excellent content

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

    Awesome video but I'm stuck on one point, your Total Sales parameter. Can you explain how you built the parameter?

  • @nsuresh1
    @nsuresh1 Před rokem

    Nicely explained.

  • @anisshaikh5325
    @anisshaikh5325 Před 3 lety

    Superb

  • @andrestricker4118
    @andrestricker4118 Před 2 lety +10

    18:14 Thanks a million. But do you know if there is a way to also calculate the totals correctly?

  • @abdulqadeerkamangar6279

    Hi Chandeep, hope you're doing well..
    How can I create stacked bar chart considering only top5 products and countries as legend and on X-axis?
    I am only able to select top products using topN...

  • @LuckVagner
    @LuckVagner Před 3 lety

    SWEEEEEEEEET!!! Thanks for that!!!!

  • @sharadkumarpani7625
    @sharadkumarpani7625 Před měsícem

    Its not one product left. Its when each row acts as a filter when we drag TOP N sum then it means that there is one value that it has. So one value would always be among the top 3 or bottom three or any three or max three anything . Hence it is giving the sales amount of that particular value in product column.

  • @vineetyoutubr5
    @vineetyoutubr5 Před 3 lety

    You are god of Power BI

  • @alicedwonderland7733
    @alicedwonderland7733 Před rokem

    Nice tutorial! However, how did you add the title variable in the text visual?

  • @franciscoclaudio4818
    @franciscoclaudio4818 Před 2 lety

    congratulations for the video.
    Doubt: if I click on 'others' will it cross filter?

  • @kazanduryI
    @kazanduryI Před 2 lety

    you are a beast!!

  • @AnalyticalJha
    @AnalyticalJha Před 8 měsíci

    HI, Thanks for this. Can we make the category dynamic by field parameter instead of product, we can choose Shade, Category, Customer, State etc on the report like top n days?

  • @kamalahwal7412
    @kamalahwal7412 Před rokem

    How would you tackle this when the dataset includes multiple sale measures. For instance, actual sales and budgeted/forecasted sales?

  • @ankurarora7632
    @ankurarora7632 Před 8 měsíci

    Great Video, similar to this video, can you make a video on top n plus others PERCENTAGE wise.

  • @nurmasoud1775
    @nurmasoud1775 Před 2 lety

    Hello, when I use this measure with months on column, it gives me the top N for each month. How can I make it to calculate topN based on total and show only those fields?

  • @jeff127999
    @jeff127999 Před 2 lety

    You are a legend :)