Forum Discussion
Difference Between ALL and VALUES direction
- 6 years ago
Modified your measure to this:
Phase1_GD_Ranking = IF ( HASONEVALUE ( Scores[Team] ), RANKX ( ALLSELECTED ( Scores[Group], Scores[Team] ), CALCULATE ( SUM ( Scores[Goal Differential] ) ), , DESC, SKIP ), BLANK () )
Can you please show what would the end result look like for the statement "How can i make a similar but different expression so i get the 1-4's in the goal differential column on the full table. Basically just stack all those results on top of each other?"
So i've updated and uploaded the PBIX that i'm working with right now. Taking after the pattern that you showed me, but also adding my VAR _group = SelectedValue(Scores[Group]) filter in the calculate.
https://drive.google.com/file/d/1Rl7QuiEjyoJ282zdYb_X7YHZmTYRjZ8K/view?usp=sharing
I hope I laid it out in a way that makes sense so you can see the issue i'm currently having.
I moved group F to the bottom of the page as an example. In the filters pane you can adjust the "rounds" that are in the calculation and the "Qualified" column updates accurately. As well the "Qualified After ..." work according to plan. When filtered down to a group.
But if i try to total up the number of qualified teams I get:
Which may just be a ranking order issue except if i switch from ASC to DESC I get
Which is unfortunately, backwards. Now instead of checking for 1's and 2's for qualification I could check for 3's and 4's, but i'm worried it points to a larger issue in how I'm calculating.