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.
Dear All,
I need to tag the number of times each resource is accessed by each. This means that for each group, and for all the resources the tagging should start from 1. I am attaching an image of the data set. Each time a resource is accessed, its start time would change.
Solved! Go to Solution.
HI @Kumar11109
You first need to add an INDEX column before you could do the RANKING
See the attached file with your data
Step # 1: Add Index Number
Step#2 Ranking
Now you can RANK using this calculated column
RANK_ = RANKX ( FILTER ( ALL ( Table1 ), Table1[GroupId] = EARLIER ( Table1[GroupId] ) && Table1[ResourceId] = EARLIER ( Table1[ResourceId] ) ), Table1[Index], , ASC, DENSE )
Hi @Kumar11109,
Create new measure using Rank function:
If you would like to know more about Rank function refer to the link below:
Hope this helps.
Regards
Abduvali
NOPE, STILL THE SAME . :-c
I see whats happening, see the way you have your StartDate and EndDate there and they all Unique because of a time stamp!
Hope this explains the issue.
Regards
Abduvali
Can you check the sheet again? I have done tagging for each resource, for each group. I need it in that form. I have done it on only first 100 rows. And I didn't understand the solution that you gave me.
Another point I can't drop any column, I need them for other calculations.
HI @Kumar11109
You first need to add an INDEX column before you could do the RANKING
See the attached file with your data
Step # 1: Add Index Number
Step#2 Ranking
Now you can RANK using this calculated column
RANK_ = RANKX ( FILTER ( ALL ( Table1 ), Table1[GroupId] = EARLIER ( Table1[GroupId] ) && Table1[ResourceId] = EARLIER ( Table1[ResourceId] ) ), Table1[Index], , ASC, DENSE )
Hi @Zubair_Muhammad ,
Can you suggest how to add the column "RANK" in power query as indicated in image ?
(With your data)
Thank You for your help. Now I am facing another problem. I need to create a scatter plot to check whether with each attempt students score is increasing or not. So for x axis, I need to put in the attempt number" 1,2,3,4....." and for the y axis, I need marks scored in that attempt. But the issue with Power bi is that its aggregating the attempt number( Rank) and the marks scored. I don't need aggregates but the option to don't summarize. How would be able to do that???
Thank You,
No, it's not working. I am getting the same rank value for all the groups and its resources. Look at the attached picture.
For rank to work you have to count the ResourceID's:
Rank = rankx(all 'Final Score Table'[GroupID], ---> here you need to add a measure that counts your ResourceID so create it something like ResourceID Count = COUNT('Final Score Table'[ResourceID]) and then use it in DAX formula:
This should work now.
Regards
Abduvali
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |