From the course: Excel Business Intelligence: Power Pivot and DAX
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Iterator ("X") functions: RANKX - Microsoft Excel Tutorial
From the course: Excel Business Intelligence: Power Pivot and DAX
Iterator ("X") functions: RANKX
- [Instructor] Alright, before we move on I just gotta show you guys a demo with RANKX because it works a little bit differently from SUMX and it's just a really cool function. So I'm back here in my pivot table, same setup as before, breaking down the data by product name, and the idea here is to create a new measure that essentially ranks out these products based on total revenue. So let's give this a name along the lines of Product Rank and if we want specifics, we can just say by Revenue and assigning to Transactions is just fine. And now for something like this this is where RANKX is really useful, because you can use it to rank fields based on all sorts of expressions and measures and things like that. So let's start with RANKX, same syntax here, Table, then Expression and also has a few extra optional ones for dealing with the rank order and ties and stuff like that we're just gonna stick with the basics for now. First piece is the table, so which table contains the items that…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Introduction to DAX functions27s
-
DAX formula syntax and operators4m 5s
-
(Locked)
Common DAX function categories3m 54s
-
(Locked)
Basic math and stats functions12m 45s
-
(Locked)
COUNT, COUNTA, DISTINCTCOUNT, and COUNTROWS10m 35s
-
(Locked)
Logical Functions (IF, AND, and OR)16m 49s
-
(Locked)
Switch and Switch (TRUE)10m 33s
-
(Locked)
Text functions10m 53s
-
(Locked)
The CALCULATE function14m 39s
-
(Locked)
Add filter context with FILTER: Part 19m 20s
-
(Locked)
Add filter context with FILTER: Part 214m 23s
-
(Locked)
Remove filter context with ALL9m 6s
-
Join data with RELATED3m 39s
-
(Locked)
Iterator ("X") functions: SUMX12m 20s
-
(Locked)
Iterator ("X") functions: RANKX5m 33s
-
(Locked)
Basic date and time functions4m 58s
-
(Locked)
Time intelligence formulas17m 2s
-
(Locked)
Speed and performance considerations3m 2s
-
(Locked)
DAX best practices2m 3s
-
(Locked)
-