Forum Discussion
Anonymous
7 years agoNot applicable
Rank by Date & Time
Hello, I have a dataset that I am currently ranking by Date, which is working well. However, I have multiple entries for the same day, so I would like it to assign a rank by looking at both the ...
- 7 years ago
Hi Anonymous,
You just need to remove ".[Date]".
Rank = VAR d = EventSignatures[DateSigned] VAR a = EventSignatures[ActiveForm_ld] RETURN CALCULATE ( RANK.EQ ( d, EventSignatures[DateSigned], ASC ), FILTER ( ALL ( 'EventSignatures' ), EventSignatures[ActiveForm_ld] = a ) )Best Regards,
Dale
Anonymous
6 years agoNot applicable
Hi All - relating to a similar scenario, I have the below table wherein I want to RANK the 'SchedSTartTime' by each 'Resource' as shown in the 'desired result' column. Your help would be much appreciated. Thanks
Ashish_Mathur
6 years agoSuper User
Hi,
Write these measures
Start = SUM(Data[SchedStartTime])
Rank = RANKX(ALL(Data[Resource]),[Start])
Hope this helps.
- Anonymous6 years agoNot applicable
Thanks very much. Since i needed the results urgently, I did the below to get to the desired outcome but thanks for your time. its apprecaited.
1 - CONCATENATE(data[SaSchedDate].[Date],data[resource])2. RankSaBySchedDateTime = VAR d = Data[SaSchedDate]VAR a = Data[above concatenated field]RETURNCALCULATE (RANK.EQ ( d, Data[SaSchedDate], ASC ),FILTER ( ALL ( 'Data' ), data[above concatenated field] = a ))