Forum Discussion
Ranking Data
- 4 years ago
Hi,
Please check the below picture and the attached pbix file.
Number of solves: = SUM ( Data[Number Of Solves] )Ranking per Month and per Team: = VAR employeetable = ALLEXCEPT ( Data, 'Calendar'[Month], Team[Team] ) RETURN IF ( HASONEVALUE ( Employee[Employee] ) && NOT ISBLANK ( [Number of solves:] ), RANKX ( employeetable, [Number of solves:],, DESC ) ) - 4 years ago
Hi,
In your example:
"ALLEXCEPT ( Data, 'Calendar'[Month], Team[Team] )"
I don't have a table named "data". All the tales are joined using a relationship.
Do I need to look at Crossjoin in order to get this to work?
Thanks,
Hi,
I am not sure how your expected outcome looks like, but please check the below picture and the attached pbix file.
It is for creating a new column.
Rank Employee by Team and by Month CC =
VAR currentmonth = Data[Month]
VAR currentteam = Data[Team]
VAR newtable =
FILTER ( Data, Data[Month] = currentmonth && Data[Team] = currentteam )
RETURN
RANKX ( newtable, Data[Number Of Solves],, DESC )
Hi,
The outcome is perfect. Only issue is that these fields are not in the same table. The relate to one another.
Table examples, Month,Team/Employee,Count of solved. This means I cannot create a new column.
Would I need to create a new table?
- Jihwan_Kim4 years agoSuper User
Hi,
Thank you for your message.
Please correct me if I missed something from your question, but is it separated by month? or by team? How many separared tables do you have?
If it is OK with you, could you please show how the each table looks like?
Thank you.
- Stu114 years agoFrequent Visitor
Hi again, thank you for your time so far.
I guess what I'm asking for is what you've done so far but as a measure. If that is even possible.
DimCalendar[Month]
Company[Team]/Company[Emplyee]
Data[Number of Solves]
Each of the table have a relatopship between them.
Hope this makes sense.
- Jihwan_Kim4 years agoSuper User
Hi,
Please check the below picture and the attached pbix file.
Number of solves: = SUM ( Data[Number Of Solves] )Ranking per Month and per Team: = VAR employeetable = ALLEXCEPT ( Data, 'Calendar'[Month], Team[Team] ) RETURN IF ( HASONEVALUE ( Employee[Employee] ) && NOT ISBLANK ( [Number of solves:] ), RANKX ( employeetable, [Number of solves:],, DESC ) )