Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi All,
I am trying to rank the usage day for a set of groups. I have used the below formula but the ranking formula is not working.
DayRank_ =
RANKX (
FILTER (
ALL ( VIEW_SCOREINFO_ALL ),
VIEW_SCOREINFO_ALL[GroupId] = EARLIER ( VIEW_SCOREINFO_ALL[GroupId] )
&& VIEW_SCOREINFO_ALL[Session Date] = EARLIER ( VIEW_SCOREINFO_ALL[Session Date])
),
VIEW_SCOREINFO_ALL[Index],
,
ASC,
DENSE
)
The result is as follows:
Can someone help me with the formula.
The way I want is also given here.
Thank You,
Kumar Ashwarya
Solved! Go to Solution.
@Kumar11109,
Please check this modified PBIX file.
Regards,
Lydia
@Kumar11109,
Create the rank column using DAX below.
RANK = RANKX(FILTER(VIEW_SCOREINFO_ALL,VIEW_SCOREINFO_ALL[GroupId]=EARLIER(VIEW_SCOREINFO_ALL[GroupId])),VIEW_SCOREINFO_ALL[Session Date],,ASC)
Regards,
Lydia
This formula is not working. I am getting the below result.
Its not working. :-C
I think I should have more clear, my data set looks something like this.
Thats why I think its not working. I also used to Dense so that it doesn't skip ranking for a group, but that didn't work either.
@Kumar11109,
You have different sample data as before. What field do you want to rank this time? And what is your expected result?
Regards,
Lydia
I still want to rank my "session date," for each group id.
@Kumar11109,
Please check this modified PBIX file.
Regards,
Lydia
Its working with Dense. It was summing the rank created. I had to click on "Don't Summarize". So stupid of me. Thank You.
Can you help with a conituation of this problem. I have created another topic for it.
@Kumar11109,
Please check this PBIX file . If there is any issue, please share your PBIX file to me.
Regards,
Lydia
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
88 | |
86 | |
82 | |
66 | |
49 |
User | Count |
---|---|
138 | |
110 | |
104 | |
66 | |
64 |