TOPN Function in DAX

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 พ.ย. 2024

ความคิดเห็น • 32

  • @xiaojienan7891
    @xiaojienan7891 5 หลายเดือนก่อน +3

    5hrs research on TH-cam. your TOPN explanation 6 mins is the best and finally i understand, thankyou

  • @KonkaM-z4z
    @KonkaM-z4z 17 วันที่ผ่านมา

    nice exxplaination i could understood easily sir thank you sir we will keepwaiting for more unknown things in power bi..

  • @vikramsingh-ws2nn
    @vikramsingh-ws2nn 4 ปีที่แล้ว +1

    Great explanation Sir, please upload more videos for DAX ....

  • @loveall2033
    @loveall2033 4 หลายเดือนก่อน

    Best video about top n

  • @williamarthur4801
    @williamarthur4801 ปีที่แล้ว

    I think you could do a bit more with this function, I find it one of the most confusing, especially regarding order and ties, which always remind me of the way gold ties are decided and just as confusing.

  • @johnbrenner7089
    @johnbrenner7089 3 ปีที่แล้ว

    You can you MAX() to receive a single value form a table expression. I used what I learned to get a week high in the previous year.

    • @lavatr8322
      @lavatr8322 3 หลายเดือนก่อน

      how do i get the product name that has that MAX value in that row using DAX

    • @johnbrenner7089
      @johnbrenner7089 3 หลายเดือนก่อน +1

      @@lavatr8322 I would use the MAXX function. e.g. CALCULATE(MAXX({TableName},{ProductName}),{FieldName} = MAX({FieldName}))

  • @Leopar525
    @Leopar525 3 ปีที่แล้ว

    Can I use topn as a filter along with a dax topn? Or is it considered multiple topn and thus not working?

  • @yohannanpchacko9896
    @yohannanpchacko9896 4 ปีที่แล้ว +2

    Hi,
    Can You. Make ABC analysis in category wise, Subcategory, location wise based on sales value or average sale value (data will be vertically for instance one item's sales in different date, location, category, Subcategory) abc calculation should be on the basis of Category & subcategory

  • @lavatr8322
    @lavatr8322 3 หลายเดือนก่อน

    I want to find 1 product name that is maximum sold
    I used MAX func. but how do i get the name of product that has that measure

  • @johnj108
    @johnj108 4 ปีที่แล้ว

    This was great..!! Thank you :)

  • @abdulqadeerkamangar6279
    @abdulqadeerkamangar6279 3 ปีที่แล้ว

    How to get top 5 counts from multiple columns values

  • @khurramsheikh1492
    @khurramsheikh1492 3 ปีที่แล้ว

    How to use the same formula for worst selling day?

  • @elizabethmalloy9739
    @elizabethmalloy9739 ปีที่แล้ว

    Hello Goodly. I am having lots of trouble is using TOPN to get the top 10 inventory items for each product category. All inv. items belong to a relevanf product category. Can you help. Eliza

    • @Carol-dc7li
      @Carol-dc7li 2 หลายเดือนก่อน

      I thunk this would best be solved using the RANKX() function Eliza'

  • @arghyadutta9091
    @arghyadutta9091 ปีที่แล้ว

    Great

  • @pedrojmanuel
    @pedrojmanuel 2 ปีที่แล้ว

    hi, can you do a video how you get the top 1 of the most product sold in sales table?

    • @GoodlyChandeep
      @GoodlyChandeep  2 ปีที่แล้ว

      This should help - www.goodly.co.in/top-selling-product-analysis-in-powerpivot/

  • @narendrababu2287
    @narendrababu2287 3 ปีที่แล้ว

    Sir how to get top 10 rows and last 2 rows in a table using dax

  • @vinod71234
    @vinod71234 3 ปีที่แล้ว

    Sir please hindi classes also
    Humble request

  • @rajeshkhanna8709
    @rajeshkhanna8709 ปีที่แล้ว

    How to get only 2 top value and name by measure

    • @GoodlyChandeep
      @GoodlyChandeep  ปีที่แล้ว

      th-cam.com/video/xVLi31mOxeo/w-d-xo.html

  • @sktneer
    @sktneer 4 ปีที่แล้ว +1

    Thanks for the video!
    It looked very simple the way you explained it but when I tried the similar function on a very simple Sales data, it produces an error which says like this...
    "The expression refers to multiple columns, Multiple columns cannot be converted to a scalar value."
    The TopN function I used is this...
    Top Sale = TOPN(1,Sales,[Total Sales])
    Where [Total Sales] measure have the definition like this...
    Total Sales = SUM(Sales[Sales])
    Link to the file is as below...
    drive.google.com/file/d/1Jgl1y4Xkhcaq9LUG4r0Na5d1UEZCGFIh/view?usp=sharing
    It would be great if you can let me know what wrong I am doing.
    Thanks!

    • @GoodlyChandeep
      @GoodlyChandeep  4 ปีที่แล้ว +1

      Try this measure, it should work
      =CALCUALTE([Total Sales],TOPN(1,Sales,[Total Sales]))

    • @sktneer
      @sktneer 4 ปีที่แล้ว

      @@GoodlyChandeep I appreciate your reply, thanks!
      This produces no error however when i add dates and Top Sale measure in a Matrix, it returns all the rows and if i add a card with Top Sale is returns the column Total.
      However the question remains the same that why the measure you showed in the video didn't work for me in the first place while it worked perfectly fine for you?
      Could you please check the file (I shared the file link in my original reply) and confirm if I am getting the correct output?
      I also think this would be a great topic for your next video where you can explain the reason behind this unexpected error so that it would be helpful to many of the users who are following your videos and trying to learn Power BI Dax Functions.
      Thanks again for your reply.

    • @GoodlyChandeep
      @GoodlyChandeep  4 ปีที่แล้ว +1

      @@sktneer If you revise the DAX Code, you'll get the best selling day
      Top Sale = CALCULATE([Total Sales],KEEPFILTERS(TOPN(1,ALL(Sales),[Total Sales])))
      Drag the date from the sales table and Top Sale Measure in a Table

    • @sktneer
      @sktneer 4 ปีที่แล้ว

      @@GoodlyChandeep Yep, that produced the desired output.
      Btw please let me know if you ever find out the reason why the same formula which you tried in the video didn't work for me? Actually that's something strange.
      I understand that TopN returns a Table not a scalar value so if I insert a New Table with the expression TOPN(1,Sales,[Total Sales]), it creates a New Table with one row with the highest sale but what happens when the same function is applied to a measure? Why didn't it work like what you showed in the video? I am confused.
      Thanks so much for your time and reply, appreciate a lot.

    • @GoodlyChandeep
      @GoodlyChandeep  4 ปีที่แล้ว +1

      @@sktneer I have explained the reason in the video.

  • @kalyanirayudu6885
    @kalyanirayudu6885 ปีที่แล้ว

    excellent bro