Introducing RANKX in DAX

  Рет қаралды 30,552

SQLBI

SQLBI

Күн бұрын

RANKX is a simple function used to rank a value within a list of values. Its use is simple, but it can be a source of frustration for newbies.
Article and download: sql.bi/760169?aff=yt
How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt
The definitive guide to DAX: www.sqlbi.com/books/the-defin...

Пікірлер: 52
@sajilakl
@sajilakl Жыл бұрын
Best Dax teacher in the world 😊
@shubhammittal6509
@shubhammittal6509 Жыл бұрын
Alberto, you have extended the horizons of 'EXPLAINING' !! ALL THE BEST !!
@user-ir6ct3xh3y
@user-ir6ct3xh3y 6 ай бұрын
Very nicely explained RANKX function with examples; explanation was simple to understand and to the point.
@jonbaylis2203
@jonbaylis2203 Жыл бұрын
Great explanation as always. Certainly made it easier to understand once you visualise that lookup table. Thanks Alberto. 👊👍
@kot23
@kot23 Жыл бұрын
I've been using RANKX a lot, but was doing so rather on my gut feeling; thanks to your video, visualing the lookup table makes everything clearer. Thanks for that insight Alberto!
@JohnSullivan1
@JohnSullivan1 Жыл бұрын
Fantastic as always. Thank you Alberto!
@drivetrainerYT
@drivetrainerYT Жыл бұрын
Noone expained ranking tools better. Thank you, Alberto.
@MazharShakeel
@MazharShakeel 6 ай бұрын
Always amazing & descriptive explanation! Thanks SQL BI!
@fadilyassin4597
@fadilyassin4597 Жыл бұрын
you and your friend understand (I Named you the CIAOS with S) understand very well what you are talking about and know how to teach it to others and that is alone a big skill thank you
@masoudpesaran9721
@masoudpesaran9721 Жыл бұрын
Brilliant video. Clearly explains behind the scene for RANKX(), and explains ISINSCOPE()
@ivanrybalchenko7225
@ivanrybalchenko7225 9 ай бұрын
Thank you! Brilliant explenation, especialy part about how to use Value argument.
@michaelmays9415
@michaelmays9415 Жыл бұрын
Fantastic video, Alberto!
@tameraziz2104
@tameraziz2104 5 ай бұрын
Thank you so much. I enjoy learning from you!
@kostaskolotouros4345
@kostaskolotouros4345 Жыл бұрын
Great explanation. Thank you!
@Bharath_PBI
@Bharath_PBI Жыл бұрын
Crystal clear, thank you 👍
@terehernandezdemeneghi1616
@terehernandezdemeneghi1616 5 ай бұрын
Perfect!! I really love how you explained it. Just a question, how can we fix the next situation: We have same summatory values, so, we have in the rating 2 registers with the same ranking. How can we make a difference on those registers? Because I want to use the ranking for to make an accumulative summatory for a pareto chart. Thanks in advance!
@wmfexcel
@wmfexcel Жыл бұрын
Thank you very much for the video. Such a good explanation that I know why we need the 3rd parameter clearly now! In my experience in using RANKX, I am always struggling to find a way to make it work dynamically. What I mean is when we write the DAX to rank, we have to have the target attribute in mind as it will be part of the DAX code, e.g. BRAND. When we can the BRAND to PRODUCT, it doesn't work and we need to modify the DAX code. So I am wondering if there is an effective way to RANK based on the item(s) displayed on the visual? Appreciate your advice.
@praticandopowerbi1220
@praticandopowerbi1220 Жыл бұрын
Muito obrigado por compartilhar conhecimento estou aprendendo muito
@craigofficially
@craigofficially Жыл бұрын
Great video man!
@sandeepbarge4699
@sandeepbarge4699 Жыл бұрын
Hi! Thanks for the video. Is there any way to ensure that each row in table visual get distinct rank even in case of Ties?
@alexdeborbamonteiro563
@alexdeborbamonteiro563 Жыл бұрын
Maravilhosa explicação. Estudantes de DAX do mundo todo se beneficiam de tanta generosidade. Obrigado!!!
@robrayborn1349
@robrayborn1349 Жыл бұрын
Always amazing!
@mazenalali7810
@mazenalali7810 Жыл бұрын
Such a fantastic video! one of the challenges we face in the development sector is to sort people into age groups. these "segments" change from one purpose to another so this is a great way to navigate storage vs. reporting requirements for this information If I may ass a curve ball to this function: Let's say that the sales table holds values in different currencies, and you want to rank based on USD. so, the value we are sending to be ranked has to be converted before you pass it. Oh wait, you just write a measure and pass that! doh! Great content - my previous question is an example of how much I "got it" but please correct me if I totally whiffed
@serban2743
@serban2743 Жыл бұрын
This is a very useful video. I am facing the following situation: - I created a RANKX measure that ranks the Customer by Sales. This works just fine ([Sales] = sum(Sales[Sales amount]) and I am showing it in a table visual - My problem is when I add another measure to the visual. If I add [Order Qty] = sum(Sales[Order Qty], then the RANKX stops working. The Customer[Customer] column is not sorted by other columns. RANKX measure = RANKX( all(Customer[Customer]) ,[Sales] ,,DESC,Dense ) Any help will be greatly appreciated.
@sbn4862
@sbn4862 Жыл бұрын
THANK YOU VERY MUCTH MrAlberto.This vidio as bonus for me. Reading the book I always thout how looks LOOKUPTABLE it's. and I've some questions. 1.What aboute when selecting Brands in the second exemple. (Statik ranking from 0 to10 000 000 )? Calculatetable(table,Allselected()) dosen't work. 2 What is the diferense between Isinscope() and Hasonevalue()? I allways use Hasonevalue()
@3danim8r1
@3danim8r1 Жыл бұрын
Great !!!! Thanks for sharing.... I have one question related to DAX where I can ask that question...
@lindabond9307
@lindabond9307 Жыл бұрын
Thank you and see you next week at Servian, Melbourne ;)
@SQLBI
@SQLBI Жыл бұрын
Marco is in Australia, not Alberto!
@RafaelAyres
@RafaelAyres Жыл бұрын
Amazing!!
@Ultramarplogic
@Ultramarplogic Жыл бұрын
Can you make a video explaining the RANKX to rank users by Category? Like, Ranking on users with level 3. Thank you.
@ravishmahajan9314
@ravishmahajan9314 7 ай бұрын
But my doubt here is ALL(product[brand]) should ignore the filter coming from Brand column in visual. But its not doing that. What is the reason?
@coolblue5929
@coolblue5929 Жыл бұрын
Sorry, I’m unclear, is there a relationship with the segment table, or does it get the context through data lineage, or…?
@user-ju1it8wf2j
@user-ju1it8wf2j Жыл бұрын
Awesome! I now know about ISINSCOPE also! Thank you!
@Vpatel169
@Vpatel169 5 ай бұрын
its not working for me: This is my measure: RANKX(ALLSELECTED('Dealer Ranking'[Counter Party]),[Ranking Size (Vol)],,DESC)) . Ranking size vol is the sum of vol filtered on "Type", The result im getting is not starting with 1 but it starts with 2,2,3,4,5,7 etc when a filter is applied (slicer)??
@kassiowifried
@kassiowifried Жыл бұрын
Good job
@maci6990
@maci6990 Жыл бұрын
Just excellent
@nikakalichava8012
@nikakalichava8012 11 ай бұрын
Hello SQLBI, Hello Alberto! I had a challenge to rank employees by teams based on their Number of Sales and Sales Amount each month. First I had to rank teams bases on the number of sales and if 2 teams had the same number of sales (let's say both have sold 100 computers) then I had to rank these two by Sales amount (Team X sold 100 computers with sales of 400,000$ and team Y sold 100 computers with sales of 400,500$, team Y is a higher rank). I could not execute this with a single DAX Measure, I had to create a a second Table where I ranked teams... It does work but It takes extra space... I think this should be doable but how...?!
@tigrecaido
@tigrecaido 10 ай бұрын
Great
@parthpatel-wv9vf
@parthpatel-wv9vf Жыл бұрын
Hi Alberto, Thanks for sharing the video. It is very much useful. Where can I access the data set? If you can guide me.
@SQLBI
@SQLBI Жыл бұрын
In the description you can find the link.
@adnanmustafa8082
@adnanmustafa8082 Жыл бұрын
I'm using RANKX and applying RLS but every end user upon logging always see their rank as 1. How can I make them see just their data but see the overall rank?
@paragkhandalkar
@paragkhandalkar Жыл бұрын
If you are using import mode, is there any possibility to calculate rank in calculated column instead of a measure. So that values are stored in table rather than always getting calculated on the fly in measure. Not sure if it will work But just a thought.
@tamerjuma
@tamerjuma Жыл бұрын
I ❤ it
@evilangel4136
@evilangel4136 Жыл бұрын
can we rank from based from multiple measures?
@SQLBI
@SQLBI Жыл бұрын
You can with the new RANK version: dax.guide/rank/
@evilangel4136
@evilangel4136 Жыл бұрын
@@SQLBI how about dax in excel?
@MultiGuiles
@MultiGuiles Жыл бұрын
I believe the section should be "Dense", not "Dance".... ;)
@yekhtiari
@yekhtiari Жыл бұрын
315 👍
@omidmehdi
@omidmehdi 20 күн бұрын
You know DAX better than Microsoft 😮
@sunilkumar3112
@sunilkumar3112 Жыл бұрын
RANKX is not workinng even after using ALL function. It is still giving 1 for all
@SQLBI
@SQLBI Жыл бұрын
Check the sample file you can download from the article and compare it with your model.
@dinethprabash1001
@dinethprabash1001 5 күн бұрын
Very confusing. Never teach something first and then say it doesn’t work that way. Always show the correct way of doing it first, because we are all keeping our eyes and ears open to learn. When you suddenly say you taught us an incorrect way, it’s frustrating. I stopped watching at 3:30
Introducing ALLSELECTED in DAX
14:07
SQLBI
Рет қаралды 14 М.
Introducing RANK window function in DAX
15:24
SQLBI
Рет қаралды 25 М.
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 30 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 76 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 7 МЛН
TopN CONFUSION in Power BI | When the Top3 DOESN'T return 3 items
16:54
Функция RANKX
9:27
Elbina Rizakhanova
Рет қаралды 2,5 М.
When to use KEEPFILTERS over iterators
18:56
SQLBI
Рет қаралды 47 М.
DAX Fridays Battle #187: RANKX vs TOPN
8:14
Curbal
Рет қаралды 33 М.
Advanced RANKX - How To Understand This Function More Deeply
11:33
Enterprise DNA
Рет қаралды 37 М.
Differences between GROUPBY and SUMMARIZE
28:30
SQLBI
Рет қаралды 34 М.
Power BI.DAX.RANKX.Как отсортировать и присвоить рейтинг данным на примере Dataset FIFA 2019
11:51
Анализ и визуализация данных [Power Query,Power BI]
Рет қаралды 2,2 М.
All vs Allselected vs Allexcept DAX | Power BI Interview
12:25
LearnWidGiggs
Рет қаралды 19 М.
Телефон-електрошокер
0:43
RICARDO 2.0
Рет қаралды 1,3 МЛН
Сколько реально стоит ПК Величайшего?
0:37
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
Top 50 Amazon Prime Day 2024 Deals 🤑 (Updated Hourly!!)
12:37
The Deal Guy
Рет қаралды 1,4 МЛН