Introducing RANK window function in DAX

  Рет қаралды 29,704

SQLBI

SQLBI

Күн бұрын

Пікірлер: 36
@elliotyip9844
@elliotyip9844 10 күн бұрын
Alberto, your explanation is by far the best I've came across BECAUSE you explain things from the ground up, sharing what are the problems and why other ways are better.
@davidm00ris
@davidm00ris Жыл бұрын
Alberto is by far the person I have learned the most from about DAX. Thanks for the great explanations!
@rinaldi4669
@rinaldi4669 2 ай бұрын
Heartful Thanks to you. Mr. Alberto
@yoshiaaa100
@yoshiaaa100 Жыл бұрын
The explanation as always easy to understand.👌
@common_sense4753
@common_sense4753 Жыл бұрын
Thanks, @Alberto @SQLBI !
@juanamarinzapata7357
@juanamarinzapata7357 Жыл бұрын
Thank you! I solved my problem so easily with your video.
@JC_Rosales
@JC_Rosales 3 ай бұрын
Hi, I really love the way you explain things. I would like to ask how you would go about ranking on both levels. For example, I have a supervisor level and then an employee level, and I would like to rank the supervisor based on the combined performance and at the same time, rank the agents below on the second level.
@tmaris
@tmaris Жыл бұрын
Perfect, as always. Thank you!
@souravkajuri
@souravkajuri Жыл бұрын
This is really useful. Thank You for all you are doing
@fahmywaleed
@fahmywaleed 10 ай бұрын
Excellent content and explanation, one thing to improve if you can split the video into chapters so the viewer can skip back and forth in a convenient way. Thanks for the effort.
@patrickm7760
@patrickm7760 Жыл бұрын
Very good explanation thanks
@JustRandomExplorer
@JustRandomExplorer Жыл бұрын
FINALLY really usable rank function
@mwaltercpa
@mwaltercpa Жыл бұрын
Very practical! I’d much rather use this over RANKX. Thanks Alberto!!
@vklemtz
@vklemtz Жыл бұрын
Hi, thanks for the video! I have a doubt if I want to rank based on a measure which is a multiplication of 2 measures. One is forecast for 3 months variance in quantity and the other is the variance in percentage (comparing snapshot from current to previous month). I have used rankx all selected with the ranking factor, which is the multiplication of these 2 measures. Even though my visual shows the correct values for variance, both in perc. and quantity, it does not rank correctly based on their multiplication. It gives me a sequence of 8,9,10,44, etc. Would you have any idea of what might be the issue, please? Thank you very much!
@williamarthur4801
@williamarthur4801 Жыл бұрын
I wonder if they'll let us power pivot users have it, we still have to use IF ( hasonevalue, etc, instead of selected. vary thorough article, as always, accompanying this video.
@Bharath_PBI
@Bharath_PBI Жыл бұрын
That's great, thank you. If RANK and RANKX are same in performance, except for use case, which would be preferred? X in the function name was an indicator for iterative functions (with few exceptions like FILTER etc.)
@LearnAtHomewithGulshan
@LearnAtHomewithGulshan Жыл бұрын
Rank is user friendly.
@gregoryoliveira8358
@gregoryoliveira8358 Жыл бұрын
I believe FILTER is a iterative function too, because it scanned all rows from the table parameter. And, if my mind is not becoming weak, I remember to listen our great SQLBI guys saying that it is an iterative function in their videos.
@credencial7654
@credencial7654 Жыл бұрын
Perfect and simple
@kingcobra071
@kingcobra071 8 ай бұрын
Thank you for the great tutorial. However, whenever I use it in my query, it says "Not Enogh Memory to complete this operation". Any suggestions would be highly appreciated. Thank you.
@SQLBI
@SQLBI 8 ай бұрын
If the table you provide to RANK is big, it could happen: the table must be materialized to complete the operation.
@Ultramarplogic
@Ultramarplogic Жыл бұрын
This is great, I fixed my RANKX functions with this ones BUT I have an issue that when the value is 0 it's giving me rankings out the total number of users, Example, I only have 100 players to rank for and it's ranking players with 0 goals in the 500 and 1000s, what is wrong with my measure (below)? For the record I intent to rank the players in each level (1-4), that's why I'm using the Allexcept. Measure = RANK( DENSE, ALLEXCEPT (PLAYERS,PLAYERS[LEVEL]), ORDERBY([Total GOALS], DESC, PLAYERS[NAME], ASC ))
@powrigan719
@powrigan719 Жыл бұрын
Very useful, thanks 🙂
@amandeepbasra8673
@amandeepbasra8673 Жыл бұрын
Hi, how could we remove ranking for the months that we don't have sales. I have been trying to solve a similar problem but couldn't succeed
@pepper_lab
@pepper_lab Жыл бұрын
Awesome 👍👍👍
@kawaiigaming2537
@kawaiigaming2537 Жыл бұрын
How can i use it on a card? As i select a filter it shows only 1.
@marelyruiz1321
@marelyruiz1321 8 ай бұрын
You are awesome!
@richardostrea7842
@richardostrea7842 Жыл бұрын
👏👏👏
@lionels839
@lionels839 5 ай бұрын
Alléluia !!
@negares3971
@negares3971 Жыл бұрын
Thanks for your complete explanation. Would you please help me to write DAX Rank for this one, I want something like this table: Total | Year | Rank 300 | 2023 | 1 280 | 2023 | 2 250 | 2023 | 3 400 | 2022 | 1 360 | 2022 | 2 230 | 2021 | 1 Thanks A lot
@gregoryoliveira8358
@gregoryoliveira8358 Жыл бұрын
Hi. This measure should help you: Medida = RANK( DENSE, ALL ( Tabela ), ORDERBY( Tabela[Total ], DESC), PARTITIONBY(Tabela[ Year ]) ) There is a video where they talk about the windows function. I was seeing it and remember your question.
@common_sense4753
@common_sense4753 Жыл бұрын
Hi, @SQLBI @Alberto. What would happen if we were to use All or Values instead of Allselected as the first argument for Addcolumns. I'm just not sure why we use Allselected here.
@SQLBI
@SQLBI Жыл бұрын
ALLSELECTED restores the filters defined outside of the visual.
@common_sense4753
@common_sense4753 Жыл бұрын
@@SQLBI Thanks so much! Yes, I did learn that indeed from your book, but I thought it was needed when I had a scenario where I explicitly wanted to preserve the external filters. Now, I see that it is a good practice to use it by default. Thanks, again.
@LearnAtHomewithGulshan
@LearnAtHomewithGulshan Жыл бұрын
If you use ALL then your ranking will be fixed.
Introducing RANKX in DAX
19:42
SQLBI
Рет қаралды 34 М.
Differences between GROUPBY and SUMMARIZE
28:30
SQLBI
Рет қаралды 41 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 20 МЛН
[BEFORE vs AFTER] Incredibox Sprunki - Freaky Song
00:15
Horror Skunx 2
Рет қаралды 20 МЛН
Power BI SUMX DAX Function Tutorial 📊
6:25
Pragmatic Guides
Рет қаралды 115
Compute a ranking based on multiple columns
22:59
SQLBI
Рет қаралды 57 М.
Row Context in DAX
20:42
SQLBI
Рет қаралды 103 М.
WINDOW Function in ACTION I Examples in Power BI
20:10
How to Power BI
Рет қаралды 96 М.
When to use KEEPFILTERS over iterators
18:56
SQLBI
Рет қаралды 50 М.
Filter context in DAX explained visually
24:40
SQLBI
Рет қаралды 29 М.
How To Rank In Power Bi: Rank Vs Rankx| Essential Guide For Power Bi Interviews| Question 45
17:13
Learn Microsoft Fabric, Power BI, SQL Amit Chandak
Рет қаралды 2,2 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН