CodeX
Published in

CodeX

Power BI DAX and SQL — Top N

…using COUNTROWS and RANK

Photo by Lachlan on Unsplash

Starting out with Power BI? Learning a bit of SQL ?

Power BI and SQL works well together and understanding a little bit of DAX will help you understand a little about SQL and vice versa.

Here are two different ways to do top 3 by group using DAX and SQL.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Peter Hui

Peter Hui

520 Followers

I write about Power BI, Power Automate and other cool Microsoft power tools. Microsoft certified data analyst. Constant learner and an aspiring writer. 👍