Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
[Edited please see sample file here]
Hello! I'm using this measure to get the item that received the most and least ordered:
Solved! Go to Solution.
Hi @dataaanana ,
We can create measures.
rank1 = RANKX(ALL(Menu),[Items Sold],,DESC)
rank2 = RANKX(ALL(Menu),[Items Sold],,ASC)
the third item(least) = CALCULATE(MAX('Menu'[item_name]),FILTER(ALL('Menu'),[rank2]=3))
the third item(most) =
CALCULATE(MAX('Menu'[item_name]),FILTER(ALL('Menu'),[rank1]=3))
Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dataaanana ,
We can create measures.
rank1 = RANKX(ALL(Menu),[Items Sold],,DESC)
rank2 = RANKX(ALL(Menu),[Items Sold],,ASC)
the third item(least) = CALCULATE(MAX('Menu'[item_name]),FILTER(ALL('Menu'),[rank2]=3))
the third item(most) =
CALCULATE(MAX('Menu'[item_name]),FILTER(ALL('Menu'),[rank1]=3))
Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |