Forum Discussion
query only top n from sql server by a column within specified date range
Anonymous , Top on anything you can get by Rank or using top N filter at the visual level
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/367415
- Anonymous6 years agoNot applicable
amitchandak Thanks for replying. All those methods work only after fetching all the data.
I want to fetch only top n from sql server itself. I think I have made my need clear. Please be specific.
If you did not get my need right pls ask where exactly you want me to make it clear.
Thanks!
- Anonymous6 years agoNot applicable
Hi amitchandak , does applyting top N filter query only top N from SQL server or query everything and apply after getting data ...?