DAX Fridays!

Sdílet
Vložit
  • čas přidán 11. 07. 2019
  • I was recently asked to do a TopN + Others for a customer and in this video I will share my solution with you. #curbal #dax #daxfridays #powerbi
    Link to RANX video: • DAX Fridays! #9: RANKX...
    Gerhard post: blog.gbrueckl.at/2019/05/powe...
    Get Northwind Dataset: • Northwind data source:...
    Link to DAX Fridays survey: bit.ly/2MMM4KK
    Here you can download all the pbix files: curbal.com/donwload-center
    SUBSCRIBE to learn more about Power and Excel BI!
    / @curbalen
    ☼☼☼☼☼☼☼☼☼☼
    POWER BI COURSES:
    Want to learn Power BI? How about you take one of our courses? Here you can find the available courses:
    curbal.com/courses-overview
    ☼☼☼☼☼☼☼☼☼☼
    ABOUT CURBAL:
    Website: www.curbal.com
    Contact us: www.curbal.com/contact
    ▼▼▼▼▼▼▼▼▼▼
    If you feel that any of the videos, downloads, blog posts that I have created have been useful to you and you want to help me keep on going, here you can do a small donation to support my work and keep the channel running:
    curbal.com/product/sponsor-me
    Many thanks in advance!Here you can download all the pbix files: curbal.com/donwload-center
    ▲▲▲▲▲▲▲▲▲▲
    Our PLAYLISTS:
    - Join our DAX Fridays! Series: goo.gl/FtUWUX
    - Power BI dashboards for beginners: goo.gl/9YzyDP
    - Power BI Tips & Tricks: goo.gl/H6kUbP
    - Power Bi and Google Analytics: goo.gl/ZNsY8l
    ************
    ************
    QUESTIONS? COMMENTS? SUGGESTIONS? You’ll find me here:
    Linkedin ► goo.gl/3VW6Ky
    Twitter ► @curbalen, @ruthpozuelo
    Facebook ► goo.gl/bME2sB
    #daxfridays #curbal #dax #powerbi #mvp

