This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi,
I have a table of countries and their cities.
I load it to new query in Power Query.
Is there a way to load only a data of particular country?
I don't mean filtering in Power Query but to get filtered data in the first place as part of the source.
Thanks in advance
Solved! Go to Solution.
Hi @Sasha ,
I got your point, but it's doable in SQL , but unable in CSV.
Hi @Sasha ,
Not quite sure about your requirement, do you mean rank countries by setting particular one as the first?
The source is csv file with one column being a country and the other being a city (countries and all its cities).
I want to be able to load the data to a new query already filtered on a country of my choice and not filtering in Power Query when all data is already loaded.
Hi @Sasha ,
I got your point, but it's doable in SQL , but unable in CSV.
Thanks!
If SQL used - how I can set the country to be filtered as a parameter?
You may follow the link below:
Besides, in case of your orignal requirement, you can use SQL query under Advanced options (while connecting with SQL Server database).
Rgds,
Vivek
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 25 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 28 | |
| 23 | |
| 23 |