Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hey Guys
I am trying to build a rank of my table "Gesamt" . I want to know which values are the newest and second newest of "Sum of 7" for each player.
I tried now to build a rank for Diff Date (as the difference between the "date" and today. As I don't want the smallest Diff Date if Sum of 7 is empty I made a measure
Name CodeDatumGewichtSum of 7Diff DateBlank ID
Person 1 | 08.03.2024 | 80 | 0 | 1 | |
Person 2 | 08.03.2024 | 55 | 60 | 0 | 0 |
Person 3 | 08.03.2024 | 90 | 70 | 0 | 0 |
Person 4 | 08.03.2024 | 77 | 80 | 0 | 0 |
Person 1 | 08.02.2024 | 79 | 60 | 29 | 0 |
Person 2 | 08.02.2024 | 53 | 29 | 1 | |
Person 3 | 08.02.2024 | 89 | 29 | 1 | |
Person 4 | 08.02.2024 | 76 | 29 | 1 | |
Person 1 | 08.01.2024 | 81 | 80 | 60 | 0 |
Person 2 | 08.01.2024 | 52 | 60 | 1 | |
Person 3 | 08.01.2024 | 88 | 60 | 60 | 0 |
Person 4 | 08.01.2024 | 75 | 55 | 60 | 0 |
Solved! Go to Solution.
I solved it on my own...it was e bug in the "diff Date", because when the date is "today" all the calculations don't work because diff date is "0".
So with DIFF Date = Today () - Datum +1 everything is working out well now.
Thanks for your support.
I solved it on my own...it was e bug in the "diff Date", because when the date is "today" all the calculations don't work because diff date is "0".
So with DIFF Date = Today () - Datum +1 everything is working out well now.
Thanks for your support.
With the FILTER(), I tried to consider rows where "Blank ID" equals 0, effectively ignoring rows where "Sum of 7" is empty.
Rank SF =
RANKX(
FILTER(
ALLEXCEPT(Gesamt, Gesamt[Name Code]),
Gesamt[Blank ID] = 0
),
[DIFF DATE SF],
,
ASC,
Dense
)
Hi Amira
thank you for your response and your help. If I use your code, I don't see any change to the ranking I did before. There are still dates with no values for "sum of 7" with the rating 1.
This is the "original" data set for one player with "2Rank SF" as your code.
Do you have another idea?
Can you provide textual input data ?
What do you mean with "textual input data"? Sorry, I am quite new in that Power BI context.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
104 | |
77 | |
67 | |
63 |
User | Count |
---|---|
144 | |
107 | |
105 | |
82 | |
69 |