Komentáře • 148

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

    I know this is an older video, but thank you. Helped me solve a problem I have been sitting with. Really enjoy the way you explain the logic! Thank you!

  • @lorenzoyniguez7008
    @lorenzoyniguez7008 Před 3 lety +3

    This is great! I've been looking for a good way to add this and definitely easier to follow and implement than some of the measure solutions I have found. Thank you!

  • @lawrenceogun389
    @lawrenceogun389 Před 10 měsíci +1

    This is a great solution you've just provided here. Thank you very much. I've wondered around the web just to find a simple fix and you've provided it. 👍

  • @jbgonzalez13
    @jbgonzalez13 Před 5 lety

    Very very useful tutorial. Thanks you very much Ruth!!! I like a lot your channel because it is structured and easy to find tutorial.

    • @CurbalEN
      @CurbalEN  Před 5 lety +1

      Thanks for the feedback:)
      /Ruth

  • @samanehkhakbaz8815
    @samanehkhakbaz8815 Před 5 lety

    Great Ruth :), I had a look at Gerhard post either , good point in his way of implementing is that it can dynamically cater for different values for N in top N.

    • @CurbalEN
      @CurbalEN  Před 5 lety

      Yes, i mentioned that at the end if the video :)
      Pick the solution, based on your scenario!
      /Ruth

  • @YoniWol
    @YoniWol Před 4 lety

    Great vid - so simple!! Been battling this for days, thank you!

  • @AmySwayzee
    @AmySwayzee Před 2 lety

    Very smart answer. Very cool. I'm impressed and thankful as this is something I was trying to do for my company.

  • @jorparts
    @jorparts Před 3 lety

    Very elegant and interesting solution! I loved it!!!

  • @alexisroj
    @alexisroj Před 3 lety

    I love to see your videos, I can makes a lot of ideas from a simple solutions.
    Thanks

  • @ayobamiologun9184
    @ayobamiologun9184 Před 5 lety

    Thank you Ruth.
    More wisdom for you.

    • @CurbalEN
      @CurbalEN  Před 5 lety +1

      :) and Happy Friday!
      /Ruth

  • @BrunoAraujo-po2lm
    @BrunoAraujo-po2lm Před 2 lety +1

    Omg... You know how I've been struggling to do this on my company whitout sucess!!???? You,ve just saved my life and my sanity! Hahaha Also you are the best Power BI youtuber I've found so far, THANK YOU very much!!!

  • @stephantoenjes4528
    @stephantoenjes4528 Před 4 lety

    Thats brilliant! Such an easy solution!

  • @feng3625
    @feng3625 Před 5 lety

    Your video is always useful! Thank you so much

    • @CurbalEN
      @CurbalEN  Před 5 lety

      Thanks for the feedback:)
      /Ruth

  • @belizatube
    @belizatube Před 5 lety

    I'll definately use it in my projects! Tks, Ruth

    • @CurbalEN
      @CurbalEN  Před 5 lety

      Wonderful ! Gerhard is the mastermind of the solution, so if you have time, give him some feedback on his blog!
      /Ruth

  • @Dimiliv1981
    @Dimiliv1981 Před 5 lety

    Clever. Thanks for sharing your solution 👍

    • @CurbalEN
      @CurbalEN  Před 5 lety

      My pleasure, glad it was useful!
      /Ruth

  • @adriannacook313
    @adriannacook313 Před 3 lety

    Hi Ruth, thanks for another wonderful video! I love the way you make things look so much simpler. I was wondering if you would be able to show me how to do the rank in a 3-level hierarchy. For example:
    Leve 1: I need to find out top 3 of product category by sales.
    Level 2: inside the top 3 category, I need to find out top 1 of sub category by sales.
    Level 3: inside top 1 of subcategory, I need to find out top 1 city by sales.
    Note: Category and city belong to 1 table, and subcategory belongs to a different table. Thank you so much!

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

    Hi Ruth, Another great video and one that makes me think "I can use that right now!". One improvement, though. I think that when we use this in a table, we'd probably want to have the table ordered by rank - but with the 'Others' at the bottom. The only way that I can think of to do that is to have have a separate calculated column that does the same ranking, but instead of using the product name it uses the rank value itself (and, say, 1000000 for the 'Other' option). If you then set your calculated column to be ordered by this new calculated column in the Desktop UI - using the 'Sort by Column' toolbar button, I think that it will give us a better ordering. I wonder if there is a better/neater way...? :-)

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

      Yes, or maybe add the name with the ordering , so concatenate tank and product Name and as you know the ranking you want ( you hardcode it in the if statement) it is no problem to hardcode it for “other”, like: “5. Other”
      /Ruth

  • @stephenbrincat7124
    @stephenbrincat7124 Před 5 lety

    Wow, super cool will definitely use👍thanks for the great videos.

  • @LeticiaSmirelli
    @LeticiaSmirelli Před 2 lety

    This is soooooo awesome Ruth! Thank you very much!!!

  • @matty_taylor
    @matty_taylor Před 2 lety

    Thanks, you made that very simple!

  • @daveportland471
    @daveportland471 Před 3 lety

    Great video as usual . For a dynamic solution I would like to share this the following . It only needs 2 disconnected tables : one named 'ProductsGroup with 1 column [Group] having 2 rows " Top n" and "Others" .The second table named 'ProductsRanking' is a simple one column table [ProductsRanking] for TOP n selection ( 1,2,3,4 etc..) then the measure is quite easy using the dynamic segmentation technique and rankx function where the "TOP" is a rankx at or below the selected value and the "Rest" is a rankx above the selected value as follows:
    Top N and Others=
    CALCULATE (
    [Sales amount],
    FILTER (
    VALUES ( sales[Products] ),
    COUNTROWS (
    FILTER (
    'ProductsGroup',
    VAR Topselection =
    RANKX ( ALL ( sales[Products] ), [Sales amount],, DESC ) SELECTEDVALUE[ProductsRanking]
    RETURN
    SWITCH (
    TRUE (),
    SELECTEDVALUE ( ProductsGroup[Group] ) = "TOP n", Topselection,
    SELECTEDVALUE ( ProductsGroup[Group] ) = "Others", Rest
    )
    )
    ) > 0
    )
    )

  • @willianarboleya5651
    @willianarboleya5651 Před 2 lety

    You're amazing! Thank you for all!

  • @jamiew3986
    @jamiew3986 Před 2 lety

    Thanks, this is great! However, I got another question relating to TopN. I have a bar graph where the values are shown as % of Grand Total, when I filter to TopN, the distribution changed. Is there any way to retain the % display?

  • @Alexandrezification
    @Alexandrezification Před 2 lety

    That was great! Thanks!

  • @smpa0137
    @smpa0137 Před 4 lety

    This is an awesome video !!! Thanks for this. However, I have a question. I followed your method and it does what is supposed to. However, it breaks the data lineage. I am doing a TOPN+Others calculated column for a Business Unit table. I have another Location table where I have those Business Units with Latitude and Longitude. I want to filter the Location table in the visualization window with the newly created TOPN+Others column following your method. But that column can't filter the location table as the data lineage is broken. Any idea how to retain the data lineage with this method. Thank you in advance.

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

    Amazing... thanks for this video !!!!

  • @vida1719
    @vida1719 Před 5 lety

    Very useful solution!

  • @panospa
    @panospa Před 4 lety

    Ruth, how do you enable/view the measure results on the Data tab? (I can only see the columns)

  • @espensrensen7305
    @espensrensen7305 Před 3 lety

    Perfecto, muchas gracias :-)

  • @RomanFilimonov
    @RomanFilimonov Před 3 lety

    Hi Ruth, Many thanks for your videos. Is it possible to do the same under Direct Query?

  • @EricsMaineLife
    @EricsMaineLife Před 4 lety

    Great explanation! I’m trying to do this for top states in my store list table but it seems to only work at the lowest level of granularity. It works for top 10 stores and all other but when I try states it’s listing all states.

  • @joaquimcosta952
    @joaquimcosta952 Před 3 lety

    Vey very nice tips...

  • @TheLeotLion
    @TheLeotLion Před 2 lety

    The data table I am trying to use this on has multiple years worth of data... and unfortunately the above doesnt seem to be working. Is there a way to use the filters to get the TopN+Other to sum by year to get the TopN/Yr+Other ?

  • @premsagarchatla6404
    @premsagarchatla6404 Před 5 lety

    Awesome, I am looking for this kind of solution!!!

  • @janet7934
    @janet7934 Před 14 dny

    Thank you sooo much!!!

  • @AllConsoleGames
    @AllConsoleGames Před 2 lety

    Hey, thanks for this! I have one issue, although this is a really old video so it may not get seen, worth a try!
    I keep getting this error 'Special flag is not allowed as an argument number 3 of function 'RANKX'.'
    And fully don't understand it! I have followed your example to the letter and still get the error, any ideas?
    Thanks!

  • @ReneLopez-vb6gb
    @ReneLopez-vb6gb Před 3 lety

    Hello Ruth, thank you very much for your videos, all very useful! This example of showing a Rank N and Others has been very useful to me, maybe you can help me with this, let's say I have identified a Product X that I want to show it in a similar way to the Other row, that is, how to show a Top N but that does not include this product X, and then show it in another row, it would be to show Top N + Product X + Others, thanks for your help.

  • @frankgovers8420
    @frankgovers8420 Před 5 lety +1

    Great ruth, I would put a variabele for defining top 1, 3, 5 10 in an other table , like selected top and then use this one in combination with a slicer
    TopnSales = IF([Topnothers]

    • @CurbalEN
      @CurbalEN  Před 5 lety +1

      For that, you need to use Gerhard’s measure. Check it out!
      /Ruth

  • @rivanowilliam6610
    @rivanowilliam6610 Před 3 lety

    Thank you for the video! This is really useful for me. Can I use the if function as a measure instead of creating a new column? Because in my case, I need to top rank the count of "ProductName" (let's say I have 10 rows named Cote de Blaye and 5 rows of Thuringer Rostbratwurst) in which there is no column stating about this formula.

    • @CurbalEN
      @CurbalEN  Před 3 lety

      This works only as a calculated column, for a measure, use the blog post I mention on the video.

  • @user-qt9cz2kp6w
    @user-qt9cz2kp6w Před 9 měsíci

    You are bloody amazing

  • @the_legends1989
    @the_legends1989 Před rokem

    Hi Ruth,
    There is a long dax for this in Alberto Ferrari's book which is too long and difficult to understand.
    You nailed it

    • @CurbalEN
      @CurbalEN  Před rokem

      Both tutorials are useful. They go in more depth that I do 😊

  • @mathewinmuscat
    @mathewinmuscat Před 4 lety

    I got it now, thanks

    • @CurbalEN
      @CurbalEN  Před 4 lety

      Glad you sorted it out!
      /Ruth

  • @mathewinmuscat
    @mathewinmuscat Před 4 lety

    What is that sales measure? Is product name unique in that table?

  • @M4gpi3girl
    @M4gpi3girl Před rokem

    I would like to apply this to my dashboard, however I do not work with sales products. I have a stacked bar chart showing the main type of group a charity supports, and so instead of 'sales' I just use the count of each group for my table. How can the method in this video be applied without a 'sales' category to use? Really struggling to find any resources for showing Top N and Others for a dynamic visual that isn't completely sales-focused. Any help or signposting to other forums would be hugely appreciated!

  • @saiyash
    @saiyash Před 3 lety +2

    Hi, this is very helpful, however this is not working for me. Pasted below is my query, and the results do not group the top 5 Currencies & others. My transactional data is for each day, with multiple currency values for the same day, different company. Appreciate any help -
    TopCurrencies+Others by Value =
    Var RankCurrencybyValue = RANKX(ALLSELECTED(DailyBalance[Currency]), [Value_MRate],,DESC)
    Return
    IF(RankCurrencybyValue

  • @welcometomathy
    @welcometomathy Před rokem

    Can I do instead of Others and Top N can I make a row for Avg, Median, Total, like add a metric name to the metrics table

  • @MartinKuzmicz
    @MartinKuzmicz Před 4 lety +1

    Hi, Great video, thanks. But I think there is one problem. This is creating a ranking for the whole table (data). What if you need to use a date filter and have sales from the last month, so the rank should be only based on last month. Will this works too in this case?

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

      Found solution for this scenario?

  • @Styles5001
    @Styles5001 Před 4 lety

    How are you able to enter Products[ProductName] (a table) in your if statement? I keep trying this and it wont let me bc IF statements require scalar values.

    • @CurbalEN
      @CurbalEN  Před 4 lety +1

      You have to create a calculated column instead of a measure
      /Ruth

  • @udayshankarnellore
    @udayshankarnellore Před rokem

    Am using this TopN+Others in Column Chart but I want to show Last Six months data dynamically when I change Month Year slicer. I tried but this TopN+Others is not working.
    Please help with solution for this

  • @joaquimcosta952
    @joaquimcosta952 Před 5 lety

    Very nice....

  • @aydeediaz2307
    @aydeediaz2307 Před rokem

    Hi I have an error that says "A circular dependency was detected: Table[Column]. What this could be? (My value is a measure)

  • @maxzr
    @maxzr Před 4 lety +1

    Hi Curbal. Thanks for this tutorial.
    I've tested the formula in a table with three years of sales registered monthly and it rank everything on the table so, there is no way to have an specific year/month combination (selected with slicers) rank. How could I solve it?
    Thanks in advance.

    • @ritusinghal8631
      @ritusinghal8631 Před 4 lety +2

      Hi Max, that's a relevant ask you raised.
      You need to modify your [Sales] DAX - used by Ruth in her RANKX.
      You need to modify your sum(sales) to accommodate for year/month context:
      CALCULATE( SUM('FACT'[SALES]),
      ALLEXCEPT('FACT', 'FACT'[MONTH], 'FACT'[PRODUCT])
      )
      Disclaimer: You'll have to perform this on your fact table and not Product.

    • @maxzr
      @maxzr Před 4 lety

      @@ritusinghal8631 Thanks for the help. I'll try it.

  • @sillylife13
    @sillylife13 Před 9 dny

    I cant find "download" sample files , i trying to following links but ... where are they??

  • @shahabhaidar
    @shahabhaidar Před 4 lety +2

    Hi Ruth,
    This works really great ! but what if we had to apply other filters within the report?
    for example.
    I need to show the top 5 products with others within the selected category.
    I tried writing below DAX but unfortunately it didn't workout.
    NProducts =
    VAR _ProductRanking =
    CALCULATE (
    RANKX ( Products, [Total Sale],, DESC ),
    ALLSELECTED ( Products[Catogary] )
    )
    RETURN
    IF ( _ProductRanking

    • @gangadharbatti1966
      @gangadharbatti1966 Před rokem

      Hi @shahabhaidar , I am facing the same issue did you get any solution for this. If yes Please provide the solution.
      Thanks in advance

  • @JGNiDK
    @JGNiDK Před 5 lety

    On 3:28 you write [Sales]. Is it a calculated column you have? I can't see it anywhere...

    • @CurbalEN
      @CurbalEN  Před 5 lety +1

      You can see it if you download the file :)
      I think I did a calc column but you can create a measure with SUMX.
      The dataset is northwind.
      /Ruth

  • @sohinisengupta6251
    @sohinisengupta6251 Před rokem

    This is definitely very helpful but didn’t understand how it’s dynamic!! Users cannot change the value for ‘N’ in DAX query/calculated column. It should be done using parameter no??
    Also, how to sorting works to show ‘Others’ on top or bottom always, irrespective of the product names?

  • @gauravarora6611
    @gauravarora6611 Před 4 lety +1

    Nice video :)
    I get a circular reference error while using this! Can you suggest what could be the issue ?

    • @robvermeer5951
      @robvermeer5951 Před 3 lety

      I've got the same issue. do you already have a solution for this?

    • @sunrayminor4726
      @sunrayminor4726 Před 3 lety

      Add the calculated column to the dimension/lookup table, not the fact/transaction table.

  • @phanidivi3613
    @phanidivi3613 Před 5 lety

    hi mam , i have one requirement related to cascading drop down list in power bi.When i select to-date ,automatically the from-date selected with one year before.

    • @CurbalEN
      @CurbalEN  Před 5 lety +1

      Hi! Could you ask in the power bi community? Thanks!
      /Ruth

    • @phanidivi3613
      @phanidivi3613 Před 5 lety

      @@CurbalEN ok mam .thank you once again for wonderful tutorials .it's help lot for me.

  • @phanidivi3613
    @phanidivi3613 Před 5 lety

    Both from and to date diff must year .It is possible in power bi

  • @JGNiDK
    @JGNiDK Před 5 lety

    As I understand, you’re offering the PBIX file, that you use here, for free in your community download? The one with calendar in, that you’re using in this video? But I’m being prompted with a login for your Synology?

    • @CurbalEN
      @CurbalEN  Před 5 lety

      Hi Jan, you don’t need to login on my synology to get my Dax Fridays files. Just click on the link and download.
      /Ruth

    • @JGNiDK
      @JGNiDK Před 5 lety

      @@CurbalEN On iPad the reaction from the webpage was different. It tried to open Synology Drive. On my pc it's fine now. Thank you (again) Ruth

  • @tejeshgour1919
    @tejeshgour1919 Před 5 lety

    How we can remove duplicate rank?
    I have to take top 5 and remaining need to show in "Other" category. Is this possible?

    • @CurbalEN
      @CurbalEN  Před 5 lety

      Try this:
      m.czcams.com/video/kRtmb8ftyQc/video.html
      /Ruth

  • @karnikkalani1516
    @karnikkalani1516 Před 10 měsíci

    its not working for me does the Products name column need to be unique? I have issues with ranking as i have multiple entries of the same products

  • @ricardocontreras
    @ricardocontreras Před 2 lety

    Gracias!!

  • @habidata
    @habidata Před 3 lety

    Really helpful, tutorial. But I met an error when I through this approach with my data, "A circular dependency was detected: Master[TopDomain+Others]." Could anyone know how to deal with it.
    TopDomain+Others =
    VAR RANKTransactionByDomain = RANKX(ALL(Master), [1.Trans_Agreed],, DESC)
    return
    IF(RANKTransactionByDomain

    • @sunrayminor4726
      @sunrayminor4726 Před 3 lety

      Add the calculated column to the dimension/lookup table, not the fact/transaction table.

  • @srikanthravula90
    @srikanthravula90 Před rokem

    This method is not working for me, though I followed all the steps correctly, please help

  • @christopherforbes5195

    This works well when you can create that calculated column, but how can we achieve this if we are basing the rank on a dynamic measure?

    • @CurbalEN
      @CurbalEN  Před rokem

      I think on the video description I showed a resource to do it as a measure.

  • @anshusaxena1263
    @anshusaxena1263 Před 4 lety

    Perfect

  • @miahoooooooo
    @miahoooooooo Před 4 lety

    How to create the same thing but using a measure, not a calculated column? Thanks a lot.

    • @CurbalEN
      @CurbalEN  Před 4 lety +1

      The blog post I mention does that, check it out./Ruth

  • @srikanthravula90
    @srikanthravula90 Před rokem

    can you please share the formula for [Sales] that used in Rankx

  • @divyajha762
    @divyajha762 Před 3 lety

    Can you make dynamic TopN based on 2 dimension Column

  • @karnikkalani1516
    @karnikkalani1516 Před 10 měsíci

    will be still right if I add a slicer by year or it won't as top ten would be calculated without the slicer in consideration.

  • @vamsidhargandikota2221
    @vamsidhargandikota2221 Před 4 lety +3

    when i tried this i am getting error like circular dependency detected

    • @panospa
      @panospa Před 4 lety

      Did you ever figure this out?

    • @roman1241
      @roman1241 Před 4 lety

      @@panospa I'm also getting this message - do you have some thoughts around why this might be happening?

    • @panospa
      @panospa Před 4 lety

      @@roman1241 Unfortunately, I had the same error and could not figure out how to resolve it.

    • @sunrayminor4726
      @sunrayminor4726 Před 3 lety

      Vamsidhar Gandikota You need to add the calculated column in the dimension table like has been done in the video (Product table) and not in the fact or sales table

    • @luanfetter8387
      @luanfetter8387 Před 3 lety

      @@sunrayminor4726 YOU ARE A GOD SUNRAY!

  • @Navarrous
    @Navarrous Před 4 lety +1

    It is cool... but doesn't work well when you apply filters to other dimensions on the dash. Has anyone faced the same issue?

    • @CurbalEN
      @CurbalEN  Před 4 lety

      It should, but it depends on how you have your model set up...
      /Ruth

  • @roxana-stefanaapetrei6109
    @roxana-stefanaapetrei6109 Před 5 měsíci

    Unfortunately it does not work for me because of this: A circular dependency was detected.

  • @andremorabarreira6299
    @andremorabarreira6299 Před 3 lety

    Hello! Could you please do a video explaining how to create temp tables? I would like to create this table as a temporary table and then use the rank function - all inside one measure. this way the rank would vary depending on the filters applied in the report. I would really appreciate this help :)

  • @mathew9665
    @mathew9665 Před 3 lety

    Firstly thank so much for this, however this solution - It's not fully dynamic; is there not a solution for a Top N + Other which is updated per filter/selection interaction - The ranking, and values needs to change based on user selections
    It's rather frustrating as the ability to set a Top N filter to a visual, must determine this some how (it just returns the Top N requested) the remaining would just be those not selected.

  • @info_bus273
    @info_bus273 Před rokem

    A circular dependency error occurred when I try this

  • @mathewinmuscat
    @mathewinmuscat Před 4 lety

    I am getting a circular dependency, pls help

    • @sunrayminor4726
      @sunrayminor4726 Před 3 lety

      Add the calculated column to the dimension/lookup table, not the fact/transaction table.

  • @nikiss8
    @nikiss8 Před 4 lety

    cool. however wish you spent a bit more time on Rankx. Not everyone is familiar with the database you are using. I spent quite a while trying to rank products in one table. seems to work once I created table with unique names.

    • @CurbalEN
      @CurbalEN  Před 4 lety

      I have a few videos solely on rank, search on my channel and you will find them.
      /Ruth

  • @brahmakiran6474
    @brahmakiran6474 Před 2 lety

    Sales in one table and products in one table with blank values ... How it's work🤔

  • @mohammadrezaei4221
    @mohammadrezaei4221 Před 3 lety

    thanks, i think #10: RANK/ TOPN with slicer was better

  • @alibaroroh9355
    @alibaroroh9355 Před rokem

    Curbal.. if u a moeslem, u knowledge will send u to good paradise

  • @DrBarati
    @DrBarati Před 2 lety

    Hi, it’s not obvious what exactly you are doing at 5:20 and around it...

  • @user-ky9hv2xd5t
    @user-ky9hv2xd5t Před 5 měsíci

    it is not working,
    A single value for column 'PRODUCT' in table 'PRODUCTS' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.

  • @vilmarsantos3419
    @vilmarsantos3419 Před 4 lety

    Ruth , o meu dá uma dependência circular foi detectada. O que pode ser?
    VAR Rank = RANKX(ALL(Vendas);[Valor];;DESC)
    RETURN
    Rank

    • @CurbalEN
      @CurbalEN  Před 4 lety +1

      Pues no se, describe tu modelo y el mensaje de error en la comunidad de power bi para recibir ayuda!
      /Ruth

  • @paradeen2730
    @paradeen2730 Před 21 dnem

    Just a warning about this solution. Yes it will categorize into Others and will enable drill through, but will do that only on one filtered scope of the fact table. Filtering other dimension will most likely change the TOPN and Other categories so the usage is very limited. Just making a note about this since I almost started to use it...
    Ruth: You are great though, but this video you might remove since it's so very likely that the usage will not show the correct result

  • @bhuruu
    @bhuruu Před 3 lety

    What if the Dynamic Top N is a measure ? This is one sided solution

  • @rafangel7516
    @rafangel7516 Před 3 lety

    nice you're gorgeous ,this works fine

  • @draco1847
    @draco1847 Před 2 lety

    U made little bit complicated this function