98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Power BI training and help » TopN
TopN
Resolved · Low Priority · Version 2016
Lou has attended:
Power BI Modelling, Visualisation and Publishing course
Excel VBA Introduction course
TopN
Hi,
I'm trying to find the top5 of a list of prospects. I have managed to use Rank x to get the top five prospects to show, byt they're not in the correct order. My current measure is
Top5Prospects = Calculate([Projections],filter(VALUES(Prospects[Name]),if(rankx(all(Prospects[Name]),[Projections],,DESC)<=5,[Projections],blank())))
We covered this in training using TopN but I can't quite remember!
RE: TopN
Hi Lou,
Thank you for the forum question.
When you write that you do not get them in the right order, do you mean that in a visual, you do not get them in descending order. If this is the case you just need to sort the visual descending.
We used the Topn function on the course.
May be try something like
Top5Prospects = Calculate([Projections],Topn(5,all(Prospects[Name]),[Projections],DESC))
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Power BI tip:Scheduled Refresh and Power BI ServiceIf you're using Power BI Service, set up scheduled refresh for your datasets. This ensures that your reports are always up-to-date with the latest data. Understand the refresh limits imposed by Power BI Service and optimize your data model and queries to stay within those constraints. |