DAX Fridays!

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

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

  • @lawrenceogun389
    @lawrenceogun389 ปีที่แล้ว +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. 👍

  • @brendonbird8988
    @brendonbird8988 3 ปีที่แล้ว +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!

  • @BrunoAraujo-po2lm
    @BrunoAraujo-po2lm 2 ปีที่แล้ว +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!!!

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

      At your service ☺️

  • @lorenzoyniguez7008
    @lorenzoyniguez7008 4 ปีที่แล้ว +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!

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

      Glad to hear!

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

    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
    )
    )

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

      Thanks for sharing!

  • @GHRichardson
    @GHRichardson 5 ปีที่แล้ว +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  5 ปีที่แล้ว +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

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

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

  • @samanehkhakbaz8815
    @samanehkhakbaz8815 5 ปีที่แล้ว

    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  5 ปีที่แล้ว

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

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

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

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

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

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

    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  ปีที่แล้ว

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

  • @garimaparmar140
    @garimaparmar140 19 วันที่ผ่านมา

    If I apply any filter to this, I want to see the top 5 according to the filter and the rest values should fall into others according to the filter selected.
    How can I achieve this?

  • @jbgonzalez13
    @jbgonzalez13 5 ปีที่แล้ว

    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  5 ปีที่แล้ว +1

      Thanks for the feedback:)
      /Ruth

  • @saiyash
    @saiyash 4 ปีที่แล้ว +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

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

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

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

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

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

    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

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

    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!

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

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

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

      My pleasure Alexis!!

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

    You're amazing! Thank you for all!

    • @CurbalEN
      @CurbalEN  2 ปีที่แล้ว +1

      Thanks! 🎉

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

    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!

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

    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

  • @shahabhaidar
    @shahabhaidar 4 ปีที่แล้ว +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 ปีที่แล้ว

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

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

    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

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

    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!

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

    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 ?

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

    A circular dependency error occurred when I try this

  • @ayobamiologun9184
    @ayobamiologun9184 5 ปีที่แล้ว

    Thank you Ruth.
    More wisdom for you.

    • @CurbalEN
      @CurbalEN  5 ปีที่แล้ว +1

      :) and Happy Friday!
      /Ruth

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

    Thanks, you made that very simple!

  • @vishaldaharwal6773
    @vishaldaharwal6773 2 หลายเดือนก่อน

    Ma'am how to use parameters in place 4 ????

  • @frankgovers8420
    @frankgovers8420 5 ปีที่แล้ว +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  5 ปีที่แล้ว +1

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

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

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

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

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

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

    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?

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

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

  • @maxzr
    @maxzr 4 ปีที่แล้ว +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 4 ปีที่แล้ว +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 4 ปีที่แล้ว

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

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

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

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

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

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

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

  • @Angel-o5d2x
    @Angel-o5d2x ปีที่แล้ว

    You are bloody amazing

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

      You too!

  • @ReneLopez-vb6gb
    @ReneLopez-vb6gb 3 ปีที่แล้ว

    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.

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

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

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

    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?

  • @vamsidhargandikota2221
    @vamsidhargandikota2221 4 ปีที่แล้ว +3

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

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

      Did you ever figure this out?

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

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

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

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

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

      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 4 ปีที่แล้ว

      @@sunrayminor4726 YOU ARE A GOD SUNRAY!

  • @belizatube
    @belizatube 5 ปีที่แล้ว

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

    • @CurbalEN
      @CurbalEN  5 ปีที่แล้ว

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

  • @christopherforbes5195
    @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  ปีที่แล้ว

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

  • @MartinKuzmicz
    @MartinKuzmicz 4 ปีที่แล้ว +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 10 หลายเดือนก่อน

      Found solution for this scenario?

  • @JGNiDK
    @JGNiDK 5 ปีที่แล้ว

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

    • @CurbalEN
      @CurbalEN  5 ปีที่แล้ว +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

  • @YoniWol
    @YoniWol 5 ปีที่แล้ว

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

    • @CurbalEN
      @CurbalEN  5 ปีที่แล้ว

      Glad it helped!
      /Ruth

  • @smpa0137
    @smpa0137 5 ปีที่แล้ว

    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.

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

    Thats brilliant! Such an easy solution!

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

    That was great! Thanks!

  • @feng3625
    @feng3625 5 ปีที่แล้ว

    Your video is always useful! Thank you so much

    • @CurbalEN
      @CurbalEN  5 ปีที่แล้ว

      Thanks for the feedback:)
      /Ruth

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

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

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

    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  4 ปีที่แล้ว +1

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

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

    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 3 ปีที่แล้ว

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

  • @Dimiliv1981
    @Dimiliv1981 5 ปีที่แล้ว

    Clever. Thanks for sharing your solution 👍

    • @CurbalEN
      @CurbalEN  5 ปีที่แล้ว

      My pleasure, glad it was useful!
      /Ruth

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

    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.

  • @phanidivi3613
    @phanidivi3613 5 ปีที่แล้ว

    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  5 ปีที่แล้ว +1

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

    • @phanidivi3613
      @phanidivi3613 5 ปีที่แล้ว

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

  • @stephenbrincat7124
    @stephenbrincat7124 5 ปีที่แล้ว

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

    • @CurbalEN
      @CurbalEN  5 ปีที่แล้ว

      My pleasure and Happy Friday :)
      /Ruth

    • @stephenbrincat7124
      @stephenbrincat7124 5 ปีที่แล้ว

      @@CurbalEN Happy weekend😊

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

    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  4 ปีที่แล้ว

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

  • @paradeen2730
    @paradeen2730 5 หลายเดือนก่อน

    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

  • @mathewinmuscat
    @mathewinmuscat 5 ปีที่แล้ว

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

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

    Gracias!!

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว +1

      Un placer!

  • @janet7934
    @janet7934 5 หลายเดือนก่อน

    Thank you sooo much!!!

  • @JGNiDK
    @JGNiDK 5 ปีที่แล้ว

    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  5 ปีที่แล้ว

      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 5 ปีที่แล้ว

      @@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

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

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

  • @Navarrous
    @Navarrous 5 ปีที่แล้ว +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  5 ปีที่แล้ว

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

  • @miahoooooooo
    @miahoooooooo 5 ปีที่แล้ว

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

    • @CurbalEN
      @CurbalEN  5 ปีที่แล้ว +1

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

  • @tejeshgour1919
    @tejeshgour1919 5 ปีที่แล้ว

    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  5 ปีที่แล้ว

      Try this:
      m.th-cam.com/video/kRtmb8ftyQc/w-d-xo.html
      /Ruth

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

    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.

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

    Can you make dynamic TopN based on 2 dimension Column

  • @vida1719
    @vida1719 5 ปีที่แล้ว

    Very useful solution!

    • @CurbalEN
      @CurbalEN  5 ปีที่แล้ว

      Quick and easy!! ;)
      /Ruth

  • @roxana-stefanaapetrei6109
    @roxana-stefanaapetrei6109 10 หลายเดือนก่อน

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

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

    Perfecto, muchas gracias :-)

  • @premsagarchatla6404
    @premsagarchatla6404 5 ปีที่แล้ว

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

    • @CurbalEN
      @CurbalEN  5 ปีที่แล้ว

      Wonderful and happy Friday!!
      /Ruth

    • @premsagarchatla6404
      @premsagarchatla6404 5 ปีที่แล้ว

      @@CurbalEN Happy Friday!!!

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

    Vey very nice tips...

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

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

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

    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  4 ปีที่แล้ว

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

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

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

  • @phanidivi3613
    @phanidivi3613 5 ปีที่แล้ว

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

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

    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.

  • @mathewinmuscat
    @mathewinmuscat 5 ปีที่แล้ว

    I am getting a circular dependency, pls help

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

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

  • @mathewinmuscat
    @mathewinmuscat 5 ปีที่แล้ว

    I got it now, thanks

    • @CurbalEN
      @CurbalEN  5 ปีที่แล้ว

      Glad you sorted it out!
      /Ruth

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

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

  • @anshusaxena1263
    @anshusaxena1263 5 ปีที่แล้ว

    Perfect

    • @CurbalEN
      @CurbalEN  5 ปีที่แล้ว

      🎉🎉
      /Ruth

  • @joaquimcosta952
    @joaquimcosta952 5 ปีที่แล้ว

    Very nice....

    • @CurbalEN
      @CurbalEN  5 ปีที่แล้ว

      Thanks!
      /Ruth

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

    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 :)

  • @ArthurPopoviMovo
    @ArthurPopoviMovo 10 หลายเดือนก่อน

    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 5 ปีที่แล้ว

    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  5 ปีที่แล้ว +1

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

  • @edgarabgar4633
    @edgarabgar4633 18 วันที่ผ่านมา

    Didn't work for me, sorry.
    Category TopN+Others =
    VAR RankCategoriesByComplaints = RANKX(ALL('Complaint Details - Category Details'[Categorie]), 'Complaint Details - Category Details'[RowCount],,DESC)
    RETURN
    IF(RankCategoriesByComplaints

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

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

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

    nice you're gorgeous ,this works fine

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

    U made little bit complicated this function