Forum Discussion
lherbert501
Post Prodigy
3 years agoRank by second field (latest date)
Hi there, I want to rank the top 5 locations by the amount of calls that come in for each location, but then when the calls are joint, then possibly refer to the most recent on the joint occurenc...
amitchandak
Super User
3 years agolherbert501 , refer this example of TOPN
2 column top N = CALCULATE( SUM ( 'Fact'[Value] ), TOPN(10, SUMMARIZE(ALLSELECTED('Fact'), 'Fact'[Location], 'Fact'[Date]), CALCULATE ( SUM ( 'Fact'[Value] ) ),DESC),VALUES('Fact'[Location]), VALUES('Fact'[Date]) )
- lherbert5013 years ago
Post Prodigy
Hi amitchandak
Thanks for your reply.
I've implemented the location and date but it's still displaying as joint 1's like in the image.